Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

python library to track remote host state, and mark hosts as failed

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 MANIFEST
Octocat-spinner-32 README.md
Octocat-spinner-32 host_pool.py
Octocat-spinner-32 setup.py
Octocat-spinner-32 test_host_pool.py
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.