List number of connections per client on a redis server

The redis-client client list command allows you to list all clients connected to a redis server (along with a bunch of other useful information listed here

Here’s a quick command to allow you to list the number of connections per client:
./redis-cli client list | awk -F'[ =:]' '{print $4}' | sort | uniq -c

No Comments

You can leave the first : )

Leave a Reply

Your email address will not be published. Required fields are marked *