Skip to content

[installer] Set latency and jitter values for Toxiproxy mysql proxy #14932

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions install/installer/pkg/components/toxiproxy/deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
},
Expand Down