Ruby version: ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]
Sidekiq / Pro / Enterprise version(s): sidekiq (5.0.5) & redis-namespace (1.6.0)
Warning:
I get this warning whenever I check the Sidekiq Web UI:
Passing 'connection' command to redis as is; blind passthrough has been deprecated and will be removed in redis-namespace 2.0 (at /home/ubuntu/.rvm/gems/ruby-2.3.1/gems/sidekiq-5.0.5/lib/sidekiq/web/helpers.rb:151:in 'block in redis_connection')
Initializer:
require 'sidekiq'
require 'sidekiq/web'
Sidekiq::Web.use Rack::Auth::Basic do |username, password|
username == (ENV['SIDEKIQ_UI_USERNAME'] || '') &&
password == (ENV['SIDEKIQ_UI_PASSWORD'] || '')
end
Sidekiq.configure_server do |config|
redis_url = ENV['REDIS_URL']
raise "define environment variable REDIS_URL" if redis_url.nil? or redis_url.empty?
config.redis = { url: "#{redis_url}", namespace: "rails_#{Rails.env}" }
end
Sidekiq.configure_client do |config|
redis_url = ENV['REDIS_URL'] || 'http://localhost:6379'
raise "define environment varialbe REDIS_URL(#{redis_url})" if redis_url.nil? or redis_url.empty?
config.redis = { url: "#{redis_url}", namespace: "rails_#{Rails.env}" }
end
I recommend removing redis-namespace.
http://www.mikeperham.com/2017/04/10/migrating-from-redis-namespace/
Most helpful comment
I recommend removing redis-namespace.
http://www.mikeperham.com/2017/04/10/migrating-from-redis-namespace/