We are a not for profit social media community. We upgraded from the free Heroku Redis plan to the lowest tier paid Heroku Redis plan. Instead of improving performance, the site crashed. And it's still down.
We got some help with the SSL issue, and update sidekiq.rb and actioncable.yml (see below) but now redis can't connect to actioncable, and we're getting a slew of errors about not being able to connect.
Here is our sidekiq.rb
Sidekiq.default_worker_options = { backtrace: true, retry: true}sidekiq_redis = lambda do Redis.new(url: ENV['REDIS_URL'], ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE })endSidekiq.configure_client do |config| config.redis = ConnectionPool.new(size: 2, &sidekiq_redis)endSidekiq.configure_server do |config| config.redis = ConnectionPool.new(size: 17, &sidekiq_redis)endSidekiq::Extensions.enable_delay!
Our cable.yml
development: adapter: redis url: redis://localhost:6379/1test: adapter: asyncproduction: adapter: redis url: <%= ENV['REDIS_URL'] %> ssl_params: verify_mode: <%= OpenSSL::SSL::VERIFY_NONE %>
We are using the Heroku Redis $15/month plan now. As soon as we upgraded, the site crashed. Someone helped us update the sidekiq.rb and actioncable.yml, but the site still doesn't work.
Among other errors:
- Redis::ConnectionError Sidekiq New Issue Connection lost (ECONNRESET)
- heroku[router]: at=error code=H13 desc="Connection closed without response"
- heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/cable"
- ECONNREFUSED