0

I have a Laravel app deployed over Apache Instance Instance Config

T3A.2xLarge  (vCPU = 4 , Memory 16 GIB)

I have increased apache timeout to 600 Seconds , configured mpm_prefork Module as below

<IfModule mpm_prefork_module>
        StartServers            16
        MinSpareServers         0
        MaxSpareServers         0
        MaxClients              16
        ServerLimit             256
        MaxRequestWorkers       400
        MaxConnectionsPerChild  25
</IfModule>

I have also changed PHP Configuration according.

The RDS DB have a max_connection of 600 so i have configured the maxRequestWorker to 400 to 600 else it is giving me Too Many Connection error

But along with this configuration when we do load testing for 3000 users per 20 Rampup period It gives 504 Gateway Timeout Error for Half of the request

But when i see other tools and logs for error it doesnt logs any error

Any suggestion on configuration ?

Kashyap Patel
  • 1,139
  • 1
  • 13
  • 29

0 Answers0