You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using rediss:// URLs to connect to Redis instances hosted on DigitalOcean and Aiven servers in my Node.js application with the ioredis client library, I'm experiencing connection drops. However, when using RedisLabs servers with redis:// URLs (as they don't seem to support rediss://), the connection works fine.
After a period of server inactivity (approximately 5-10 minutes), I observe the following logs:
Redis connection closed
Connected to Redis
Redis connection closed
Connected to Redis
@ilyabumblebee that's a normal thing with most of the cloud hosted Redis offering, it disconnect after 300ms, you can get around that by implementing a ping to your Redis at intervals, probably ping it in your /healthcheck route.
When using rediss:// URLs to connect to Redis instances hosted on DigitalOcean and Aiven servers in my Node.js application with the ioredis client library, I'm experiencing connection drops. However, when using RedisLabs servers with redis:// URLs (as they don't seem to support rediss://), the connection works fine.
After a period of server inactivity (approximately 5-10 minutes), I observe the following logs:
Environment:
ioredis version: 5.4.1
Node.js version: v20.12.1
Operating System: Ubuntu 22.04 (Digital Ocean Droplet: 8 GB Memory / 4 AMD vCPUs / 160 GB Disk / FRA1)
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: