inspursoft / board

The "Board" product is a container service platform based on docker + kubernetes, provide cloud solutions for Inspur software group.
MIT License
13 stars 21 forks source link

access service nodeport too slow(about 63s) #911

Open inspuradmin opened 3 years ago

inspuradmin commented 3 years ago

In GitLab by @tmon546596046 on Oct 9, 2020, 01:58

kubernetes 1.18 with flannel (0.11.0) cni plugin

relate kubernetes issues:
https://github.com/kubernetes/kubernetes/issues/76699
https://github.com/kubernetes/kubernetes/issues/88986
https://github.com/coreos/flannel/pull/1282
https://github.com/kubernetes/kubernetes/pull/92035

inspuradmin commented 3 years ago

In GitLab by @tmon546596046 on Oct 9, 2020, 01:58

Note that the problem can also be (mostly) worked around by upgrading to a kernel with the checksum fix (#88986 (comment)) or by disabling checksum offload on the relevant network interfaces (eg, #88986 (comment) gives the command for flannel; some of the other xref'ed bugs may give the exact commands for other plugins if you can't figure it out).

inspuradmin commented 3 years ago

In GitLab by @tmon546596046 on Oct 9, 2020, 01:58

changed the description

inspuradmin commented 3 years ago

In GitLab by @tmon546596046 on Oct 9, 2020, 02:00

according to https://github.com/kubernetes/kubernetes/pull/92035
we can upgrade the kube-proxy to 1.19

inspuradmin commented 3 years ago

In GitLab by @tmon546596046 on Oct 9, 2020, 02:00

changed the description

inspuradmin commented 3 years ago

In GitLab by @tmon546596046 on Oct 9, 2020, 02:02

or we can offload the checksum every node when flannel.1 is created:

sudo ethtool --offload flannel.1 rx off tx off
inspuradmin commented 3 years ago

In GitLab by @tmon546596046 on Oct 9, 2020, 02:08

https://github.com/kubernetes/kubernetes/pull/92256

inspuradmin commented 3 years ago

In GitLab by @tmon546596046 on Oct 9, 2020, 02:16

image

inspuradmin commented 3 years ago

In GitLab by @tmon546596046 on Oct 9, 2020, 02:16

we should upgrade the kubernetes minor version to 1.18.6