sentinel resolve-hostnames and sentinel announce-hostnames configuration

425 views
Skip to first unread message

Apoorv Verma

unread,
Dec 28, 2022, 12:41:48 AM12/28/22
to Redis DB

Hello Team ,

We are in the process of migrating from Redis 5.0.5 version to Redis 7.0.6 version in production.

We had an observation while qualifying Redis new version that our Sentinel docker container was not coming up with our original configuration unless we introduced the following setting in sentinel.conf

sentinel resolve-hostnames yes

After going through Redis documentation we got to know initially the nodes were resolved using ip address which is now replaced by hostnames (which is an optional feature)

  • Wanted to know if this is an optional feature , why the container is not coming up with the pre existing configuration ?
  • Why the default ip address resolution is not working with the new version of Redis?
  • Do we have to explicitly use sentinel resolve-hostnames yes with the new version of Redis?
  • Do we also need to use sentinel announce-hostnames yes also with this ?
  • Is there any side impact of using the above configurations on the sentinel health ?

Please address the above questions.

Best Regards,
Apoorv

Reply all
Reply to author
Forward
0 new messages