Caddy + redis sentinel

I use Caddy with plugin GitHub - pberkel/caddy-storage-redis
With single redis instance all works fine.
Now i’d like to use redis sentinel.
Looks like plagin is ready for it, they have sample for redis sentinel.
But, i was confused that they used redis port 6379 in example.

        address {
            redis-sentinal-001.example.com:6379
            redis-sentinal-002.example.com:6379
            redis-sentinal-003.example.com:6379
        }

According to documentation, application should use redis sentinel nodes, receive from them current redis master and use it.
But, how do the Caddy will know if master fail, and sentinel promote new master?
I don’t see how Caddy connects to sentinel in this sample configuration.

May be it is mistake in the config sample, and port should be 26379 ?
Or Caddy may directly ask redis nodes about replication status and remember who is the master?

The issue on the repo is the right place to ask :+1: I’ll defer to pberkel to answer.

1 Like

Btw, 26379 is correct port for this situation.

1 Like

This topic was automatically closed after 30 days. New replies are no longer allowed.