-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert "Hotfix for hiredis-client on ppc64le (#3606)" This reverts commit 8865ce7. * Revert "Fix regression: boot:redis task (#3604)" This reverts commit eb88cc2. * Revert "Merge pull request #3576 from 3scale/dependabot/bundler/sidekiq-7.1.5" This reverts commit 90ff4b8, reversing changes made to 9068ff9. * Remove activejob-uniqueness fork * Keep the correct job parameter format
- Loading branch information
Showing
24 changed files
with
116 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
# Monkey patches redis-rb so connections errors with exception class `RuntimeError` and | ||
# message "Name or service not known" (i.e. name solving problems) are properly handled | ||
# as `Redis::BaseConnectionError` errors, which will be caught by `Redis::Client#establish_connection` | ||
|
||
module RedisHacks | ||
module HiredisConnection | ||
def connect(*args) | ||
super | ||
rescue RuntimeError => exception | ||
if exception.message =~ /(can't resolve)|(name or service not known)|(nodename nor servname provided, or not known)/i | ||
raise Redis::BaseConnectionError.new(exception.message) | ||
else | ||
raise | ||
end | ||
end | ||
end | ||
end | ||
|
||
Redis::Connection::Hiredis.singleton_class.prepend(RedisHacks::HiredisConnection) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
production: | ||
url: "<%= ENV.fetch('BACKEND_REDIS_URL', 'redis://backend-redis:6379') %>" | ||
timeout: <%= ENV.fetch('REDIS_BACKEND_TIMEOUT', 1) %> | ||
size: <%= ENV.fetch('RAILS_MAX_THREADS', 5) %> | ||
pool_size: <%= ENV.fetch('RAILS_MAX_THREADS', 5) %> | ||
pool_timeout: 5 # this is in seconds | ||
sentinels: "<%= ENV['BACKEND_REDIS_SENTINEL_HOSTS'] %>" | ||
name: <%= ENV['BACKEND_REDIS_SENTINEL_NAME'] %> | ||
role: <%= ENV['BACKEND_REDIS_SENTINEL_ROLE'] %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
production: | ||
url: "<%= ENV.fetch('REDIS_URL', 'redis://system-redis/1') %>" | ||
size: <%= ENV.fetch('RAILS_MAX_THREADS', 5) %> | ||
pool_size: <%= ENV.fetch('RAILS_MAX_THREADS', 5) %> | ||
pool_timeout: 5 # this is in seconds | ||
sentinels: "<%= ENV['REDIS_SENTINEL_HOSTS'] %>" | ||
name: <%= ENV['REDIS_SENTINEL_NAME'] %> | ||
role: <%= ENV['REDIS_SENTINEL_ROLE'] %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.