RedisLabs / redis-cluster-proxy

A proxy for Redis clusters.
GNU Affero General Public License v3.0
990 stars 129 forks source link

Thoughts on supporting MONITOR command #54

Open bsergean opened 4 years ago

bsergean commented 4 years ago

That command is super useful as a low key way to figure out what's going on in redis. I wonder how hard it would be to support.

Maybe it could have parameter if we want to monitor a special node, but without params it would just list every commands received by the proxy. Not sure how to do that in scalable way, as synchronization will be certainly required.

huxiaozhe commented 4 years ago

Because it is multi-threads,a connect will only belong to one thread.You cannot assign a link to a certain thread.