grantr / ce-test-actor

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ce-test-actor

The actor accepts events and can be configured to respond differently.

# (Optional) Set this env to delay the responses.
DELAY=5s
# (Optional) Set this env to only delay for these hosts; use "*" to match all hosts.
DELAY_HOSTS=default-broker.default.svc.cluster.local,other.example.com
# (Optional) Set this env to echo events back for these hosts; use "*" to match all hosts.
ECHO_HOSTS=default-broker.default.svc.cluster.local,other.example.com
# (Optional) Set this env to always respond error for these hosts; use "*" to match all hosts.
ERR_HOSTS=default-broker.default.svc.cluster.local,other.example.com
# (Optional) Set this env to response with a certain error rate. ERR_HOST must be set first.
ERR_RATE=50
./actor

The seeder seeds test events and can be configured to seed differently.

# (Required) Set this env as the seeding target.
TARGET=default-broker.default.svc.cluster.local
# (Required) Set this env as the interval to seed events.
INTERVAL=1s
# (Default=1) The number of events to seed concurrently each time.
CONCURRENCY=10
# (Optional) Set this env to add additional events extensions.
EXTENSIONS=foo:bar;abc:def
# (Optional) Set event payload size (in # of bytes).
SIZE=1000000
./seeder

The br-gen helps generate yamls for a test "suite". It generates 1 broker yaml, 1 seeder yaml and 1 triggers yaml. Check out main.go for flags.

./br-gen -output=/home/loadtest -ns=loadtest -slow=15m -interval=5s -count=150 -actors=20

About

License:Apache License 2.0


Languages

Language:Go 96.6%Language:Shell 3.4%