how many total connection or max connections are a

2019-06-26 05:46发布

问题:

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

回答1:

Clients ARE connections. Redis doesn't know if two connections are from the same client.

Current

info clients

# Clients
connected_clients:2
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

Maximum

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.



标签: redis