Skip to content

Optimising ElasticBeanstalk with Large User and Datasets Using django

0

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

1 Answer
1

Hello.

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.

I suspect that when the database instance has low specs and heavy queries are executed, the CPU usage rate increases, leading to timeout errors.
Is your database instance using RDS?
If you are using RDS, you can use a feature called Performance Insights, so enable it and try to find queries that are taking a long time to process.
https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_PerfInsights.Overview.Engines.html

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.

There may be problems other than the database, so I recommend checking the application log and checking for errors.

EXPERT
answered 2 years ago
EXPERT
reviewed 2 years ago
  • i change the RDS instance to Multi AZ so i am still looking if it will continue the issue

  • Can i get the queries that are using more CPU in the performance insignts?

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.