safe-transaction-service icon indicating copy to clipboard operation
safe-transaction-service copied to clipboard

Redis: Max Number of Clients Reached

Open Uxio0 opened this issue 2 years ago • 1 comments

Describe the bug

  • We are facing a Redis: Max Number of Clients Reached on the web instance of the transaction service
  • Multiple endpoints seem to be affected (all-transactions, balances)
  • Workers seem to be ok

Expected behavior No issues

Proposed solution

  • Add limit for the Redis Connection Pool and switch to BlockingConnectionPool: https://redis-py.readthedocs.io/en/stable/connections.html#connection-pools
  • Add timeout for connections on the server and add health-check: https://github.com/redis/redis-py#connections . I don't think this will work.
  • Increase number of connections on the server

Additional context Last 8 hours image

Last week image

Uxio0 avatar Jul 08 '22 10:07 Uxio0

We are going to increment redis maxclients and check how it works

luarx avatar Jul 08 '22 12:07 luarx

@luarx @moisses89 @fmrsabino Do you think we can close this for now?

Uxio0 avatar Sep 23 '22 10:09 Uxio0