0
owncast/test/load/websocketTest.yaml

33 lines
627 B
YAML
Raw Normal View History

2020-07-15 21:23:41 -07:00
config:
target: "ws://localhost:8080/entry"
processor: "./websocketTest.js"
ensure:
p95: 200
maxErrorRate: 1
phases:
2021-03-03 20:44:13 -08:00
- duration: 30
arrivalRate: 5
rampTo: 5
name: "Warming up"
- duration: 240
arrivalRate: 5
rampTo: 40
name: "Max load"
2020-07-15 21:23:41 -07:00
ws:
subprotocols:
- json
headers:
Connection: Upgrade
Origin: http://localhost:8080
Sec-WebSocket-Version: 13
2021-03-03 20:44:13 -08:00
2020-07-15 21:23:41 -07:00
scenarios:
- engine: "ws"
flow:
- function: "createTestMessageObject"
- send: "{{ data }}"
2021-03-03 20:44:13 -08:00
- think: 30 # Each client should stay connected for 30 seconds