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

Add resolve-hostnames support for Sentinel #300

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

loliee
Copy link
Contributor

@loliee loliee commented Jun 29, 2024

This Pull request add support for the Sentinel option: resolve_hostnames.

⚠️ From documentation:

This capability is disabled by default. If you're going to enable DNS/hostnames support, please note:
1. The name resolution configuration on your Redis and Sentinel nodes must be reliable and be able to resolve addresses quickly. Unexpected delays in address resolution may have a negative impact on Sentinel.
2. You should use hostnames everywhere and avoid mixing hostnames and IP addresses. To do that, use replica-announce-ip and sentinel announce-ip for all Redis and Sentinel instances, respectively.

Starting with version 6.2, Sentinel has optional support for host names.

This capability is disabled by default. If you're going to enable DNS/hostnames support, please note:

1. The name resolution configuration on your Redis and Sentinel nodes must be reliable and be able to resolve addresses
quickly. Unexpected delays in address resolution may have a negative impact on Sentinel.
2. You should use hostnames everywhere and avoid mixing hostnames and IP addresses. To do that, use
replica-announce-ip <hostname> and sentinel announce-ip <hostname> for all Redis and Sentinel instances,
respectively.

Cf. https://redis.io/docs/latest/operate/oss_and_stack/management/sentinel/#ip-addresses-and-dns-names
@loliee loliee force-pushed the sentinel/add-resolve-hostnames-support branch from 305d331 to bc456e5 Compare June 29, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant