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

Permit creating client with multiple broker addresses #13

Merged
merged 1 commit into from
Aug 15, 2013

Commits on Aug 15, 2013

  1. Permit creating client with multiple broker addresses

    Fixes #7
    
    This does basically the simplest thing that works. It has some flaws, but most
    importantly it gets the API in place and is basically functional. We can
    improve it later without breaking API compatibility.
    
    Remaining sub-optimal behaviour:
     * If the user provides three addresses, only the last of which is valid, we
       wait for the first two connections to completely fail (which may take several
       minutes depending on the TCP timeout) before we try the third. Trying them
       all in parallel and using the first valid one would be better.
     * Once we've had an address fail, we discard it forever. Over the lifetime of a
       long-running cluster, all of the nodes may be down at one point or another,
       meaning that eventually we may 'run out' of nodes and abort. We should
       probably just mark the address as recently-failed, and retry them after some
       time has passed. Only if all nodes have *recently* failed should we abort.
    Evan Huus committed Aug 15, 2013
    Configuration menu
    Copy the full SHA
    34918e6 View commit details
    Browse the repository at this point in the history