Skip to content

prepend encapsulation rules to reduce number of reconciliation thereof#317

Merged
squat merged 1 commit intosquat:mainfrom
clive-jevons:prepend-encapsulation-rules-in-mesh
Jul 14, 2022
Merged

prepend encapsulation rules to reduce number of reconciliation thereof#317
squat merged 1 commit intosquat:mainfrom
clive-jevons:prepend-encapsulation-rules-in-mesh

Conversation

@clive-jevons
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Owner

squat commented Jun 29, 2022

(most likely unrelated to the PR)

@leonnicolas
Copy link
Copy Markdown
Collaborator

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

@leonnicolas
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

@leonnicolas <- done 😁

@squat
Copy link
Copy Markdown
Owner

squat commented Jul 14, 2022

thanks @clive-jevons!

@squat squat merged commit cd4a1ee into squat:main Jul 14, 2022
@clive-jevons
Copy link
Copy Markdown
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