Skip to content

Commit

Permalink
Remove RTT checking from Sidekiq since we have our own monitoring, th…
Browse files Browse the repository at this point in the history
…is takes up unnecessary ops/second on Redis.
  • Loading branch information
jonhyman committed Apr 26, 2021
1 parent 55b7e9d commit cabfac3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/sidekiq/launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,10 @@ def ❤
end
end

rtt = check_rtt
# BRAZE MODIFICATION
# We don't care about Sidekiq checking our RTT, it adds unnecessary PING commands which somehow
# are slower than any other command.
# rtt = check_rtt

fails = procd = 0
kb = memory_usage(::Process.pid)
Expand All @@ -171,7 +174,7 @@ def ❤
conn.hmset(key, "info", to_json,
"busy", curstate.size,
"beat", Time.now.to_f,
"rtt_us", rtt,
"rtt_us", 0,
"quiet", @done,
"rss", kb)
conn.expire(key, 60)
Expand Down

0 comments on commit cabfac3

Please sign in to comment.