Skip to content

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

Open
@nlsj1985

Description

@nlsj1985

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

Metadata

Metadata

Assignees

Labels

techdebtThings that can be improved or refactored

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions