0
0
Fork 0

Add logging for Rails cache timeouts (#21667)

* Reduce redis cache store connect timeout from default 20 seconds to 5 seconds

* Log cache store errors
This commit is contained in:
Claire 2022-11-27 20:37:37 +01:00 committed by GitHub
parent 14e2354eea
commit d587a268fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -37,6 +37,7 @@ REDIS_CACHE_PARAMS = {
namespace: cache_namespace,
pool_size: Sidekiq.server? ? Sidekiq.options[:concurrency] : Integer(ENV['MAX_THREADS'] || 5),
pool_timeout: 5,
connect_timeout: 5,
}.freeze
REDIS_SIDEKIQ_PARAMS = {