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

cpu high #3114

Closed
chensunny opened this issue Sep 20, 2018 · 5 comments · Fixed by #3118
Closed

cpu high #3114

chensunny opened this issue Sep 20, 2018 · 5 comments · Fixed by #3118

Comments

@chensunny
Copy link

Is this a request for help? (If yes, you should use our troubleshooting guide and community support channels, see https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/.):

What keywords did you search in NGINX Ingress controller issues before filing this one? (If you have found any duplicates, you should instead reply there.):


Is this a BUG REPORT or FEATURE REQUEST? (choose one):

NGINX Ingress controller version:
nginx-ingress-controller:0.19.0

Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2+coreos.0", GitCommit:"b427929b2982726eeb64e985bc1ebb41aaa5e095", GitTreeState:"clean", BuildDate:"2018-01-18T22:56:14Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2+coreos.0", GitCommit:"b427929b2982726eeb64e985bc1ebb41aaa5e095", GitTreeState:"clean", BuildDate:"2018-01-18T22:56:14Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}
Environment:

  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
    Linux szdc-k8sm-2-2.meitu-inc.com 4.4.108-1.el7.elrepo.x86_64 Basic structure  #1 SMP Mon Dec 25 09:55:39 EST 2017 x86_64 GNU/Linux

What happened:
process nginx-ingress-controller cpu high while use wrk benchmark

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know:

@chensunny
Copy link
Author

@chensunny
Copy link
Author

it case by collect metrics while parse json

@JordanP
Copy link
Contributor

JordanP commented Sep 20, 2018

How high? Like 100% of a cpu core, 25% ? What's the hardware spec ?

@chensunny
Copy link
Author

chensunny commented Sep 21, 2018

How high? Like 100% of a cpu core, 25% ? What's the hardware spec ?

24 core , nginx (24 worker) almost use 1000%cpu, nginx-ingress-controller almost use 300% in begin, laster 200%.

it`s easy to recurrent

@aledbf
Copy link
Member

aledbf commented Sep 22, 2018

@chensunny please use quay.io/kubernetes-ingress-controller/nginx-ingress-controller:dev to test the fix
Also, can you also post the plain table from pprof? (the svg is nice but I don't see any numbers there)

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 a pull request may close this issue.

3 participants