Network Management

Best practices for managing your SolarWinds Platform database

Best practice for managing. The most common issues with SolarWinds Platform databases are related to the database size. Properly managing size can help you avoid problems with storage capacity and database performance. A primary factor in database size is the data retention settings available in the SolarWinds Platform. Each SolarWinds Platform Product allows you to manage the data rollup periods and the data retention limit. Troubleshoot database size, SolarWinds Platform performance, or lost connection to the database.

First published date

10/24/2018 10:05 PM

Last published date

9/4/2025 8:31 PM

Overview

The most common issues with SolarWinds Platform databases are related to the database size.

Two of the most common symptoms of database issues are degraded SolarWinds Platform performance, and errors related to the inability to connect to the database.

See Quick Orion database health check guide  or SQL Server - Performance optimization and best practices .

Product section

Orion Platform

Resolution

Best practices for database maintenance and use 

  • For production environments, host databases on dedicated servers (physical or VM), including the SolarWinds Platform SQL Database and NTA Flow Storage Database.
  • Create a database backup or snapshot before making any changes to your database. Support may require running queries, deleting tables, and editing table data to resolve issues. We also recommend having a database administrator help.
  • Create a backup or snapshot of your DB after completing major configurations and updates to your SolarWinds products.
  • For more extensive databases, perform data integrity checks, set detection for index fragmentation, and set up a re-indexing routine. Do not use the auto-grow or auto-shrink options as it adds to index fragmentation. Always re-index in your maintenance routines to help with index fragmentation.
  • Create a database backup schedule/job for continuous backups of your data off-peak hours. Also, save these backups to a different system than the database server. NTA includes a backup scheduler you can configure anytime using the NetFlow Storage Database Configurator.
  • You can use VMs for your databases, but you should discuss using them with your DBA and IT staff to ensure the VM is configured correctly. If you have a database VM, you can also create snapshots as a backup.
  • When backing up databases, consider all databases: SolarWinds SQL database, EOC dedicated database, NTA Flow Storage Database, and NCM 7.2.X and earlier (NCM merges into the SQL database with version 7.3.X and later). Schedule maintenance and backups apart from each other to not burden the system or interfere with product performance.
  • If you need to migrate to a new server, consider adding those migration steps to your upgrades. Migrating the database during an upgrade may add time, but it is the best time to tackle the migration. New SolarWinds product versions may require larger systems, changing tables in the database, or need a larger system (CPU, hard drive, RAM, etc.).
  • See SolarWinds Platform server reboot - Best practices: for instructions and best practices for rebooting the SolarWinds Platform server. Some users include these steps as part of their database maintenance and backup.
  • During an upgrade, we do not purge or remove historical data. The installers retain your historical data. While services are stopped during an upgrade, your polling engines do not capture data to the database. When you restart your services, data resume capture into the database. If you notice data loss or gaps, you may have an issue with a poller.
  • SolarWinds recommends that you use a dedicated SQL instance for your SolarWinds Platform database to improve security by segregating the SolarWinds Platform database from other production databases.

 

Upgrades and Databases 

When SolarWinds announces and releases a new version or service release for a product, review the system and SQL requirements. You may need to plan and upgrade your SQL server version or hardware to support the new product.

See the SolarWinds Platform Installer.

 

Migrating the SQL Database 

See the SolarWinds Migration Guide.

 

Steps 

 

This section covers only the basics of determining a database issue as the issue pertains to interaction with SolarWinds Platform. It is not intended as an SQL troubleshooting guide.

 

Troubleshoot database size 

Consider changing data retention settings and data roll-up periods for your SolarWinds Platform products.

The SolarWinds Platform summarizes detailed data into hourly data increments and then into daily data increments. The shorter the data interval, the greater the effect the setting will have on the database size.

  • Extending the detailed data retention will have the largest potential impact on database size and performance.
  • Extending hourly retention will have a lesser effect.
  • Extending daily retention will have the least effect.

When expanding a data retention period, make small changes, and examine the impact on size and performance as you approach the new limit.

To access retention settings:

  1. Log in to the SolarWinds Platform Web Console as an Administrator.
  2. Click Settings > All Settings > Database Settings.

Not all of the data roll-up periods are adjustable. Typically, you can alter one intermediate data roll-up period and the limit for data retention. Available settings depend on the SolarWinds Platform products you have installed.

See also Optimize the data you retain in the database.

 

Troubleshoot degraded performance 

Review the disk queue length.

In the SolarWinds Platform database, the single most important SQL server performance measurement is disk queue length. Queue length is an analysis of the SQL writes waiting to be written to disk. When disk queues start lengthening, and there is a steady load on the SQL writes, the queues may grow so large that write requests get dropped. This may lead to gaps in data and will affect the overall performance of the SQL server.

The disk queue length should not exceed two times the number of effective spindles in the SQL storage RAID configuration MDF.

The effective spindle count is the number of striped spindles. For a RAID 10 direct-attached storage unit with eight total disks, the effective spindle count is four, and you're going to get a Read & Write performance bump for every pair of spindles in the set. Four of the spindles in the array are the primary striped array, and the other four are a secondary striped mirror of the four primary spindles. Since no performance gain is achieved by mirroring disks, only the primary striped set is used to measure performance.

 

Troubleshoot lost connection to the database 

When errors occur that point to a loss of the connection to the database, complete the following steps to isolate the issue:

  1. Ping the SQL server from the SolarWinds Platform server to check network connectivity.
  2. Open the SQL Server Management Studio or the SolarWinds Platform Database Manager and attempt to connect to the database. See Use Database Manager to view the SolarWinds database.
  3. If both steps above are successful, run the Configuration wizard against the database by selecting the database in the first wizard screen. See Run the SolarWinds Platform Configuration wizard. Ensure that you are using the proper database credentials.
  4. Open the SolarWinds Platform Web Console to test connectivity again.
  5. Test opening an ODBC connection from the SolarWinds Platform server using a Microsoft utility such as ODBCPing.

 

If all of this fails, the issue is a failure of the SQL server. You need to go directly to the SQL server and begin troubleshooting. Troubleshooting SQL is version and implementation-specific. Please consult the Microsoft Support site and search for information pertaining to your version.