Redis 服务器中可用的总连接数或最大连接数是多少? [英] how many total connection or max connections are available in Redis Server?

查看:1346
本文介绍了Redis 服务器中可用的总连接数或最大连接数是多少?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

redis 中总共有多少个连接或最多有多少个连接?

有多少连接忙?

有多少连接空闲等待请求?

我需要查看哪些命令或配置才能回答上述问题?

我问的是总连接数/最大连接数,而不是客户端

解决方案

客户端是连接.Redis 不知道两个连接是否来自同一个客户端.

当前

信息客户端

<块引用>

# 个客户
connected_clients:2
client_longest_output_list:0
client_biggest_input_buf:0
被阻止的客户端:0

最大值

config 获取 maxclients

<块引用>

1) "maxclients"
2)4064"

如果您想更改 maxclients,您可以在 conf 文件中进行,或者在运行时使用命令 config set maxclients 进行更改,但请注意,此值受可用文件描述符的限制,所以在之前运行适当的 ulimit -n .

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

解决方案

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 服务器中可用的总连接数或最大连接数是多少?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