https://github.com/protonmail/haproxy-health-check
HAProxy Health Check for EXABGP
https://github.com/protonmail/haproxy-health-check
exabgp haproxy high-availability python
Last synced: about 1 year ago
JSON representation
HAProxy Health Check for EXABGP
- Host: GitHub
- URL: https://github.com/protonmail/haproxy-health-check
- Owner: ProtonMail
- License: bsd-3-clause
- Created: 2018-02-26T14:57:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T14:57:36.000Z (over 8 years ago)
- Last Synced: 2025-04-04T23:35:21.633Z (over 1 year ago)
- Topics: exabgp, haproxy, high-availability, python
- Language: Python
- Size: 3.91 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
haproxy-health-check
===============================
version number: 0.0.1
author: Samuele Kaplun
Overview
--------
HAProxy Health Check for EXABGP
Installation / Usage
--------------------
To install use pip:
$ pip install haproxy-health-check
Or clone the repo:
$ git clone https://github.com/kaplun/haproxy-health-check.git
$ python setup.py install
Example
-------
Use e.g. inside an EXABGP configuration such as:
# Check if the service is available to announce a route to
# it. Since the purpose is high availability, it is expected
# that another host is present with a similar
# configuration. IP address for the service is expected to be
# configured on the loopback interface. You can run the
# healthcheck process manually to check if it works as
# expected (-h flag will give you available options)
process service-haproxy {
run python -m exabgp healthcheck -s --name haproxy --cmd "haproxy-health-check" --start-ip 0;
encoder text;
}
neighbor 10.0.0.3 {
description "will announce a route to a service";
router-id 198.111.227.39;
local-address 10.0.0.2;
local-as 65533;
peer-as 65533;
api services {
processes [ service-haproxy ];
}
}