haproxyctl

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

Github stars Tracking Chart

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.

Overview

Name With Ownerflores/haproxyctl
Primary LanguageRuby
Program languageRuby (Language Count: 2)
Platform
License:Other
Release Count6
Last Release Name1.3.0 (Posted on 2014-02-14 13:09:10)
First Release Name0.1.0 (Posted on 2012-02-13 13:39:18)
Created At2010-11-24 20:07:30
Pushed At2017-06-14 20:08:51
Last Commit At2015-02-13 10:30:58
Stargazers Count360
Watchers Count32
Fork Count73
Commits Count136
Has Issues Enabled
Issues Count15
Issue Open Count7
Pull Requests Count15
Pull Requests Open Count8
Pull Requests Close Count2
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private
To the top