This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an endpoint to reload HAProxy config (#312)
* First attempt at a reload endpoint * Add --api-listen parameter * Parse API listen URI before launching thread * Catch errors early * Apparently the http:// is important... * Refactor config validation into separate method * Simplify logic around skipping validation * In preparation for testing existing config... * Add the ability to reload existing HAProxy config * <endpoint>/reload?existing * Fix notifying bools in event processor * Improve debug logging around config comparisons * Tweak response messages for reload API * Do a slightly better check on query params * Add a README note about the endpoint * Regenerate Longhelp.md * Remove API and add signal handling to the event processor * Revert "Regenerate Longhelp.md" This reverts commit eef20c8. * Revert "Add a README note about the endpoint" This reverts commit c5a5c50. * Add Lua script and endpoints to send signals to marathon-lb * Write about new endpoints in README * Regenerate Longhelp.md * Add note to README about marathon-lb expecting to be in its own PID namespace
- Loading branch information
1 parent
f7ca0e0
commit 54935d9
Showing
6 changed files
with
184 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.