-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #153 - add hatop utility for troubleshooting haproxy
- Loading branch information
1 parent
891fa6d
commit a4e5edd
Showing
5 changed files
with
31 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# New Features | ||
|
||
- The `hatop` utility has been added to haproxy-boshrelease to assist in haproxy troubleshooting | ||
http://feurix.org/projects/hatop/ Kudos to @jhunt and the [Genesis Community](https://github.com/genesis-community) for making this possible! | ||
- @Scoobed added support for specifying additional filesystem paths to make available to the HAProxy | ||
process via BPM's [unrestricted volumes list](https://github.com/cloudfoundry/bpm-release/blob/master/docs/config.md#unsafe-schema). | ||
This is particularly helpful when integrating LUA scripts from other BOSH releases. The | ||
`ha_proxy.additional_unrestricted_volumes` will allow this, and uses the same syntax as BPM. | ||
|
||
# Acknowledgements | ||
|
||
Thanks @jhunt and @Scoobed! |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,5 @@ files: | |
- haproxy/pcre2-*.tar.gz | ||
- haproxy/socat-*.tar.gz | ||
- haproxy/lua-*.tar.gz | ||
- haproxy/hatop | ||
- hatop-wrapper |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash | ||
if [[ -z "${1:-}" ]]; then | ||
if [[ -e /var/vcap/sys/run/haproxy/stats.sock ]]; then | ||
exec /var/vcap/packages/haproxy/bin/hatop -s /var/vcap/sys/run/haproxy/stats.sock | ||
elif [[ -e /var/vcap/sys/run/haproxy/stats1.sock ]]; then | ||
exec /var/vcap/packages/haproxy/bin/hatop -s /var/vcap/sys/run/haproxy/stats1.sock | ||
fi | ||
fi | ||
exec /var/vcap/packages/haproxy/bin/hatop "$@" |