Skip to content

Commit 1656e15

Browse files
committed
Valkey: Redis: Use IP address in sentinel configuration
To use the hostname in Valkey, the support should be explicitly enabled[1]. [1] https://valkey.io/topics/sentinel/ ``` Enabling the resolve-hostnames global configuration allows Sentinel to accept host names: ``` We fixed the same problem with redis driver in the past[2]. [2] 6cbb3fc
1 parent a2fa2bd commit 1656e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pifpaf/drivers/valkey.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _setUp(self):
6767
cfg = os.path.join(self.tempdir, "valkey-sentinel.conf")
6868
sentinel_conf = """dir %s
6969
port %d
70-
sentinel monitor pifpaf localhost %d 1
70+
sentinel monitor pifpaf 127.0.0.1 %d 1
7171
""" % (self.tempdir, self.sentinel_port, self.port)
7272
if self.password:
7373
sentinel_conf += (

0 commit comments

Comments
 (0)