I'm using a table of approximately 1TB in a MySQL database. This table also has a monthly partition. We store the last two months of data in this table and regularly truncate the data from the previous two months. However, when we do this without stopping the server, CPU usage increases significantly, and the server becomes unreachable until the truncate is complete. What needs to be done to delete this without stopping the system and without encountering any problems?
server: amazon ec2 c6gn.12xlarge 96GB RAM 48vCPU