The Slow Query Log Is Enabled
Rule Details
Parameter |
Description |
---|---|
Rule Name |
gaussdb-mysql-instance-enable-slowlog |
Identifier |
gaussdb-mysql-instance-enable-slowlog |
Description |
If the slow query log is not enabled for a TaurusDB instance, this instance is non-compliant. |
Tag |
taurusdb |
Trigger Type |
Configuration change |
Filter Type |
gaussdbformysql.instance |
Rule Parameters |
None |
Application Scenarios
You can download slow query logs of TaurusDB instances. Slow query log allows you to:
- Record SQL queries whose execution duration exceeds the threshold.
- Optimize performance through slow query analysis.
- Monitor database resource usage to prevent resource exhaustion.
Solution
Enable LTS slow query logging. For details, see Configuring Log Reporting.
Rule Logic
- If slow query logging is not enabled for a TaurusDB instance, this instance is non-compliant.
- If slow query logging is enabled for a TaurusDB instance, this instance is compliant.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot