Skip to content

CPU load goes high #34

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

Open
irumman opened this issue Jul 7, 2021 · 1 comment
Open

CPU load goes high #34

irumman opened this issue Jul 7, 2021 · 1 comment

Comments

@irumman
Copy link

irumman commented Jul 7, 2021

Hi,

I am using this nice module to enable dynamic upstream resolver with keepalive.

Here is my upstream configuration:

resolver 127.0.0.1:8600 ipv6=off valid=1s;
upstream active.vault.service.consul {
    server active.vault.service.consul:8200 resolve max_fails=1 fail_timeout=10s;
    keepalive 512;
    keepalive_requests  1024;
    keepalive_timeout 240s;
}

upstream vault.service.consul {
    server vault.service.consul:8200 resolve max_fails=1 fail_timeout=10s;
    keepalive 512;
    keepalive_requests  1024;
    keepalive_timeout 240s;
}

My Nginx is running in front of Consul which is acting as a dns resolver. The system works fine until I see the following error:

[error] 84#84: upstream-dynamic-servers: 'active.vault.service.consul' could not be resolved (3: Host not found)

Though everything was up during that time, I see the above error and the system cpu goes high to 100% and stuck on that.
Is there anything I am missing in the configuration?

Thanks.

@starjun
Copy link

starjun commented Jul 8, 2021

nginx plus can use or nginx-upstream-dynamic-servers

nginx plus:https://www.nginx.com/products/nginx/load-balancing/
nginx-upstream-dynamic-servers:https://github.com/GUI/nginx-upstream-dynamic-servers

not free nginx

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

No branches or pull requests

2 participants