The steps for configuring the clients are as follows:
- To set the networking parameters for clients, add the following lines into the Redis configuration file, redis.conf:
timeout 0
tcp-backlog 511
- To set the maximum number of clients and tcp-keepalive interval for a Redis instance and Redis Sentinel, add the following line into the Redis configuration file and Redis Sentinel configuration file:
maxclients 10000
tcp-keepalive 300
- To set the client buffer parameters for clients, add the following lines in the Redis configuration file, redis.conf:
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit slave 512mb 256mb 60
client-output-buffer-limit pubsub 32mb 8mb 60