haproxyctl

Wrapper to talk to the HAProxy socket, as well as regular init (start|stop|status|etc) stuff

Github星跟踪图

HAProxyCTL

This is a simple wrapper to make life with HAProxy a little more convenient.

  • Acts as an init script for start, stop, reload, restart, etc
  • Leverages 'socket' to enable and disable servers on the fly
  • Formats server weight and backends in a readable way
  • Provides Nagios and Cloudkick health checks
  • chkconfig/service-able for Redhat folk

Here is a presentation about it. Hit space to advance slides.

Installation

On most UNIX, assuming HAProxy is in the $PATH:

For chkconfig/RedHat/Centos, add:

Or if have RubyGems, just gem install it!

Or if you are on Debian, just install haproxy with apt-get!

There is also an HAProxy source installation script. This installs not only the steps above but also HAProxy itself.

Options

Examples

Status check

Errors to the backend servers

Human readable health check

Disable servers on the fly

Graceful reloads

Cloudkick/Nagios checks with graph-friendly output for queue size, total connections, etc

does normal things like checks if a process is running before starting it...

keeps all the regular UNIX socket stuff

Extends stat command to print only counters supplied as arguments

Enable or disable a target server from every backend it appears.

Has an EXCEPT flag, too

Contributors

Non-current HAProxy versions

Be aware that HAProxy below version 1.4 does not support many of the
options of haproxyctl.

License

This code is released under the MIT License. You should feel free to do whatever you want with it.

主要指标

概览
名称与所有者flores/haproxyctl
主编程语言Ruby
编程语言Ruby (语言数: 2)
平台
许可证Other
所有者活动
创建于2010-11-24 20:07:30
推送于2017-06-14 20:08:51
最后一次提交2015-02-13 10:30:58
发布数6
最新版本名称1.3.0 (发布于 2014-02-14 13:09:10)
第一版名称0.1.0 (发布于 2012-02-13 13:39:18)
用户参与
星数359
关注者数31
派生数68
提交数136
已启用问题?
问题数15
打开的问题数7
拉请求数15
打开的拉请求数8
关闭的拉请求数2
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?