Optimize/fix concurrency for chat

This commit is contained in:
Gabe Kangas
2021-03-03 20:44:13 -08:00
parent 1e0b1b389d
commit 49bb899d51
5 changed files with 38 additions and 15 deletions

View File

@@ -7,8 +7,15 @@ config:
maxErrorRate: 1
phases:
- duration: 100
arrivalRate: 15
- duration: 30
arrivalRate: 5
rampTo: 5
name: "Warming up"
- duration: 240
arrivalRate: 5
rampTo: 40
name: "Max load"
ws:
subprotocols:
- json
@@ -16,9 +23,10 @@ config:
Connection: Upgrade
Origin: http://localhost:8080
Sec-WebSocket-Version: 13
scenarios:
- engine: "ws"
flow:
- function: "createTestMessageObject"
- send: "{{ data }}"
- think: 10
- think: 30 # Each client should stay connected for 30 seconds