mix malachi. loadtest
(malachi v0.8.13)
View Source
Multi-core Elixir load generator for a running Malachi server.
One BEAM process per connection, so N connections use every scheduler (unlike a single-threaded client). Connects to an already-running server over the binary wire protocol and drives load.
mix malachi.loadtest --scenario produce --connections 512 --batch 10 --duration 10Options
--scenarioproduce | fetch | mixed | stream | user | acl (default produce)--connectionsconcurrent connections (128)--durationmeasured seconds (10),--warmupseconds excluded (2)--batchrecords per produce (10),--record-sizebytes (256),--keyscardinality (1000)--pipelinein-flight requests per connection, produce only (1 = closed-loop)--maxrecords per fetch/push (100),--windowstream credit (100)--prepopulaterecords to seed before fetch/stream/mixed (10000 for those)--topic(auto),--topicsdistinct topics to fan out over (1); N > 1 spreads load across data-plane shards--host(127.0.0.1); accepts a comma-separated list for a cluster (connections round-robin across the hosts),--port(4040)- auth:
--user(admin)--pass(admin123), or--token, or--tls/--cacert/--cert/--key --jsonemit the report as JSON