Respond on slave when master down, if expire data...

28 views
Skip to first unread message

Mauro Celli

unread,
Aug 8, 2022, 7:08:57 AMAug 8
to Redis DB
Hi, i have one simple master with two slave (no sentinel or cluster), in case of master failure, i need slave to respond to read with key/data even if the expire has passed, can i do it?

Kunal Gangakhedkar

unread,
Aug 11, 2022, 10:54:22 AMAug 11
to redi...@googlegroups.com
Details on how redis handles expiries:
https://redis.io/commands/expire/#how-redis-expires-keys

Kunal


On Mon, 8 Aug 2022 at 16:38, Mauro Celli <mauro....@gmail.com> wrote:
Hi, i have one simple master with two slave (no sentinel or cluster), in case of master failure, i need slave to respond to read with key/data even if the expire has passed, can i do it?

--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redis-db+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/redis-db/629c4f73-0b79-431c-bc79-df0fb6035e55n%40googlegroups.com.

vennila....@gmail.com

unread,
Aug 28, 2022, 3:13:05 AMAug 28
to Redis DB
In case of master failure, one slave will be promoted to master and other can be used for read operation (With ReadFrom slave setting). Please note that if the key expires, it will not be available in the master/slave. This is based on my work experience, anyhow you can confirm from your end.
Reply all
Reply to author
Forward
0 new messages