redis / redis-py

Redis Python client
MIT License
12.53k stars 2.5k forks source link

Feature request: JSON.GET in cluster.py READ_COMMANDS #2802

Open nlsj1985 opened 1 year ago

nlsj1985 commented 1 year ago

Version: redis==4.5.5

Platform: Python 3.11 on Linux

Description: JSON.GET isn't performed on replicas when read_from_replicas=True

I've added JSON.GET to the READ_COMMANDS frozenset in commands/cluster.py and it seems to help distribute reads over all nodes for the particular shard, but I'm not a subject expert, and only tested this with 1 shard on my cluster.

If requested i can make a pull request. Or in case needed, i can test this with >1 shard for JSON.GET

But perhaps you would like to extend it with more commands in one go.

Thanks for your feedback

github-actions[bot] commented 2 months ago

This issue is marked stale. It will be closed in 30 days if it is not updated.