Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check what redis port and instance sidekiq is connected to?

I'm working with sidekiq and redis. I'm trying to find out and debug some issues but for that, I'd like to know what URL sidekiq is connecting to. I know i can check it in the file where i set my server and client, but is there a function I can use ala Resque.redis that will show what redis instance sidekiq is connected to?

Thanks in advance!

like image 583
roloenusa Avatar asked Mar 04 '13 23:03

roloenusa


1 Answers

The URL info is shown at the bottom of the Web UI. Or you can use this code snippet:

Sidekiq.redis { |c| p c.client.location }
like image 177
Mike Perham Avatar answered Nov 06 '22 22:11

Mike Perham