Redis persistent connection
-
Hi, we use redis as session store in our Nodebb setup.
How we can make connection to redis persistent?
because for each online user nodebb make new connection to redis and in other hand redis recommend that we open only one connection!Redis is one thread processing open and close connections has really negative impact on its performance!
-
The connection should be persistent. How are you qualifying that it is not?
-
@pitaj said in Redis persistent connection:
The connection should be persistent. How are you qualifying that it is not?
This command :
redis-cli info clients
Shows number of active connection.
If connection was persistent we should see 2 active connection, is that right? -
@sanatisharif how many do you see? It's possible our redis client uses a connection pool
-
@pitaj said in Redis persistent connection:
@sanatisharif how many do you see? It's possible our redis client uses a connection pool
# Clients connected_clients:82
Maybe, NodeBB has connection pool?