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;








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?










share|improve this question






























    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?










    share|improve this question


























      0












      0








      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?










      share|improve this question














      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 kubernetes nginx-ingress






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 28 at 17:28









      HackerHacker

      3,59913 gold badges59 silver badges116 bronze badges




      3,59913 gold badges59 silver badges116 bronze badges

























          1 Answer
          1






          active

          oldest

          votes


















          0
















          1. Check the shared memory size in use by nginx-module-vts



          2. Set to more than 32M shared memory size by default.



            vhost_traffic_status_zone shared:vhost_traffic_status:32m



          3. If 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;






          share|improve this answer



























          • 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 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














          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
          );



          );














          draft saved

          draft discarded
















          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









          0
















          1. Check the shared memory size in use by nginx-module-vts



          2. Set to more than 32M shared memory size by default.



            vhost_traffic_status_zone shared:vhost_traffic_status:32m



          3. If 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;






          share|improve this answer



























          • 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 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
















          0
















          1. Check the shared memory size in use by nginx-module-vts



          2. Set to more than 32M shared memory size by default.



            vhost_traffic_status_zone shared:vhost_traffic_status:32m



          3. If 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;






          share|improve this answer



























          • 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 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














          0














          0










          0









          1. Check the shared memory size in use by nginx-module-vts



          2. Set to more than 32M shared memory size by default.



            vhost_traffic_status_zone shared:vhost_traffic_status:32m



          3. If 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;






          share|improve this answer















          1. Check the shared memory size in use by nginx-module-vts



          2. Set to more than 32M shared memory size by default.



            vhost_traffic_status_zone shared:vhost_traffic_status:32m



          3. If 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;







          share|improve this answer














          share|improve this answer



          share|improve this answer








          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 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


















          • 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 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

















          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





















          draft saved

          draft discarded















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

          용인 삼성생명 블루밍스 목차 통계 역대 감독 선수단 응원단 경기장 같이 보기 외부 링크 둘러보기 메뉴samsungblueminx.comeh선수 명단용인 삼성생명 블루밍스용인 삼성생명 블루밍스ehsamsungblueminx.comeheheheh

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해