Skip to content

Conversation

ymjiang
Copy link
Member

@ymjiang ymjiang commented Sep 23, 2019

No description provided.

@ymjiang ymjiang changed the title common: improve server load balancing common: improve key distribution Sep 23, 2019
@ymjiang ymjiang changed the title common: improve key distribution common: improve server load balancing Sep 23, 2019
@ymjiang
Copy link
Member Author

ymjiang commented Sep 23, 2019

For a "4 servers" case, the allocation result is

server 0, accumulated workload for this server is 50711832
server 1, accumulated workload for this server is 52251160
server 2, accumulated workload for this server is 51573260
server 3, accumulated workload for this server is 50041932

Using std::hash sometimes does not generate balanced allocation, so just add it as an option.

@ymjiang ymjiang merged commit aa09db8 into master Sep 23, 2019
@ymjiang ymjiang deleted the ps_lb branch September 23, 2019 15:13
@ymjiang ymjiang restored the ps_lb branch September 23, 2019 15:13
@ymjiang ymjiang deleted the ps_lb branch September 23, 2019 15:13
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