Optimising Apache 2.2 mod-perl auto-scaled/load-balanced applicationRunning out of swap space on web servers,...

Why is it a bad idea to hire a hitman to eliminate most corrupt politicians?

What is the word for reserving something for yourself before others do?

90's TV series where a boy goes to another dimension through portal near power lines

Western buddy movie with a supernatural twist where a woman turns into an eagle at the end

Did Shadowfax go to Valinor?

What killed these X2 caps?

How can I make my BBEG immortal short of making them a Lich or Vampire?

Stopping power of mountain vs road bike

Brothers & sisters

Does casting Light, or a similar spell, have any effect when the caster is swallowed by a monster?

Do I have a twin with permutated remainders?

In a Spin are Both Wings Stalled?

Is it inappropriate for a student to attend their mentor's dissertation defense?

Neighboring nodes in the network

How could indestructible materials be used in power generation?

prove that the matrix A is diagonalizable

Why can't we play rap on piano?

Blender 2.8 I can't see vertices, edges or faces in edit mode

Arrow those variables!

What is going on with Captain Marvel's blood colour?

Facing a paradox: Earnshaw's theorem in one dimension

Is "remove commented out code" correct English?

How to take photos in burst mode, without vibration?

How to show the equivalence between the regularized regression and their constraint formulas using KKT



Optimising Apache 2.2 mod-perl auto-scaled/load-balanced application


Running out of swap space on web servers, what to do?Fine tunning of Apache 2 MPM Prefork module parameters Why are processes increasing continuously on my apache web server?keepAlive in Apache causing apache to reach its max_clientsApache: “Server seems busy”, but lots of idle processesTraffic increase causes VPS to crash due to RAM utilisationDoes Apache mod_status give any insight to tuning Apache config?How to load balance application on AWSEC2 Auto-Scaling: configure Target Tracking Policies to prefer Spot instancesAzure Webservices, Auto-scale, and Load Balancers - Does auto-scale handle load balancing automatically?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







0















I have perl application running in an AWS auto-scaling environment. At the moment it's using requests-per-target as the scaling trigger.



What I'm confused about is that the CPU usage on the instances is very low, consistently < 10%. The RAM utilisation is also quite low, typically around 40%.



Looking at these metrics, it seems the instances should be able to handle much higher load than what they are. However if I try to increase the requests-per-target threshold, thereby reducing the instance count, I start seeing random errors occurring.



I think I must have something not optimally configured in Apache, but I'm not sure what. I've inherited responsibility for this application, but I'm not very experienced with Apache or Linux optimisation.



This is what I have in the Apache config...



Timeout 130
KeepAlive On
MaxKeepAliveRequests 5

KeepAliveTimeout 125

<IfModule prefork.c>
MinSpareServers 10
MaxSpareServers 20
MaxRequestsPerChild 500
</IfModule>


Can anyone see anything that looks obviously problematic for an auto-scaling/load-balanced application?



If it helps, the instances are m4.2xlarge, 8 vCPU + 32GB.



If I check the load with uptime, this is also very low, < 0.5 average.



It really seems as though the servers are very under-utilised, so I can't quite understand why I'm unable to send more requests to them.



Any suggestions would be greatly appreciated.









