Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
python library to track remote host state, and mark hosts as failed
Python
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore finish implementing/testing host_pool
MANIFEST finish implementing/testing host_pool
README.md
host_pool.py tag 0.2
setup.py tag 0.2
test_host_pool.py finish implementing/testing host_pool

README.md

host_pool

A generic interface to track a list of remote hosts to allow auto-backoff from a failed remote host.

pool = host_pool.HostPool(['servera','serverb'])
endpoint = pool.get()
pool.success(endpoint)
endpoint = pool.get()
pool.failed(endpoint)
Something went wrong with that request. Please try again.