-
Notifications
You must be signed in to change notification settings - Fork 119
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
High Cpu Usage #135
Comments
updated: i downgrade kilo to three month ago version, erverything is ok also i found that the leatest kilo image was updated ten minutes ago so maybe there is some thing wrong with the new code ? |
Hi @Ehco1996, thanks a lot for reporting this. Yes, the new code from acfd0bb is known to be fragile because the iptables controller is comparing the text of iptables rules literally rather than semantically. We have a plan to replace this with an iptables rules parser very soon to make this more robust. Ironically, this change was made to reduce the CPU utilization of Kilo in #113. In order to understand why the iptables controller is failing for you, could you share the output of Thanks! |
@squat thanks for quick reply. after i downgrade kilo to logs :
iptables rules:
to reproduce the high cpu usage ,i upgrade kilo to the latest ver iprtables rules:
|
Thanks for the help! From your iptables-save dump it seems clear to me that the problem is that #116 didn't fix the IPIP rules in https://github.com/squat/kilo/blob/main/pkg/encapsulation/ipip.go#L68-L83. I'll sort this out ASAP |
@Ehco1996 ok, we just merged a fix for this bug! plz try out the latest Kilo and re-open the issue if you still have problems. Thanks for your collaboration :) |
today i restart one k3s node , and restart the kilo pod
after that kilo pod use a lot of cpu :
the kilo log show that "kilo-gnxvg kilo {"caller":"iptables.go:308","component":"iptables","level":"info","msg":"applying 7 iptables rules","ts":"2021-03-12T00:15:23.452988995Z"}"
i think maybe there is an infinite loop in the code which always flush the iptables rule ?
The text was updated successfully, but these errors were encountered: