Skip to content
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

devtools/slowproxy: add slowproxy tool to emulate slow network conditions #2307

Merged
merged 4 commits into from
Apr 28, 2022

Conversation

mastercactapus
Copy link
Member

@mastercactapus mastercactapus commented Apr 18, 2022

Description:
Adds a new tool, slowproxy that can simulate network latency, jitter, and throughput constraints for testing.

Review
Add slowproxy to Procfile.local (create if necessary)

proxy: go run ./devtools/slowproxy -l localhost:3033 -c localhost:3030 -d 25ms -j 10ms
  • run make start
  • visit http://localhost:3033
  • verify application works
  • try other options to change behavior
$ go run ./devtools/slowproxy -h
Usage of /tmp/go-build2557664850/b001/exe/slowproxy:
  -c string
    	Server connect address. (default "localhost:5432")
  -d duration
    	Min latency (one-way).
  -i int
    	Max data rate (in bytes/sec) from server to client.
  -j duration
    	Jitter in (random +/- to latency).
  -l string
    	Listen address. (default "localhost:5435")
  -o int
    	Max data rate (in bytes/sec) from client to server.

dctalbot
dctalbot previously approved these changes Apr 20, 2022
@mastercactapus mastercactapus merged commit 961b7d1 into master Apr 28, 2022
@mastercactapus mastercactapus deleted the slowproxy branch April 28, 2022 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants