Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow --port range for random port selection #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

samrocketman
Copy link

This way the tracker listens on a new random port each time horde is called. This allows Horde to be integrated into a continuous delivery/continuous deployment environment from the same deploy agent to multiple destination hosts (with different projects). This will allow the deployments to scale well in an automated deployment environment.

With port range, the socket is tested before port is used.

This was a cherry pick from russss#14.

This way the tracker listens on a new random port each time
herd.py is called.  This allows Herd to be integrated into a
continuous delivery/continuous deployment environment.

With port range socket is tested before port is used.

pep8 cleanup on get_random_open_port function compared to Herd
patch.
Updated gitignore so that paths created by setup.py commands are
ignored.
A random port selection from a port range has moved to
being selected at the beginning of runtime.
Within function get_random_open_port().

The socket testing interfered with the actual tracker starting a
listener.  Since no communication happens over the opened socket,
and we're just testing if it is free to bind, there should be
no timeout for the socket to expire.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant