I am using Apache 2 on AWS ec2 instance. I have application load balancer with 2 instances/servers attached to it. Each instance type is m5.8XLarge.
My application is developed in Laravel, I am using RDS.
I am having 300,000 visitors per day and 10,000 visitors at a time. My website is very slow and initial server response time is very high upto 8 sec.
Note: I can not use autoscalling because my contents are dynamic, and changing frequently. Autoscaling is using old IMG.
I am having below extra settings on httpd.conf file
MaxKeepAliveRequests 500
Keepalive On
KeepAliveTimeout 5
HostnameLookups Off
<IfModule prefork.c>
StartServers 5
MinSpareServers 20
MaxSpareServers 40
MaxClients 200
MaxRequestsPerChild 4000
</IfModule>
How i can improve the server speed and allow apache to handle much load/visitors