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

Feature - Load Balancer Round Robin Queue for Destination Selection #1036

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

Conversation

ryleyd
Copy link

@ryleyd ryleyd commented Feb 2, 2017

Requesting the addition of a new destination selection method for load balancer module. Organizes a virtual queue for destinations and uses this information to select destinations on a round robin basis (in order to balance load when selections are staggered and not simultaneous). Raising new flag 'q' at load balance start will modify selection to use this information.
This feature is used to fulfill a customer requirement to utilize the least used resource during balance selection.

Additional fixes include bug fix to group selection (using -1 for all was not working) and spelling fix in one location.

@bogdan-iancu bogdan-iancu self-requested a review February 13, 2017 08:31
@ryleyd
Copy link
Author

ryleyd commented Aug 2, 2017

Hey are there any additional changes/steps that I need to do? I was hoping to get some more feedback on this pull request.

//Find lowest queue number in virtual queue
q_lowest = data->dst_no;
for( i=0 ; i<dsts_size_cur; i++){
if (dsts[i]->queue_loc < q_lowest){
Copy link
Member

@liviuchircu liviuchircu Aug 3, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Harmless in this case, but for code consistency, this should be dsts_cur[i]->queue_loc, as below.

@bogdan-iancu bogdan-iancu self-assigned this Sep 21, 2017
@bogdan-iancu bogdan-iancu added this to the 2.4.0 milestone Sep 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants