I'm using Redis DB with NodeJS. Occasionally I get below exception and my server (NodeJS) crashes only to restart again.
Error: Redis connection to localhost:6380 failed - getaddrinfo ENOTFOUND
Can someone explain why this happens? Does the below config has something to do with this?
# Set the max number of connected clients at the same time. By default
# this limit is set to 10000 clients, however if the Redis server is not
# able ot configure the process file limit to allow for the specified limit
# the max number of allowed clients is set to the current file limit
# minus 32 (as Redis reserves a few file descriptors for internal uses).
#
# Once the limit is reached Redis will close all the new connections sending
# an error 'max number of clients reached'.
#
# maxclients 10000
./redis-cli -p 6380, assumed that you are in redis/src directory.127.0.0.1instead oflocalhostin your call toredis.createClient().