shift31 / haproxy-cluster-control
CLI for managing clusters of haproxy servers via HTTP
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/shift31/haproxy-cluster-control
Requires
- php: >=5.4
- illuminate/console: ~4
- illuminate/support: ~4
- monolog/monolog: @stable
- shift31/haproxy-client: dev-master
This package is not auto-updated.
Last update: 2020-05-29 18:40:26 UTC
README
CLI for managing clusters of HAProxy servers via HTTP
Installation
Download haproxycc.phar
, copy to /usr/local/sbin
, set executable permissions, and optionally rename to haproxycc
Configuration
HAProxy
listen stats :8000
mode http
stats uri /stats
stats auth username:password
stats realm HAProxy
stats admin if TRUE
haproxycc
Create haproxycc.config.php
in HOME
or /etc
:
<?php return [ 'environments' => [ 'qa' => [ 'servers' => [ // FQDN of each haproxy server ], 'port' => 8000, 'baseUrl' => '/stats', 'username' => 'username', 'password' => 'password' ] ], 'backend_nickname_map' => [ // optional, association of nicknames to backend names (as set in the haproxy config) // i.e. 'www' => 'www_http' ] ];
Usage
List available commands with: haproxycc list