diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-27 20:37:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 20:37:37 +0100 |
commit | d587a268fdcee4ab8795fe4f03dff683e668ae15 (patch) | |
tree | cbe3c261f4455415fbbfb5ec1b2bcb76136f5529 /lib | |
parent | 14e2354eeaf1f89a0f81302aa92661977be15daf (diff) |
Add logging for Rails cache timeouts (#21667)
* Reduce redis cache store connect timeout from default 20 seconds to 5 seconds * Log cache store errors
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mastodon/redis_config.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/mastodon/redis_config.rb b/lib/mastodon/redis_config.rb index 98dc4788d..3522fa11e 100644 --- a/lib/mastodon/redis_config.rb +++ b/lib/mastodon/redis_config.rb @@ -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 = { |