MySQL sync cluster logs
For a MySQL semi-sync cloud database cluster, MySQL service events and slow queries are logged.
Logs can be obtained through the Logi service.For more details on the principle of operation and cost of the service, please refer to the instruction General information about the Logi service.To see the availability of the Logi service in the regions, please refer to the Logi availability matrix .
To collect cluster logs in the Logs service, enable logging.You can only get logs from the service through the API.If you no longer need to collect logs, you can turn logging off.
Logs of slow requests can be viewed in the Cloud Databases section of the Control Panel.You do not need to enable logging in the Logs service.
Logs are stored for 14 days.
Read more about logs in the MySQL Server Logs section of the MySQL documentation.
Manage logs in the Logs service
Enable logging
You can enable logging through the API or in the control panel:
- when creating the cluster;
- or in an existing cluster.
Enable logging in an existing cluster
Logging uses a portion of the cluster's computational resources. To control the amount of resources consumed, monitor the cluster node metrics. More information on how to view metrics in the instructions Мониторинг кластера, нод и баз данных MySQL sync.
- In the Dashboard, on the top menu, click Products and select Cloud Databases.
- Open the Active tab.
- Open the cluster page → Settings