Warthog is a simple Python client for interacting with A10 load balancers. The target use case is for safely removing servers from pools in a load balancer during a deployment. It is available under the MIT license.
- Waiting for servers to finish all requests when being disabled
- Graceful handling of transient errors with optional retry logic
- Support for interacting with the load balancer API using SSL
- Works with Python 2.6, 2.7, 3.3, and 3.4+
- Thread safety
To install Warthog, simply run:
$ pip install warthog
Using the client is easy!
from warthog.api import WarthogClient
def install_my_project(server):
pass
client = WarthogClient('https://lb.example.com', 'user', 'password')
client.disable_server('app1.example.com')
install_my_project('app1.example.com')
client.enable_server('app1.example.com')
See the docs for more information.
The latest documentation is available at https://warthog.readthedocs.io/en/latest/
The source code is available at https://github.com/smarter-travel-media/warthog
Python packages are available at https://pypi.python.org/pypi/warthog
The change log is available at https://warthog.readthedocs.io/en/latest/changes.html