rabbitmq / rabbitmq-autocluster

RabbitMQ peer discovery and cluster formation plugin, supports RabbitMQ 3.6.x
BSD 3-Clause "New" or "Revised" License
241 stars 54 forks source link

Consul: allow clustering with nodes in warning status #10

Closed ValFadeev closed 7 years ago

ValFadeev commented 7 years ago

moved from https://github.com/aweber/rabbitmq-autocluster/pull/140

Consul agent may be configured with additional health checks, besides the TTL one created by the plugin. Some of these checks may expect a converged cluster. If any of those additional checks is not passing the corresponding nodes will be excluded from the list for clustering which is not always the desired situation.

This change aims to provide flexibility to define additional health checks while avoiding interference with auto clustering. This is consistent with Consul's only-passing option which determines whether nodes with warning status are excluded from the DNS response.

michaelklishin commented 7 years ago

@ValFadeev thank you!