Skip to content
This repository has been archived by the owner on Aug 8, 2018. It is now read-only.

CLI for managing clusters of haproxy servers via HTTP

License

Notifications You must be signed in to change notification settings

shift31/haproxy-cluster-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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

About

CLI for managing clusters of haproxy servers via HTTP

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages