You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have configured message bus in our platform, it has been observed when redis is down our logs files are getting populated with following message, It tries to connect redis after regular interval of time, is there any way we can increase time interval so that there would be less occurrence in log file?
Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) subscribe failed, reconnecting in 1 second. Call stack ["/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:353:in rescue in establish_connection'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:336:in establish_connection'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:104:in block in connect'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:299:in with_reconnect'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:103:in connect'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:279:in with_socket_timeout'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:136:in call_loop'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/subscribe.rb:43:in subscription'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/subscribe.rb:12:in subscribe'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis.rb:3474:in _subscription'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis.rb:2293:in block in subscribe'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis.rb:50:in block in synchronize'", "/usr/share/rvm/rubies/ruby-2.4.3/lib/ruby/2.4.0/monitor.rb:214:in mon_synchronize'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis.rb:50:in synchronize'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis.rb:2292:in subscribe'", "/home/x/.rvm/gems/ruby-2.4.3/gems/message_bus-2.2.0/lib/message_bus/backends/redis.rb:287:in global_subscribe'", "/home/x/.rvm/gems/ruby-2.4.3/gems/message_bus-2.2.0/lib/message_bus.rb:721:in global_subscribe_thread'", "/home/x/.rvm/gems/ruby-2.4.3/gems/message_bus-2.2.0/lib/message_bus.rb:669:in block in new_subscriber_thread'"]
The text was updated successfully, but these errors were encountered:
We have configured message bus in our platform, it has been observed when redis is down our logs files are getting populated with following message, It tries to connect redis after regular interval of time, is there any way we can increase time interval so that there would be less occurrence in log file?
Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) subscribe failed, reconnecting in 1 second. Call stack ["/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:353:in
rescue in establish_connection'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:336:inestablish_connection'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:104:in
block in connect'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:299:inwith_reconnect'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:103:in
connect'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:279:inwith_socket_timeout'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/client.rb:136:in
call_loop'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/subscribe.rb:43:insubscription'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis/subscribe.rb:12:in
subscribe'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis.rb:3474:in_subscription'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis.rb:2293:in
block in subscribe'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis.rb:50:inblock in synchronize'", "/usr/share/rvm/rubies/ruby-2.4.3/lib/ruby/2.4.0/monitor.rb:214:in
mon_synchronize'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis.rb:50:insynchronize'", "/home/x/.rvm/gems/ruby-2.4.3/gems/redis-4.1.0/lib/redis.rb:2292:in
subscribe'", "/home/x/.rvm/gems/ruby-2.4.3/gems/message_bus-2.2.0/lib/message_bus/backends/redis.rb:287:inglobal_subscribe'", "/home/x/.rvm/gems/ruby-2.4.3/gems/message_bus-2.2.0/lib/message_bus.rb:721:in
global_subscribe_thread'", "/home/x/.rvm/gems/ruby-2.4.3/gems/message_bus-2.2.0/lib/message_bus.rb:669:inblock in new_subscriber_thread'"]
The text was updated successfully, but these errors were encountered: