Amazon RDS MySQL instance performs very slow

前端 未结 7 1581
轻奢々
轻奢々 2021-01-31 17:58

I have published my website on Amazon EC2 (Singapore region) and I have used MySQL RDS instance for the data storage. Everything is working very fine except performance.

7条回答
  •  庸人自扰
    2021-01-31 18:15

    For me, it was nothing to do with MySQL but rather the instance type I was on t2.medium. The problem is I ran out of CPU credits because the load on the DB was too high and the balance kept going down until finally, I was getting far fewer credits hourly than were needed.

    Here is what I saw in RDS CloudWatch under CPU Credit Usage:

    If you have the same problem it may be time to switch to a different instance. Here is the list of instance types:

    https://aws.amazon.com/rds/instance-types/

    Hope this helps.

提交回复
热议问题