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

Track Redis RTT and log if poor #4824

Closed
mperham opened this issue Feb 22, 2021 · 0 comments
Closed

Track Redis RTT and log if poor #4824

mperham opened this issue Feb 22, 2021 · 0 comments

Comments

@mperham
Copy link
Collaborator

mperham commented Feb 22, 2021

Redis round trip time or network latency can make a big difference in Sidekiq performance. A quick informal Twitter survey shows that a good, healthy Redis service in AWS will exhibit RTT < 1000µs. A cheapie, free service shows latency between 5-20ms. Warn if RTT goes over 50ms.

For now I don't have a good plan to expose this data in the Web UI but it is available in the API:

Sidekiq::ProcessSet.new.each { |sp| puts sp["rtt_us"] }
          Your Redis network connection is performing extremely poorly.
          Current RTT is #{rtt}µs, ideally this should be < 1000.
          Ensure Redis is running in the same AZ or datacenter as Sidekiq.

jeffstoneblake_2021-Feb-22

This was referenced Mar 15, 2021
This was referenced Mar 16, 2021
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

No branches or pull requests

1 participant