Recently we have noticed that our application has some errors related to the MySQL load. There are some basic queries on large database (approximately 32 GB) which takes longer time than expected.
For serving the MySQL server we use m6d.xlarge instance, average visitors volume is 3000 daily basis, though we see tendency of growth and sometime we have 5000 or more users, so I would like to solve the issue with the server before permanent growth. Thus I have in mind to add another instance something like t4g.2xlarge, with 8 CPU and with capability to gain extra credits.
Note that on the server we use only MySQL, so there are no any other obstacles on the server, all the load is on MySQL server which sometimes loads the server up to 300%. There are periods when some workers do website parsing which getting stored into db, therefore they create more load.
also I think, that 32Gb isn't huge size for the MySQL database, so I would like to hear some suggestions from experienced people whos faced similar cases.
Generally how would you suggest to scale it with EC2 instances which fits more for heavy MySQL work.
Please note that RDS doesn't fit for our needs, since it costs higher than we need actually.