From a8929d892d1002d2851e04d56b85d632520cdf64 Mon Sep 17 00:00:00 2001 From: tylerslaton Date: Fri, 3 Mar 2023 17:28:31 -0500 Subject: [PATCH] Add requestRate, failureRate and artificialDelay args to Acorn --- Acornfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Acornfile b/Acornfile index 1b58537c..36300481 100644 --- a/Acornfile +++ b/Acornfile @@ -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: { @@ -39,6 +48,8 @@ containers: { env: { GRPC_PORT: "8080", PROM_PORT: "8801", + FAILURE_RATE: args.failureRate + ARTIFICIAL_DELAY: args.artificialDelay } } web: { @@ -78,6 +89,7 @@ containers: { env: { WEB_HOST: "web:80", + REQUEST_RATE: args.requestRate } } -} \ No newline at end of file +}