-
Notifications
You must be signed in to change notification settings - Fork 33
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
#624 Set flat priority only for services with traffic splitting #414
Conversation
7df2532
to
51d3df9
Compare
clusterLoadAssignment: ClusterLoadAssignment?, | ||
trafficSplitting: TrafficSplittingProperties | ||
) = clusterLoadAssignment?.endpointsList | ||
?.any { e -> trafficSplitting.zoneName == e.locality.zone && e.lbEndpointsCount > 0 } ?: false |
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.
Why we no longer check if there are any endpoints?
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.
yea I think I had some justification when I was deleting it, but now don't recall why, so returned it back
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.
as I understand you had it tested here and it worked without checking endpoint count?
...core/src/main/kotlin/pl/allegro/tech/servicemesh/envoycontrol/snapshot/SnapshotProperties.kt
Show resolved
Hide resolved
.../pl/allegro/tech/servicemesh/envoycontrol/snapshot/resource/clusters/EnvoyClustersFactory.kt
Outdated
Show resolved
Hide resolved
.../pl/allegro/tech/servicemesh/envoycontrol/snapshot/resource/clusters/EnvoyClustersFactory.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: kozjan <[email protected]>
Added setting: "zonesAllowingTrafficSplitting", so changes in a config would be made only for envoys in that zone
Fixed setting priority for traffic splitting endpoints, they will be duplicated with higher priorities
closes allegro-internal/flex-roadmap#624
tests