https://github.com/shift31/haproxy-cluster-control
CLI for managing clusters of haproxy servers via HTTP
https://github.com/shift31/haproxy-cluster-control
Last synced: 5 months ago
JSON representation
CLI for managing clusters of haproxy servers via HTTP
- Host: GitHub
- URL: https://github.com/shift31/haproxy-cluster-control
- Owner: shift31
- License: mit
- Archived: true
- Created: 2015-05-23T01:57:33.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-02T16:57:24.000Z (almost 11 years ago)
- Last Synced: 2024-03-27T05:57:19.530Z (over 2 years ago)
- Language: PHP
- Size: 1.06 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# HAProxy Cluster Control (haproxycc)
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
[
'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```