Kubernetes Ingress nodejs timeout issueHow can I update NodeJS and NPM to the next versions?Kubernetes Ingress on GKEHow to change configuration parameters of ingress controller in kubernetesKubernetes Ingress not adding the application URL for grafana dashboardHow to handle Azure AD Authentication with Kubernetes Ingresskubernetes ingress on GKE timeout and 502 during deploymentFlask with Gunicorn on Kubernetes ingress yields 502 nginx errork8s nginx ingress kibanaFind why i am getting 502 Bad gateway error on kubernetesSporadic 504 Bad Gateway Errors
Does Sitecore have support for Sitecore products in containers?
How to justify a team increase when the team is doing good?
Safe to use 220V electric clothes dryer when building has been bridged down to 110V?
What are the consequences of high orphan block rate?
Is it a good idea to leave minor world details to the reader's imagination?
Why does this image of Jupiter look so strange?
How to say "cheat sheet" in French
What is the meaning of "heutig" in this sentence?
How to create fractional SI units (SI...sqrts)?
Are lawyers allowed to come to agreements with opposing lawyers without the client's knowledge or consent?
Why did the Soviet Union not "grant" Inner Mongolia to Mongolia after World War Two?
Performance for simple code that converts a RGB tuple to hex string
Hilbert's hotel: why can't I repeat it infinitely many times?
Why are there two fundamental laws of logic?
A food item only made possible by time-freezing storage?
How can I repair this gas leak on my new range? Teflon tape isn't working
Why weren't the Death Star plans transmitted electronically?
What is the difference between 「変更」 and 「変化」?
Is it possible to encode a message in such a way that can only be read by someone or something capable of seeing into the very near future?
Why does NASA publish all the results/data it gets?
On the meaning of 'anyways' in "What Exactly Is a Quartz Crystal, Anyways?"
How do I set a custom order for folders on Windows 7 and 10?
Do we have any particular tonal center in mind when we are NOT listening music?
What is the meaning of word 'crack' in chapter 33 of A Game of Thrones?
Kubernetes Ingress nodejs timeout issue
How can I update NodeJS and NPM to the next versions?Kubernetes Ingress on GKEHow to change configuration parameters of ingress controller in kubernetesKubernetes Ingress not adding the application URL for grafana dashboardHow to handle Azure AD Authentication with Kubernetes Ingresskubernetes ingress on GKE timeout and 502 during deploymentFlask with Gunicorn on Kubernetes ingress yields 502 nginx errork8s nginx ingress kibanaFind why i am getting 502 Bad gateway error on kubernetesSporadic 504 Bad Gateway Errors
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I am running my nodejs server on kubernetes cluster using Ingress.
I am using below to prevent timeouts.
nginx.ingress.kubernetes.io/proxy-connect-timeout: "120"
nginx.ingress.kubernetes.io/proxy-read-timeout: "180"
nginx.ingress.kubernetes.io/proxy-send-timeout: "180"
Still i get 502 bad gateway error. Its not consistent, i get 502 at 7 sec, 20 sec 60 sec etc.
When i see Ingress logs, i see below errors
shm_add_upstream::shm_add_node(host:port)failed while logging request
shm_add_node::ngx_slab_alloc_locked() failed: used_size[6313245], used_node[2542] while logging request,
shm_add_server() failed while logging request
Is there a way to fix above issue? Is it related to any memory issue?
node.js nginx
add a comment
|
I am running my nodejs server on kubernetes cluster using Ingress.
I am using below to prevent timeouts.
nginx.ingress.kubernetes.io/proxy-connect-timeout: "120"
nginx.ingress.kubernetes.io/proxy-read-timeout: "180"
nginx.ingress.kubernetes.io/proxy-send-timeout: "180"
Still i get 502 bad gateway error. Its not consistent, i get 502 at 7 sec, 20 sec 60 sec etc.
When i see Ingress logs, i see below errors
shm_add_upstream::shm_add_node(host:port)failed while logging request
shm_add_node::ngx_slab_alloc_locked() failed: used_size[6313245], used_node[2542] while logging request,
shm_add_server() failed while logging request
Is there a way to fix above issue? Is it related to any memory issue?
node.js nginx
add a comment
|
I am running my nodejs server on kubernetes cluster using Ingress.
I am using below to prevent timeouts.
nginx.ingress.kubernetes.io/proxy-connect-timeout: "120"
nginx.ingress.kubernetes.io/proxy-read-timeout: "180"
nginx.ingress.kubernetes.io/proxy-send-timeout: "180"
Still i get 502 bad gateway error. Its not consistent, i get 502 at 7 sec, 20 sec 60 sec etc.
When i see Ingress logs, i see below errors
shm_add_upstream::shm_add_node(host:port)failed while logging request
shm_add_node::ngx_slab_alloc_locked() failed: used_size[6313245], used_node[2542] while logging request,
shm_add_server() failed while logging request
Is there a way to fix above issue? Is it related to any memory issue?
node.js nginx
I am running my nodejs server on kubernetes cluster using Ingress.
I am using below to prevent timeouts.
nginx.ingress.kubernetes.io/proxy-connect-timeout: "120"
nginx.ingress.kubernetes.io/proxy-read-timeout: "180"
nginx.ingress.kubernetes.io/proxy-send-timeout: "180"
Still i get 502 bad gateway error. Its not consistent, i get 502 at 7 sec, 20 sec 60 sec etc.
When i see Ingress logs, i see below errors
shm_add_upstream::shm_add_node(host:port)failed while logging request
shm_add_node::ngx_slab_alloc_locked() failed: used_size[6313245], used_node[2542] while logging request,
shm_add_server() failed while logging request
Is there a way to fix above issue? Is it related to any memory issue?
node.js nginx
node.js nginx
asked Mar 28 at 17:28
HackerHacker
3,59913 gold badges59 silver badges116 bronze badges
3,59913 gold badges59 silver badges116 bronze badges
add a comment
|
add a comment
|
1 Answer
1
active
oldest
votes
Check the shared memory size in use by nginx-module-vts
Set to more than 32M shared memory size by default.
vhost_traffic_status_zone shared:vhost_traffic_status:32mIf the issue still appears, increase to more than (usedSize * 2).
Example nginx.conf
http
vhost_traffic_status_zone;
vhost_traffic_status_zone shared:vhost_traffic_status:32m;
Is 6313245 in kb or MB?
– Hacker
Apr 9 at 10:48
@Hacker kb. 6313245 it's in use ?
– A_Suh
Apr 9 at 10:50
Can you help me as to how to check current value in kubernetes and how to increase it?
– Hacker
Apr 9 at 11:28
@Hacker either in web UIServer main -> shared memory -> used sizeor in /etc/nginx/nginx.conf http block. If you didn't read it yet - github.com/vozlt/…
– A_Suh
Apr 9 at 12:03
@A_Sush - I dont have nginx.conf file. I have Only ingress configuration done. My application is nodejs server
– Hacker
Apr 9 at 12:11
|
show 3 more comments
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403645%2fkubernetes-ingress-nodejs-timeout-issue%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Check the shared memory size in use by nginx-module-vts
Set to more than 32M shared memory size by default.
vhost_traffic_status_zone shared:vhost_traffic_status:32mIf the issue still appears, increase to more than (usedSize * 2).
Example nginx.conf
http
vhost_traffic_status_zone;
vhost_traffic_status_zone shared:vhost_traffic_status:32m;
Is 6313245 in kb or MB?
– Hacker
Apr 9 at 10:48
@Hacker kb. 6313245 it's in use ?
– A_Suh
Apr 9 at 10:50
Can you help me as to how to check current value in kubernetes and how to increase it?
– Hacker
Apr 9 at 11:28
@Hacker either in web UIServer main -> shared memory -> used sizeor in /etc/nginx/nginx.conf http block. If you didn't read it yet - github.com/vozlt/…
– A_Suh
Apr 9 at 12:03
@A_Sush - I dont have nginx.conf file. I have Only ingress configuration done. My application is nodejs server
– Hacker
Apr 9 at 12:11
|
show 3 more comments
Check the shared memory size in use by nginx-module-vts
Set to more than 32M shared memory size by default.
vhost_traffic_status_zone shared:vhost_traffic_status:32mIf the issue still appears, increase to more than (usedSize * 2).
Example nginx.conf
http
vhost_traffic_status_zone;
vhost_traffic_status_zone shared:vhost_traffic_status:32m;
Is 6313245 in kb or MB?
– Hacker
Apr 9 at 10:48
@Hacker kb. 6313245 it's in use ?
– A_Suh
Apr 9 at 10:50
Can you help me as to how to check current value in kubernetes and how to increase it?
– Hacker
Apr 9 at 11:28
@Hacker either in web UIServer main -> shared memory -> used sizeor in /etc/nginx/nginx.conf http block. If you didn't read it yet - github.com/vozlt/…
– A_Suh
Apr 9 at 12:03
@A_Sush - I dont have nginx.conf file. I have Only ingress configuration done. My application is nodejs server
– Hacker
Apr 9 at 12:11
|
show 3 more comments
Check the shared memory size in use by nginx-module-vts
Set to more than 32M shared memory size by default.
vhost_traffic_status_zone shared:vhost_traffic_status:32mIf the issue still appears, increase to more than (usedSize * 2).
Example nginx.conf
http
vhost_traffic_status_zone;
vhost_traffic_status_zone shared:vhost_traffic_status:32m;
Check the shared memory size in use by nginx-module-vts
Set to more than 32M shared memory size by default.
vhost_traffic_status_zone shared:vhost_traffic_status:32mIf the issue still appears, increase to more than (usedSize * 2).
Example nginx.conf
http
vhost_traffic_status_zone;
vhost_traffic_status_zone shared:vhost_traffic_status:32m;
edited Apr 9 at 12:09
answered Apr 9 at 10:46
A_SuhA_Suh
1,6931 silver badge10 bronze badges
1,6931 silver badge10 bronze badges
Is 6313245 in kb or MB?
– Hacker
Apr 9 at 10:48
@Hacker kb. 6313245 it's in use ?
– A_Suh
Apr 9 at 10:50
Can you help me as to how to check current value in kubernetes and how to increase it?
– Hacker
Apr 9 at 11:28
@Hacker either in web UIServer main -> shared memory -> used sizeor in /etc/nginx/nginx.conf http block. If you didn't read it yet - github.com/vozlt/…
– A_Suh
Apr 9 at 12:03
@A_Sush - I dont have nginx.conf file. I have Only ingress configuration done. My application is nodejs server
– Hacker
Apr 9 at 12:11
|
show 3 more comments
Is 6313245 in kb or MB?
– Hacker
Apr 9 at 10:48
@Hacker kb. 6313245 it's in use ?
– A_Suh
Apr 9 at 10:50
Can you help me as to how to check current value in kubernetes and how to increase it?
– Hacker
Apr 9 at 11:28
@Hacker either in web UIServer main -> shared memory -> used sizeor in /etc/nginx/nginx.conf http block. If you didn't read it yet - github.com/vozlt/…
– A_Suh
Apr 9 at 12:03
@A_Sush - I dont have nginx.conf file. I have Only ingress configuration done. My application is nodejs server
– Hacker
Apr 9 at 12:11
Is 6313245 in kb or MB?
– Hacker
Apr 9 at 10:48
Is 6313245 in kb or MB?
– Hacker
Apr 9 at 10:48
@Hacker kb. 6313245 it's in use ?
– A_Suh
Apr 9 at 10:50
@Hacker kb. 6313245 it's in use ?
– A_Suh
Apr 9 at 10:50
Can you help me as to how to check current value in kubernetes and how to increase it?
– Hacker
Apr 9 at 11:28
Can you help me as to how to check current value in kubernetes and how to increase it?
– Hacker
Apr 9 at 11:28
@Hacker either in web UI
Server main -> shared memory -> used size or in /etc/nginx/nginx.conf http block. If you didn't read it yet - github.com/vozlt/…– A_Suh
Apr 9 at 12:03
@Hacker either in web UI
Server main -> shared memory -> used size or in /etc/nginx/nginx.conf http block. If you didn't read it yet - github.com/vozlt/…– A_Suh
Apr 9 at 12:03
@A_Sush - I dont have nginx.conf file. I have Only ingress configuration done. My application is nodejs server
– Hacker
Apr 9 at 12:11
@A_Sush - I dont have nginx.conf file. I have Only ingress configuration done. My application is nodejs server
– Hacker
Apr 9 at 12:11
|
show 3 more comments
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55403645%2fkubernetes-ingress-nodejs-timeout-issue%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown