Load Commands

Used for load testing. This command is valid only for the Master node.

Run Load Test

Run load tests using loader files.

  • Interactive File Input:
    bloader run
    

    You’ll be prompted for the file path:

    ✔ Enter the file to run the load test:
    
  • Specify File Inline:
    bloader run -f main.yaml
    
Pass data to memory store inline

The --data(-d) option can be used to pass data to the global memory store inline.

bloader run -f main.yaml -d Username=test

If you set up as above, you can access the following.

kind: OneExecute
type: http
output:
  enabled: false
auth:
  enabled: true
  auth_id: authForWeb
request:
  target_id: "testServer"
  endpoint: "/posts"
  method: POST
  body_type: "json"
  body:
    username: "{{ .Values.Username }}"
  response_type: "json"

However, by default, it is passed as a string. It can be passed as various types by doing the following.

bloader run -f main.yaml -d IntData=10:i -d StrData=test:s -d IntArrayData=1,2,3:ai

Those supported include.

TypeNotationExample
inti1
stringstest
boolbtrue
floatf12.3
uintu1
[]intai1,-2,3
[]stringastest1,test2
[]boolabtrue,false,true
[]floataf12.3,24.5
[]uintau1,2,3