sensu / sensu-transport

The Sensu transport abstraction library.
MIT License
14 stars 19 forks source link

Reconnect after failing to resolve a RabbitMQ hostname #57

Closed portertech closed 6 years ago

portertech commented 6 years ago

A combination of periodic reconnect and separate hostname resolution attempts effectively caused a DOS of a DNS endpoint.

This pull request leverages the reconnect() logic with retry timer backoff. Using reconnect also allows the transport to connect to another eligible broker after failing to resolve a hostname.

Closes https://github.com/sensu/sensu/issues/1798

Signed-off-by: Sean Porter portertech@gmail.com