Hello Thomas,
Thanks for posting your question in the Microsoft Q&A forum.
It seems that your Azure Database for MySQL Flexible Server is experiencing high CPU utilization, leading to the depletion of CPU credits even when there is no apparent activity from your application.
- Azure Database for MySQL performs automatic maintenance operations, such as backups, replication, and other housekeeping tasks, which can consume CPU resources . check the timing of these operations and see if they correlate with the periods of high CPU usage and credit depletion
- Even if there is no apparent activity from your application, there could be long-running queries or inefficient queries executing in the background, causing high CPU utilization. use the
SHOW PROCESSLIST
command to check for any long-running queries or processes. - Review your database configuration parameters, such as
innodb_buffer_pool_size
,max_connections
, and others, to ensure they are optimized for your workload . suboptimal configuration settings can lead to inefficient resource utilization and high CPU usage.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful