viciious / go-tarantool

Tarantool 1.6+ connector for Go language
MIT License
49 stars 14 forks source link

How to handle situation when master has changed? #64

Open rayman1104 opened 1 year ago

rayman1104 commented 1 year ago

Hi! I love this feature of "mimicing a Tarantool replication slave and get on-the-fly data updates from the Tarantool master". The only thing I don't understand is what should I do if the master goes down and a new master is chosen after election between real replicas? Do you have any advice how to handle this?

viciious commented 1 year ago

To be honest, we've never tried this feature in a clusterset with an elected master. But I assume the correct way here would be to maintain connection to all hosts in the replicaset