Quick Start
After installing loadbot, you can quickly get started by following these steps:
-
Run loadbot agent with your desired configuration using the command:
-
Start and watch the workload using the loadbot client:
-
To stop the workload, use the following command:
Example config file💡
For more information on defining jobs and schemas, visit the configuration section of the documentation.
{
"connection_string": "mongodb://myadmin:abc123@127.0.0.1:27017",
"jobs": [
{ // start on empty collection - fresh start
"type": "drop_collection",
"database": "tmp-kuzxnia-showcase-db",
"collection": "tmp-kuzxnia-showcase-col",
"operations": 1
},
{
"name": "Workload 20s max throughput",
"type": "write",
"database": "tmp-kuzxnia-showcase-db",
"collection": "tmp-kuzxnia-showcase-col",
"data_size": 200,
"connections": 100,
"duration": "20s",
},
{ // give little rest to db
"type": "sleep",
"duration": "5s",
"format": "simple"
},
{
"name": "Workload 1_000_000 elements with pace 10K rps",
"type": "write",
"batch_size": 100,
"database": "tmp-kuzxnia-showcase-db",
"collection": "tmp-kuzxnia-showcase-col",
"data_size": 100,
"connections": 200,
"pace": 10000,
"operations": 1000000,
}
}