how many total connection or max connections are a

2019-06-26 06:15发布

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

标签: redis
1条回答
forever°为你锁心
2楼-- · 2019-06-26 06:43

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.

查看更多
登录 后发表回答