美文网首页
REDIS----配置文件----CLIENTS

REDIS----配置文件----CLIENTS

作者: JuMinggniMuJ | 来源:发表于2020-06-01 21:26 被阅读0次

CLIENTS部分:

1.最大连接数:
# Set the max number of connected clients at the same time. By default
# this limit is set to 10000 clients, however if the Redis server is not
# able to configure the process file limit to allow for the specified limit
# the max number of allowed clients is set to the current file limit
# minus 32 (as Redis reserves a few file descriptors for internal uses).
#
# Once the limit is reached Redis will close all the new connections sending
# an error 'max number of clients reached'.
#
 maxclients 10000

设置同时连接的最大客户端数。默认情况下,此限制设置为10000个客户端,但是如果Redis服务器无法将进程文件限制配置为允许指定的限制,则最大允许客户端数将设置为当前文件限制减去32(因为Redis保留一些文件描述符供内部使用,一旦达到限制,Redis将关闭所有新连接,并发送一个错误“max number of clients reached”。

相关文章

网友评论

      本文标题:REDIS----配置文件----CLIENTS

      本文链接:https://www.haomeiwen.com/subject/hzlezhtx.html