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

Improve old and new backend comparison #676

Merged
merged 1 commit into from
Oct 17, 2020
Merged

Conversation

jcmoraisjr
Copy link
Owner

Old and new backends are compared whenever a direct or indirect related ingress, service or endpoint changes. This comparison improves CPU usage avoiding cfg bulding if configurations match, and haproxy reload if a dynamic update can be made.

A static comparison check if all but endpoints match. This comparison need to ignore internal controller attributes related with endpoint, otherwise any change eg to the endpoints order would count as a backend change, which is not right.

pathConfig was added in Per Path Backend Config and since then it was incorrectly firing some backend cfg parsings. This commit remove it from the comparison.

Old and new backends are compared whenever a direct or indirect related
ingress, service or endpoint changes. This comparison improves CPU usage
avoiding cfg bulding if configurations match, and haproxy reload if a
dynamic update can be made.

A static comparison check if all but endpoints match. This comparison
need to ignore internal controller attributes related with endpoint,
otherwise any change eg to the endpoints order would count as a backend
change, which is not right.

`pathConfig` was added in Per Path Backend Config and since then it was
incorrectly firing some backend cfg parsings. This commit remove it from
the comparison.
@jcmoraisjr jcmoraisjr merged commit 981977f into master Oct 17, 2020
@jcmoraisjr jcmoraisjr deleted the jm-backend-match branch October 17, 2020 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant