-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go side changes 1. Extend types.LBBackEnd, Service4Value, Service6Value to take Weight. 2. Generate ServiceRRSeq{}, a sequence of backends to pick based on weights. 3. Create cilium_lb4_rr_seq BPF map mapping master Service4Key to ServiceRRSeq 4. Create cilium_lb6_rr_seq BPF map mapping master Service6Key to ServiceRRSeq BPF data path changes 1. split lb_select_slave into lb6_select_slave and lb4_select_slave 2. If master has slaves with weights configured do weight based lb 3. Else do hash based lb. Weight based load balancing. 1. Compute hash like before 2. Lookup lb_sequence and index into (hash % sequence length) for slave idx. Addressed @aanm, @daniel & @tgraf code review comments. Signed-off-by: Madhu Challa madhu@cilium.io
- Loading branch information
Showing
18 changed files
with
444 additions
and
76 deletions.
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
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
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
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
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
Oops, something went wrong.