Reputation: 9027
How many total connections are or max how many connections are present in redis ?
How many connections are busy ?
How many connections are free waiting for the requests ?
which commands or configuration i need see to answer above questions ?
Am asking total / max connections not clients
Upvotes: 31
Views: 74174
Reputation: 1940
As of writing this in Redis 2.6 the default limit is 10000 clients but can be over-ridden in the redis.conf
If the number that we require is more than the maximum number of file descriptors that can be opened by the File System, then REDIS sets the maximum number of clients/connections to what it can realistically handle.
Read more about it here
Upvotes: 7
Reputation: 2939
Clients ARE connections. Redis doesn't know if two connections are from the same client.
info clients
# Clients
connected_clients:2
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
config get maxclients
1) "maxclients"
2) "4064"
If you want to change maxclients, you may do so in conf file, or at runtime with the command config set maxclients <val>
, but note that this value is limited by available file descriptors, so run appropriate ulimit -n <val>
before.
Upvotes: 52