Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark GEOSEARCH as read-only to ensure execution on replica instead of… #1481

Merged

Conversation

radu-neacsu
Copy link
Contributor

This update modifies the behavior of the GEOSEARCH command by marking it as a read-only operation. This ensures that the command is routed to and executed on a replica node rather than the master, improving load distribution and preventing unnecessary commands on the master. The change is designed to enhance performance in environments using Redis replication.

@radu-neacsu radu-neacsu requested a review from tillkruss as a code owner October 3, 2024 06:12
@coveralls
Copy link

coveralls commented Oct 3, 2024

Coverage Status

coverage: 80.45% (+0.02%) from 80.429%
when pulling 452460c on radu-neacsu:bugfix/Added_GEOSEARCH_to_readonly_commands
into 0a92618 on predis:v2.x.

vladvildanov
vladvildanov previously approved these changes Oct 10, 2024
@tillkruss tillkruss force-pushed the bugfix/Added_GEOSEARCH_to_readonly_commands branch from 452460c to 079fb48 Compare February 13, 2025 17:12
@tillkruss tillkruss merged commit 549889b into predis:v2.x Feb 13, 2025
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants