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

prepend encapsulation rules to reduce number of reconciliation thereof #317

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

clive-jevons
Copy link
Contributor

because of the way the iptables rules are reconciled, having the encapsulation
rules at the end of the slice of rules results in them being deleted and re-added
many times, even though they are very static. Prepending them to the slice of
rules prevents this from happening, making that iptables chain more stable
and saving a bunch of roundtrips to iptables.

squat
squat previously approved these changes Jun 29, 2022
Copy link
Owner

@squat squat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed in the Kilo Slack channel, I think this optimization makes a lot of sense and is a welcome addition 🎉

leonnicolas
leonnicolas previously approved these changes Jun 29, 2022
@squat
Copy link
Owner

squat commented Jun 29, 2022

I think we need to debug the e2e tests; something keeps causing then to time out during rollout of some deployment.

@squat
Copy link
Owner

squat commented Jun 29, 2022

(most likely unrelated to the PR)

@leonnicolas
Copy link
Collaborator

We need to investigate why the e2e tests fail. I don't think it is related to this PR.

@leonnicolas
Copy link
Collaborator

With #319 the e2e test should work again. Can you rebase the PR?

because of the way the iptables rules are reconciled, having the encapsulation
rules at the end of the slice of rules results in them being deleted and re-added
many times, even though they are very static. Prepending them to the slice of
rules prevents this from happening, making that iptables chain more stable
and saving a bunch of roundtrips to iptables.
@clive-jevons clive-jevons dismissed stale reviews from leonnicolas and squat via 0f0b0bd July 12, 2022 13:02
@clive-jevons clive-jevons force-pushed the prepend-encapsulation-rules-in-mesh branch from 7093aaa to 0f0b0bd Compare July 12, 2022 13:02
@clive-jevons
Copy link
Contributor Author

With #319 the e2e test should work again. Can you rebase the PR?

@leonnicolas <- done 😁

@squat
Copy link
Owner

squat commented Jul 14, 2022

thanks @clive-jevons!

@squat squat merged commit cd4a1ee into squat:main Jul 14, 2022
@clive-jevons
Copy link
Contributor Author

thanks @clive-jevons!

Always a pleasure - and thank you, @squat and @leonnicolas for all your support in getting this PR done 😁

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