Database maintenance in the SolarWinds Platform
This topic applies to all SolarWinds Platform products.
Database maintenance is an automatic process that optimizes the size of your SolarWinds Platform database. During maintenance, the data collected for a certain period are aggregated and new statistical values, based on the aggregated data, are calculated. The data is discarded, and only the aggregated statistics are retained.
Database maintenance runs every day at a specified time. Depending on the data granularity and retention period, you may need to configure your database differently. Keep in mind that the more granularity and the longer the retention period, the larger the database.
If the database maintenance fails three times in a row in SolarWinds Observability Self-Hosted, you can see a notification in the SolarWinds Platform Web Console. Click the notification to go to the Database Maintenance Statistics page. This page lists the most time-intensive operations and their success. If the page does not answer your questions, collect diagnostics and send them to SolarWinds support.
Check the database size
- Start the Database Manager in the SolarWinds Orion program folder.
- Add your database server and expand it.
- Right-click your SolarWinds Platform database, and select Database Details.
The database size is displayed in the Properties tab.
Specify the time to run database maintenance
Make sure database maintenance runs after business hours.
- Log in to the SolarWinds Platform Web Console using an administrator account.
- Click Settings > All Settings.
- Click Polling Settings in the Thresholds & Polling grouping.
- Scroll down to Database Settings, and enter an Archive Time.
- Click Submit.
Adjust retention periods
Data for collected statistics are retained for a specified time. Shorten the retention periods to save storage space in your database.
- Log in to the SolarWinds Platform Web Console using an administrator account.
- Click Settings > All Settings.
- Click Polling Settings in the Thresholds & Polling grouping.
- Scroll down to Database Settings, and adjust the retention periods.
The detailed data are retained for the specified period and summarized into hourly data. Hourly data is then summarized into daily statistics, and daily statistics are discarded after the specified time.
The shorter the retention period, the greater effect the setting has on the database size.
You can also adjust retention periods for other statistics.
Changing the detailed retention period has the greatest effect on the database size.
Assuming a 10-minute polling interval, one new entry is added to the database for each monitored object every 10 minutes. That means 144 new entries a day are added for each monitored object during the Detailed Statistics Retention period. In the Daily Statistics Retention period, only one entry a day is added to the database for each object. - Click Submit to commit the changes.
Launch database maintenance manually
- Start Database Maintenance in the SolarWinds Orion program folder.
- Click Start.