Redis (1)


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