-
Notifications
You must be signed in to change notification settings - Fork 136
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
Weighted Random Policy #327
Merged
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c11085f
Version 1 Random policy implementation
3fcccd1
Update load_balancer.c
andreaseno 26a559b
Update load_balancer.c
andreaseno 5bb21ab
Update load_balancer.c
andreaseno f64193a
server configuration
82a2749
small fix
xwedea 647d844
weighted random policy (hardcoded)
xwedea 2d1aff8
Weighted random V1 implementation
cad92a6
small fix
xwedea 0350ae4
Create run_manager.sh
andreaseno 3871710
remove comments
xwedea 03f620b
remove comments
xwedea 9d1a929
free weights & policy
7bc5dd2
initialize random generator
xwedea ac14ae7
fix indentation
xwedea b60a29d
fix indentation
xwedea 60dff3d
fix indentation
xwedea de747d0
delete run_manager.sh
xwedea 6de00e8
enumerate lb->policy
xwedea e84fcd3
capitalize
xwedea 012b413
small fix
xwedea 8220988
small fix
xwedea aa28b1f
remove dead code
xwedea File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
LIST_SIZE 2 | ||
10.10.2.1 3c:fd:fe:b4:fa:4c | ||
10.10.2.3 3c:fd:fe:b0:f1:74 | ||
weighted_random | ||
10.10.1.2 90:e2:ba:ac:16:34 1 | ||
10.10.1.3 90:e2:ba:b3:bb:7d 7 |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
your data structure here will allow us to represent weighted load balancers, but there could be other policies we could come up with in the future that might need totally different data. For now this is fine, but you should think about how you would make this data structure generic so it works for all LBs (but still allows customization by each policy in some way)