Skip to content
This repository was archived by the owner on Dec 13, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -436,5 +436,3 @@ In most cases, `dockercloud/haproxy` will configure itself automatically when th

* `docker exec <haproxy_id> /reload.sh`, if you are on the node where dockercloud/haproxy deploys
* `docker-cloud exec <haproxy_uuid> /reload.sh`, if you use docker-cloud cli

Note: when `reload.sh` is invoked, it doesn't necessarily mean that HAProxy will be restarted. In fact, `dockercloud/haproxy` will try to get the current information of the the service and calculate a new configuration. HAProxy will only be restarted when the newly generated configuration differs from the current one.
6 changes: 5 additions & 1 deletion haproxy/eventhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def on_websocket_close():


def on_user_reload(signum, frame):
run_haproxy("User reload")
Haproxy.cls_cfg = None
if config.LINK_MODE == "legacy":
logger.info("User reload is not supported in legacy link mode")
else:
run_haproxy("User reload")


def listen_dockercloud_events():
Expand Down