mdevilliers / redishappy

Redis Sentinel high availabillity daemon
Apache License 2.0
114 stars 23 forks source link

Re-sync topology upon PUBSUB connection #42

Closed scottgeary closed 8 years ago

scottgeary commented 8 years ago

As soon as we make a PUB/SUB connection, we should retrieve the current topology, to ensure the flipper_client is up-to-date.

If for any reason we loose connectivity (such as a detectable TCP failure), this ensures any missed +switch-master events can be mitigated.

This works by

This means we can also remove the startup intiliseTopology(), as we know that same kind of event will take place upon any sentinel connection now.

The various flapper_clients will likely start to receive more events (depending on your Cluster + Sentinel count), but being consistent and reliable is the key here.

scottgeary commented 8 years ago

Looks like the Travis build did complete, but it couldn't talk to "Coveralls":

Bad response status from coveralls: 422 - {"message":"Couldn't find a repository matching this job.","error":true}
mdevilliers commented 8 years ago

I've restarted the build - will check back later

mdevilliers commented 8 years ago

Great work