-
Notifications
You must be signed in to change notification settings - Fork 689
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
Add source ip hashing to RequestHash load balancing #4141
Add source ip hashing to RequestHash load balancing #4141
Conversation
- must specify exactly one of header hashing policy or source ip hashing in a list element (otherwise ignored and warning generated) - cant specify to hash source ip multiple times (otherwise ignored and warning generated) Fixes: projectcontour#3703 Signed-off-by: Sunjay Bhatia <[email protected]>
Signed-off-by: Sunjay Bhatia <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #4141 +/- ##
==========================================
+ Coverage 74.64% 74.71% +0.06%
==========================================
Files 112 112
Lines 9722 9741 +19
==========================================
+ Hits 7257 7278 +21
+ Misses 2309 2307 -2
Partials 156 156
|
Signed-off-by: Sunjay Bhatia <[email protected]>
Signed-off-by: Sunjay Bhatia <[email protected]>
// load balancing is desired. It must be the only hash option field set, | ||
// otherwise this request hash policy object will be ignored. | ||
// +optional | ||
HashSourceIP bool `json:"hashSourceIP,omitempty"` |
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.
another option would be to put this in a "connection properties" struct to mirror Envoy in case there are other options that could be set in parallel to this in the future, but they do not exist and my guess is Envoy won't really be able to make other options that can be set in parallel to this, rather they would be separate policies in practice
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.
LGTM, nice work @sunjayBhatia
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.
Nice work @sunjayBhatia !
@@ -0,0 +1,5 @@ | |||
### Source IP hash based load balancing |
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.
This changelog note is perfect, thanks @sunjayBhatia!
Updates operator per Contour changes: projectcontour/contour#4141 projectcontour/contour#4138 projectcontour/contour#4145 Signed-off-by: Steve Kriss <[email protected]>
Updates operator per Contour changes: projectcontour/contour#4141 projectcontour/contour#4138 projectcontour/contour#4145 Signed-off-by: Steve Kriss <[email protected]>
in a list element (otherwise ignored and warning generated)
warning generated)
Fixes: #3703