jfroy / flatops

k8s cluster for leflat managed by Flux
MIT License
12 stars 0 forks source link

Tune cilium #273

Closed jfroy closed 2 months ago

jfroy commented 3 months ago

Pretty much everything in https://docs.cilium.io/en/stable/operations/performance/tuning

JJGadgets commented 3 months ago

Adding some of my personal experience, may be right or outdated or a skill issue on my part.

If you're using a simple L2 network setup (eg all networking configured on Talos config), then eBPF host routing is fine, but beware that if you do more complicated stuff on the host network layer, like receiving L3 routes via routing protocols like BGP/OSPF/OpenFabric etc, Cilium will not follow those properly with eBPF Masquerade enabled (it's flaky).

Also XDP acceleration may cause interfaces to not be detected and used properly if the XDP stuff isn't established as Cilium is starting up (eg having supported and unsupported interfaces in the mix and not specifying devices in Cilium config, or just the hardware + software stack used doesn't properly support XDP on all sides (maybe kernel config or whatnot)).

jfroy commented 3 months ago

Applied most of the changes except netkit which does not seem to work. Not root caused, but ARP seems to get blocked.

jfroy commented 2 months ago

Closing. Will open a separate issue for netkit once it has matured.