Skip to content

Commit

Permalink
Use health_check_interval
Browse files Browse the repository at this point in the history
which was introduced in redis_py >= 3.3. It helps with keeping
connections alive and to provent the ServerConnection errors.
  • Loading branch information
mrunge committed Jul 29, 2021
1 parent 622311f commit fcd0db0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions gnocchi/common/redis.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
CLIENT_ARGS = frozenset([
'db',
'encoding',
'health_check_interval',
'retry_on_timeout',
'socket_keepalive',
'socket_timeout',
Expand All @@ -62,6 +63,7 @@
#: Client arguments that are expected to be int convertible.
CLIENT_INT_ARGS = frozenset([
'db',
'health_check_interval',
'socket_keepalive',
'socket_timeout',
])
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ s3 =
boto3
botocore>=1.5
redis =
redis >= 3.2.0 # MIT
redis >= 3.3.0 # MIT
hiredis
swift =
python-swiftclient>=3.1.0
Expand Down

0 comments on commit fcd0db0

Please sign in to comment.