Skip to content

Instantly share code, notes, and snippets.

@whitingjr
Created June 13, 2023 11:45
Show Gist options
  • Save whitingjr/82fd6283289612addd504d4727548014 to your computer and use it in GitHub Desktop.
Save whitingjr/82fd6283289612addd504d4727548014 to your computer and use it in GitHub Desktop.
Problem Hyperfoil configuration with 2 sequences.
name: frdemo
agents:
agent-one:
node: foobar
stop: true
#
http:
host: frdemo.foobar.svc.cluster.local:8080
sharedConnections: 8
ergonomics: # Disable stopping the scenario on 4xx or 5xx response
autoRangeCheck: false
phases:
- rampUp:
increasingRate:
duration: 240s
isWarmup: true
maxSessions: 16
initialUsersPerSec:
base: 0
increment: 10
targetUsersPerSec: 4
scenario: &frdemoGet
initialSequences:
- getAvaiablelResponders:
- httpRequest:
GET: /frdemo-backend/responder-service/available
- getAllMissions:
- httpRequest:
GET: /frdemo-backend/api/missions
handler:
body:
json:
query: .[]
processor:
array:
toVar: missions
format: BYTES
maxSize: 100
- awaitAllResponses:
- foreach:
fromVar: missions
sequence: getResponderById
- getAllIncidents:
- httpRequest:
GET: /frdemo-backend/incidents
handler:
body:
json:
query: .[]
processor:
array:
toVar: incidents
format: BYTES
maxSize: 100
- awaitAllResponses:
- foreach:
fromVar: incidents
sequence: getIncidentById
sequences:
- getResponderById[100]:
- json:
fromVar: missions[.]
query: .responderId
toVar: responders[.]
- httpRequest:
GET: /frdemo-backend/responder-service/${responders[.]}
- getIncidentById[100]:
- json:
fromVar: incidents[.]
query: .id
toVar: incidentIds[.]
- httpRequest:
GET: /frdemo-backend/incidents/incident/${incidentIds[.]}
- demoSteady:
constantRate:
usersPerSec: 4
maxSessions: 16
startAfter: rampUp
duration: 300s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment