mirror of https://github.com/kortix-ai/suna.git
redis conf
This commit is contained in:
parent
7ff3ed9193
commit
7977415b15
|
@ -77,11 +77,11 @@ def initialize():
|
||||||
ssl=os.getenv('REDIS_SSL', 'True').lower() == 'true',
|
ssl=os.getenv('REDIS_SSL', 'True').lower() == 'true',
|
||||||
ssl_ca_certs=certifi.where(),
|
ssl_ca_certs=certifi.where(),
|
||||||
decode_responses=True,
|
decode_responses=True,
|
||||||
socket_timeout=None, # Changed from 5.0 to None to let listen() block indefinitely
|
socket_timeout=5.0,
|
||||||
socket_connect_timeout=5.0, # Connection timeout
|
socket_connect_timeout=5.0, # Connection timeout
|
||||||
retry_on_timeout=True, # Auto-retry on timeout
|
retry_on_timeout=True, # Auto-retry on timeout
|
||||||
health_check_interval=30, # Check connection health every 30 seconds
|
health_check_interval=30, # Check connection health every 30 seconds
|
||||||
max_connections=1000 # Limit connections to prevent overloading
|
max_connections=200 # Limit connections to prevent overloading
|
||||||
)
|
)
|
||||||
|
|
||||||
return client
|
return client
|
||||||
|
|
Loading…
Reference in New Issue