-
Notifications
You must be signed in to change notification settings - Fork 58
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
Confusing README #18
Comments
agree, no one can response on this? |
It would appear you are correct that it should be TWICE the traffic. Here's the relevant code:
It handles the weighting simply by adding the connection to a list multiple times, according to the weight factor. (So the weights must be integers.) This makes it clear that, as you'd expect, connections with more weight get used more. |
On the topic of confusing readme, it seems incomplete regarding how to use the read pool.
which static methods? It would be useful to include an example. |
Looking at the example yml file for the pool_weight configuration:
master:
host: master-db.example.com
port: 6000
username: master_user
password: 567pass
read_pool:
- host: read-db-1.example.com
pool_weight: 2
- host: read-db-2.example.com
The explanation below says:
"the connection read-db-1 will get half the traffic as the other two connections, so presumably it's on a more powerful box."
Shouldn't that be "read-db-1 will get TWICE the traffic"?
The text was updated successfully, but these errors were encountered: