From 0cb39f82ab78ae0eb8cff1cb2c58e32054c1f85e Mon Sep 17 00:00:00 2001 From: Andrew Farries Date: Mon, 28 Nov 2022 07:01:21 +0000 Subject: [PATCH] Set latency and jitter values for mysql proxy Set these to more realistic values for simulating a connection to a US west coast database. --- install/installer/pkg/components/toxiproxy/deployment.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/install/installer/pkg/components/toxiproxy/deployment.go b/install/installer/pkg/components/toxiproxy/deployment.go index 37177e9f664a65..4a66d255a84215 100644 --- a/install/installer/pkg/components/toxiproxy/deployment.go +++ b/install/installer/pkg/components/toxiproxy/deployment.go @@ -106,10 +106,13 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) { }, { Name: "toxic-config", Image: ctx.ImageName(ctx.Config.Repository, ConfigComponent, ctx.VersionManifest.Components.ToxicConfig.Version), + // latency and jitter values taken from: + // https://geekflare.com/google-cloud-latency/ + // using the values for the latency between europe-west1 (Belgium) and us-west1 (Oregon) Args: []string{ fmt.Sprintf("--proxy=%s", proxyName), - "--latency=1000", - "--jitter=250", + "--latency=280", + "--jitter=25", "--wait=true", }, },