Simple client for A10 load balancers
Project description
WARNING - This is alpha software and subject to breaking changes and/or bugs.
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.
Features
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
Python 2.6 – 3.4
Thread safety
Installation
To install Warthog, simply run:
$ pip install warthog
Usage
Using the client is easy!
from warthog.api import WarthogClient
client = WarthogClient('https://lb.example.com', 'user', 'password')
client.disable_server('app1.example.com')
# Install something on the server or restart your application
client.enable_server('app1.example.com')
# Or, use the client as a context manager!
with client.disabled_context('app1.example.com'):
# install something on the server or restart your application
pass
See the docs for more information.
Code
The source code is available at https://github.com/smarter-travel-media/warthog
Documentation
Documentation is available at https://warthog.readthedocs.org/
Changes
The change log is available at https://warthog.readthedocs.org/en/latest/changes.html
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.