Open milannister opened 7 years ago
Also:
In main README.md file, where each module is described, it should follow with link to module specific readme with configuration example and explanation.
Each configuration file within examples directory in berserker-runner should have inline comments explaining every line.
I am trying to generate multiple message formats at different rates, is this possible with a single configuration or do I need to run as multiple processes? Below is a toy example with two different message formats (logins and user_actions), which I would like to generate at different rates (20 and 1000).
data-source-configuration:
values:
logins:
id: uuid()
firstName: random(['Peter', 'Mike', 'Steven', 'Joshua', 'John', 'Brandon'])
lastName: random(['Smith', 'Johnson', 'Williams', 'Davis', 'Jackson', 'White', 'Lewis', 'Clark'])
age: random(20..45)
user_actions:
user_id: uuid()
action: random(['create_page', 'change_password', 'delete_page'])
rate-generator-configuration:
rates:
login_rate: 20
action_rate: 1000
output: ???
Yes and no. :) Berserker does not support associating an rate to particular data source output, and other rate to different data source output. In fact, only one data source output can be created and only one rate. Having said that, there are two possibilities how can you approach this.
data-source-configuration:
values:
logins:
id: uuid()
firstName: random(['Peter', 'Mike', 'Steven', 'Joshua', 'John', 'Brandon'])
lastName: random(['Smith', 'Johnson', 'Williams', 'Davis', 'Jackson', 'White', 'Lewis', 'Clark'])
age: random(20..45)
user_actions:
user_id: uuid()
action: random(['create_page', 'change_password', 'delete_page'])
output: weighted([($logins, 20), ($user_actions, 1000)])
rate-generator-configuration: rates: r: 1020 output: $r
Berserker's configuration options are not documented properly. Each and every configuration option should have proper explanation.
For example, following configuration option is not clear:
rate
is quite ambiguous and can have different meanings.