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

#624 Set flat priority only for services with traffic splitting #414

Merged
merged 6 commits into from
Apr 24, 2024

Conversation

nastassia-dailidava
Copy link
Contributor

@nastassia-dailidava nastassia-dailidava commented Apr 22, 2024

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

clusterLoadAssignment: ClusterLoadAssignment?,
trafficSplitting: TrafficSplittingProperties
) = clusterLoadAssignment?.endpointsList
?.any { e -> trafficSplitting.zoneName == e.locality.zone && e.lbEndpointsCount > 0 } ?: false
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Collaborator

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?

docs/configuration.md Outdated Show resolved Hide resolved
@nastassia-dailidava nastassia-dailidava merged commit a7d946e into master Apr 24, 2024
6 of 7 checks passed
@nastassia-dailidava nastassia-dailidava deleted the ts-priority-fix branch April 24, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants