i have a web app which is hosted in EB and working perfectly but i notice that whenever the users on the website are getting larger or the requests are getting larger the websites slows and even run to Gateway Timeout in fron-end and also Target.Timeout in the instance heath but when the requests on the website or the users on the website get low againn the website will load faster.
i have change my Database instance type to db.t3.medium but stiill use to have more upto 99% usage when the website is slow.
the EC2 on the EB is running on t3.micro
and i have make the auto scaling to have upto 10 instance but sometimes it create upto 8 EC2 instance.
Please i am looking for the best way to know what eexactly and why the website laoding slow so i can know what to do next.
If you need any other information kindly ask and it will be providded
Thanks