How to Improve and Optimize Controller Database Performance
To improve database performance when querying metrics, the primary key used by the metric data tables is readoptimized. As a result, the primary key changes as follows:
| From | To |
|---|---|
| ts_min, node/tier/app, metric_id | metric_id, node/tier/app, ts_min |
How to Run Database Optimization
You can use the Enterprise Console to run a database optimization job to optimize your database performance. To use this feature:
How to Run Database Optimization on a High Availability (HA) Controller Pair
Before you run database optimization on a HA Controller pair, you must ensure that the Controller database replication is in a healthy state.
- If both of the Controllers are onboarded into Enterprise Console, review the Controller page and note the following fields:
-
If one of the Controllers is managed by HA toolkit (HATK):
How to Stop Database Optimization
After the database optimization job has completed successfully, you can stop the process. From the Enterprise Console, select Stop Database Optimization from the Controller page:
Troubleshooting Database Optimization
The following table describes possible conditions that may cause errors to occur and actions to take to mitigate them:
| Errors or Conditions | User Action |
|---|---|
Job failed; Database replication is broken message displays. |
Re-establish database replication incrementally, then finalize replication. |
| Ran out of disk space while the database optimization job was running, and job stops processing. | Free up disk space and restart database optimization job. |