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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?