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

Add a ClientPool for distributing to multiple gearmand #1

Open
bzikarsky opened this issue Dec 18, 2013 · 0 comments
Open

Add a ClientPool for distributing to multiple gearmand #1

bzikarsky opened this issue Dec 18, 2013 · 0 comments

Comments

@bzikarsky
Copy link
Owner

  • Add a class ClientPool (implementing ClientInterface); additional methods
    • addClient($hostname, $port)
    • setDistributionStrategy($strategy)
    • getDistributionStrategy()
  • Add a factory method createClientPool($strategy = null)

The client-pool should chose a client at submission based by its strategy, e.g. random, workload-hash-based or just the first one. Actions such as setConnectionOption should forwarded to all clients.
The actions should be robust against single Clients disconnecting/failing and move on accordingly,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant