Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

proxy: stop listening on error or empty proxyConf. #76

Conversation

sgotti
Copy link
Member

@sgotti sgotti commented Oct 28, 2015

Since multiple proxies can be load balanced, the lb needs to know which proxy
is healthy.

Before this patch on error communicating with etcd or with an empty proxyConf
the proxy closes connections to the previous master but continues accepting
connections and closing them instantly.

With this patch, on error communicating with etcd or with empty proxyConf the
proxy stops listening. It will restart listening on successful etcd
communication and a populated proxyConf.

In this way a load balancer with a standard tcp check will detect the proxy as
not healthy and not balance to it.

This is enabled by default and can be disabled with --stop-listening=false

Since multiple proxies can be load balanced, the lb needs to know which proxy
is healthy.

Before this patch on error communicating with etcd or with an empty proxyConf
the proxy closes connections to the previous master but continues accepting
connections and closing them instantly.

With this patch, on error communicating with etcd or with empty proxyConf the
proxy stops listening. It will restart listening on successful etcd
communication and a populated proxyConf.

In this way a load balancer with a standard tcp check will detect the proxy as
not healthy and not balance to it.

This is enabled by default and can be disabled with `--stop-listening=false`
sgotti added a commit to sgotti/stolon that referenced this pull request Oct 28, 2015
…tcd_error_empty_proxyconf

proxy: stop listening on error or empty proxyConf.
@sgotti sgotti merged commit b5df80e into sorintlab:master Oct 28, 2015
sgotti added a commit that referenced this pull request Oct 28, 2015
…_empty_proxyconf

proxy: stop listening on error or empty proxyConf.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant