consul-registration-hook icon indicating copy to clipboard operation
consul-registration-hook copied to clipboard

Delay consul hook registration return

Open ojagodzinski opened this issue 5 years ago • 0 comments

Deregistration in Consul can be quicker than registration and this creates a race condition in which the previous instances can be removed from Consul catalog before adding new ones are propagated to all client agents.

The "best effort" solution would be to at least check at the local agent whether the registered instance is among the ones in the catalog (consul doesn't cache the state, it always reaches the masters for catalog queries).

ojagodzinski avatar Nov 21 '19 13:11 ojagodzinski