share





























    0















    I have perl application running in an AWS auto-scaling environment. At the moment it's using requests-per-target as the scaling trigger.



    What I'm confused about is that the CPU usage on the instances is very low, consistently < 10%. The RAM utilisation is also quite low, typically around 40%.



    Looking at these metrics, it seems the instances should be able to handle much higher load than what they are. However if I try to increase the requests-per-target threshold, thereby reducing the instance count, I start seeing random errors occurring.



    I think I must have something not optimally configured in Apache, but I'm not sure what. I've inherited responsibility for this application, but I'm not very experienced with Apache or Linux optimisation.



    This is what I have in the Apache config...



    Timeout 130
    KeepAlive On
    MaxKeepAliveRequests 5

    KeepAliveTimeout 125

    <IfModule prefork.c>
    MinSpareServers 10
    MaxSpareServers 20
    MaxRequestsPerChild 500
    </IfModule>


    Can anyone see anything that looks obviously problematic for an auto-scaling/load-balanced application?



    If it helps, the instances are m4.2xlarge, 8 vCPU + 32GB.



    If I check the load with uptime, this is also very low, < 0.5 average.



    It really seems as though the servers are very under-utilised, so I can't quite understand why I'm unable to send more requests to them.



    Any suggestions would be greatly appreciated.









    share

























      0












      0








      0








      I have perl application running in an AWS auto-scaling environment. At the moment it's using requests-per-target as the scaling trigger.



      What I'm confused about is that the CPU usage on the instances is very low, consistently < 10%. The RAM utilisation is also quite low, typically around 40%.



      Looking at these metrics, it seems the instances should be able to handle much higher load than what they are. However if I try to increase the requests-per-target threshold, thereby reducing the instance count, I start seeing random errors occurring.



      I think I must have something not optimally configured in Apache, but I'm not sure what. I've inherited responsibility for this application, but I'm not very experienced with Apache or Linux optimisation.



      This is what I have in the Apache config...



      Timeout 130
      KeepAlive On
      MaxKeepAliveRequests 5

      KeepAliveTimeout 125

      <IfModule prefork.c>
      MinSpareServers 10
      MaxSpareServers 20
      MaxRequestsPerChild 500
      </IfModule>


      Can anyone see anything that looks obviously problematic for an auto-scaling/load-balanced application?



      If it helps, the instances are m4.2xlarge, 8 vCPU + 32GB.



      If I check the load with uptime, this is also very low, < 0.5 average.



      It really seems as though the servers are very under-utilised, so I can't quite understand why I'm unable to send more requests to them.



      Any suggestions would be greatly appreciated.









      share














      I have perl application running in an AWS auto-scaling environment. At the moment it's using requests-per-target as the scaling trigger.



      What I'm confused about is that the CPU usage on the instances is very low, consistently < 10%. The RAM utilisation is also quite low, typically around 40%.



      Looking at these metrics, it seems the instances should be able to handle much higher load than what they are. However if I try to increase the requests-per-target threshold, thereby reducing the instance count, I start seeing random errors occurring.



      I think I must have something not optimally configured in Apache, but I'm not sure what. I've inherited responsibility for this application, but I'm not very experienced with Apache or Linux optimisation.



      This is what I have in the Apache config...



      Timeout 130
      KeepAlive On
      MaxKeepAliveRequests 5

      KeepAliveTimeout 125

      <IfModule prefork.c>
      MinSpareServers 10
      MaxSpareServers 20
      MaxRequestsPerChild 500
      </IfModule>


      Can anyone see anything that looks obviously problematic for an auto-scaling/load-balanced application?



      If it helps, the instances are m4.2xlarge, 8 vCPU + 32GB.



      If I check the load with uptime, this is also very low, < 0.5 average.



      It really seems as though the servers are very under-utilised, so I can't quite understand why I'm unable to send more requests to them.



      Any suggestions would be greatly appreciated.







      apache-2.2 load-balancing autoscaling mod-perl





      share












      share










      share



      share










      asked 3 mins ago









      user1751825user1751825

      200110




      200110






















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          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/3.0/"u003ecc by-sa 3.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%2fserverfault.com%2fquestions%2f961606%2foptimising-apache-2-2-mod-perl-auto-scaled-load-balanced-application%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • 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%2fserverfault.com%2fquestions%2f961606%2foptimising-apache-2-2-mod-perl-auto-scaled-load-balanced-application%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

          117736 Шеррод Примітки | Див. також | Посилання | Навігаційне...

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Маріан Котлеба Зміст Життєпис | Політичні погляди |...