dragonfly-operator
dragonfly-operator copied to clipboard
Better handling of master failover
It looks like most applications do have Redis reconnect support if Redis operation results in error such as ReplyError: READONLY You can't write against a read only replica
. In fact the ioredis docs specifically mention this usecase.
This is related to https://github.com/dragonflydb/dragonfly-operator/issues/149#issuecomment-1921063199
To better support dumb clients I would advise implementing TCP disconnect when Dragonfly pod loses master role to ensure clients reconnect to the new Dragonfly master pod