Hacker News new | ask | show | jobs
by rmetzler 2657 days ago
I'm looking for something I could put between two docker images to test for problems that arise from slow API connections.

I have go code (open source, but not written by me), I suspect to have timeouts in certain situations and I would like change the code to be failure tolerant.

Anyone has a tip?

1 comments

I used tc on a Linux VM between two hosts to simulate loss, latency and bandwidth limits. Two interfaces, I think TC only works in one direction per interface so you have to enable it on both interfaces to get delay in both directions.

See https://stackoverflow.com/questions/614795/simulate-delayed-...