Wizcorp / frontrunner

Automated HAProxy reconfiguration for Marathon
https://github.com/Wizcorp/frontrunner
MIT License
57 stars 2 forks source link

zookeeper: connection refused #12

Closed stelcheck closed 9 years ago

stelcheck commented 10 years ago
{ [Error: connect ECONNREFUSED]
  code: 'ECONNREFUSED',
  errno: 'ECONNREFUSED',
  syscall: 'connect' }

And yet the app keeps on running... we need to have some reconnect logic as well as bailout on failure.

stelcheck commented 10 years ago

Actually, got this wrong. this happens when marathon died...

MiLk commented 10 years ago

frontrunner is unable to refresh the proxy configuration if marathon is down, but it should continue to run as expected.

Except a better error message, what do you want to change?

stelcheck commented 10 years ago

Perhaps just connect retry?

MiLk commented 10 years ago

I wonder if this error doesn't come from https://github.com/Wizcorp/frontrunner/blob/29ee88146bf4e7db7700a5038f87696479b33e50/lib/marathon.js#L34. The zookeeper module already has a retry mechanism.

Edit: Confirmed, it comes from the http request.

stelcheck commented 10 years ago

Is it possible to log-and-retry forever?

MiLk commented 10 years ago

13 updated.