Skip to content

Commit 0cb39f8

Browse files
author
Andrew Farries
committed
Set latency and jitter values for mysql proxy
Set these to more realistic values for simulating a connection to a US west coast database.
1 parent ec83f30 commit 0cb39f8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

install/installer/pkg/components/toxiproxy/deployment.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,13 @@ func deployment(ctx *common.RenderContext) ([]runtime.Object, error) {
106106
}, {
107107
Name: "toxic-config",
108108
Image: ctx.ImageName(ctx.Config.Repository, ConfigComponent, ctx.VersionManifest.Components.ToxicConfig.Version),
109+
// latency and jitter values taken from:
110+
// https://geekflare.com/google-cloud-latency/
111+
// using the values for the latency between europe-west1 (Belgium) and us-west1 (Oregon)
109112
Args: []string{
110113
fmt.Sprintf("--proxy=%s", proxyName),
111-
"--latency=1000",
112-
"--jitter=250",
114+
"--latency=280",
115+
"--jitter=25",
113116
"--wait=true",
114117
},
115118
},

0 commit comments

Comments
 (0)