Jobs
Jobs fields:💡
name
(string, optional) - job nametype
(enumwrite|bulk_write|read|update|create_index|drop_collection|sleep
) - operation typetemplate
(string) - schema name, if you will not provide schema data will be inserted in{'data': <generate_data>}
formatdatabase
(string, required if schema is not set) - database nameschema
(string, optional) - string foreign-key to schemas listfilter
(string, required for read and update) - filter schemaindexes
(list, optional) - list of indexes to create (only for type "create_index")collection
(string, required if schema is not set) - collection nameconnection
(unsigned int) - number of concurrent connections, number is not limited to physical threads numberdata_size
(unsigned int) - data size inserted (currently only works for default schema)batch_size
(unsigned int) - insert batch size (only applicable forbulk_write
job type)duration
(string) - duration time ex. 1h, 15m, 10soperations
(unsigned int) - number of requests to perform, ex. 100 reads, 100 bulk_writestimeout
(string) - connection timeout ex. 1h, 15m, 10s
Defining Jobs💡
Example write with schema 100ops
{
"name": "insert with schema",
"type": "write",
"schema": "user_schema",
"connections": 10,
"operations": 100
}
Write without schema 20s💡
{
"name": "insert without schema",
"type": "write",
"database": "load_test",
"collection": "load_test",
"connections": 10,
"data_size": 100,
"duration": "20s",
"timeout": "1s"
}
Read with schema 20s💡
{
"name": "read with schema",
"type": "read",
"schema": "user_schema",
"connections": 10,
"operations": 100,
"filter": {
"user_name": "#user_name",
"name": "#generate_value" // here you can use remember/saved value as well as generated one
}
}