Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
Add requestRate, failureRate and artificialDelay args to Acorn
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerslaton committed Mar 3, 2023
1 parent 76398fc commit a8929d8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Acornfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
args: {
// How often traffic is generated. Higher means faster.
requestRate: "1"
// The ratio of requests that will be failures
failureRate: "0.0"
// How long is waited before sending a response for votes
artificialDelay: "0ms"
}

containers: {
emoji: {
build: {
Expand Down Expand Up @@ -39,6 +48,8 @@ containers: {
env: {
GRPC_PORT: "8080",
PROM_PORT: "8801",
FAILURE_RATE: args.failureRate
ARTIFICIAL_DELAY: args.artificialDelay
}
}
web: {
Expand Down Expand Up @@ -78,6 +89,7 @@ containers: {

env: {
WEB_HOST: "web:80",
REQUEST_RATE: args.requestRate
}
}
}
}

0 comments on commit a8929d8

Please sign in to comment.