Trigger
is just another way to scale out Gatling.
Offically, Gatling
provides the batch way to scale out. But it's not very convenient as 1). it supports Linux only; 2). it doesn't have a friendly UI. So Trigger
was here to fill the gap.
Trigger
consists of two parts: a controller
(rails app) and a generator
(ruby script ran locally).
The idea is very simple:
- You edit the
schedules
fromcontroller
. - The
generator
will fetch theschedules
fromcontroller
. - The
generator
will execute the command defined inschedules
.
Ruby
, Rails
, React
, MongoDB
and Material UI
are used to build Trigger
.
Before setup Trigger
locally, you need to confirm following tools has been installed:
- npm
- ruby
- mongodb
Here's how I check mine:
shell$ npm -v
4.0.5
shell$ ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]
shell$ bunle -v
Bundler version 1.13.6
shell$ mongo --version
MongoDB shell version: 3.2.11
You could visit https://trigger-sample.herokuapp.com/ to give it a try first (there're some known issues as Trigger is still at its early development stage; but it's enough to demonstrate the ideas).
git clone https://github.com/keegoo/trigger
shell$ cd trigger/
shell$ bundle install
shell$ rake setup:all
rails s
Open 127.0.0.1:3000
to take a look!