Veeam Backup & Replication Best Practice Guide
Veeam Backup & Replication Database
Veeam Backup & Replication stores all information about backup infrastructure, jobs settings, job history, sessions, the tape catalogue and other configuration data in a Database server often referred to as the “Configuration Database”
When planning the Veeam Backup & Replication deployment, you must choose the placement of the configuration database. It may be either a local or a remote Database Server.
Please see the following recommendations to ensure your Veeam setup will scale to the size of your infrastructure.
Database Engine
Veeam Backup and Replication offers the choice of using PostgreSQL or Microsoft SQL for the configuration database. The default installation will install PostgreSQL.
This decision for PostgreSQL as the default database came with a lot of limitation in terms of scaling (eg max 10 GB Database size) for the previously used Microsoft SQL Express edition. PostgreSQL does not have these limitations while it does not require additional licensing either.
Additionally, the default installation will automatically tune the database for Veeam Backup & Replication.
Previous to v13, Microsoft SQL Server was recommended for larger Windows-based installations protecting more than 10,000 VM’s. With version 13, this has changed and the recommendation is to use PostgreSQL instead. If using the Veeam Software Appliance, PostgreSQL is the only supported approach.
If you are using a Windows-based Veeam Backup & Replication server, Microsoft SQL can be used, although we recommend using PostgreSQL and the Veeam Software appliance, as this includes PostgreSQL and also offers high availability.
If you are in a complex environment with multiple Veeam Backup & Replication servers and Veeam Enterprise Manager, consider that all of them must use the same Database Engine.
Database placement
The current recommendation is to use the pre-supplied PostgreSQL installation, on the same server as the Veeam Backup & Replication components are installed (Appliance or Windows) as this produces reduced latency between the Veeam Backup & Replication service, and the configuration database. High availability can be achieved in tow ways:
- Using the Appliance, a second appliance can be propvisioned and a hgih availability cluster contructed.
- Using the Windows option, Microsoft SQL Clustering and AlwaysOn Availability Group on external SQL Servers can be used for configuration database high availability.
There may still be scenarios where a remote DB Server is required,
- High Availability - Microsoft SQL Clustering and AlwaysOn Availability Group on external SQL Servers can be used for configuration database high availability. Please refer to the following KB article for the configuration details
- Licensing - Some enterprises have dedicated virtual clusters for SQL Server due to licensing constraints. In such cases, you may place the Veeam configuration database on existing instances to lower the overall TCO. Alternatively, if you are below 10000 VMs, consider using PostgreSQL.
- DB Load Management - By separating the database you can avoid race conditions between the Veeam Backup & Replication server software and the database engine. It will be easier to pinpoint performance issues.
Migrating / Using PostgreSQL
Migrating to PostgreSQL is not a straight forward process and requires careful planning. All backup servers must be based on the same database engine as Veeam Backup Enterprise Manager (PostgreSQL or Microsoft SQL Server).
- Upgrade Veeam Enterprise Manager and then upgrade all Veeam Backup & Replication servers to v12 including all the latest patches.
- Migrate the Veeam Enterprise Manager to Postgres
- Migrate the Veeam Backup & Replication server to Postgres
It is also important to understand that if you are installing a new Veeam Backup & Replication Server in an existing environment and you are not planning to migrate fully to PostgreSQL, you must explicitly install/use a Microsoft SQL Server.
Finally, if you are planning on using PostgreSQL, it is recommended to always download the latest supported PostgreSQL installer instead of the default one shipped with the Veeam Backup & Replication installer.
If you do so, do not forget to tune the database by using the corresponding PowerShell utility.
Sizing
It is recommended that you can use the same sizing guidelines for both Microsoft SQL and PostgreSQL.
Veeam Backup & Replication may consume high amounts of CPU and RAM while processing backup or replication jobs. To achieve better performance and load balancing it is necessary to provide sufficient RAM and CPU resources to Veeam components.
Remember to add additional resources, if the backup server is responsible for multiple roles, such as repository server or backup proxy.
Please follow these guidelines:
| Protected Workloads | 1–100 | 100–500 | 500–1,000 | 1,000–5,000 | 5,000–10,000 | 10,000–20,000 |
|---|---|---|---|---|---|---|
| RAM | 16GB | 24GB | 32GB | 80GB | 160GB | 256GB |
| CPU | 8 | 16 | 16 | 32 | 64 | 64 |
| Disk1 (SSD)* | 240GB | 240GB | 240GB | 240GB | 480GB | 480GB |
| Disk2 (SSD) | 240GB | 240GB | 240GB | 960GB | 1.92TB | 1.92TB |
| Deployment | virtual or physical | virtual or physical | virtual or physical | virtual or physical | physical or dedicated hypervisor | physical or dedicated hypervisor |
- Disk 1 hosts the Veeam Backup & Replication configuration database. The Veeam Backup and Replication configuration database can grow to several terabytes when file-to-tape backup jobs are configured. If your deployment includes file-to-tape jobs, work with your Veeam Solutions Architect to size Disk 1 accordingly.
File-to-Tape
When using file-to-tape jobs, a dedicated NVME drive is recommended for the configuration database that is not used for anything else.
The RAM sizes required can be found here: Link
General recommendations
It is recommended to place the configuration database on a fast, resilient storage subsystem, preferred flash, unless performing File-to-Tape (Use NVME, see above).
High-performance storage for backing the configuration database will result in overall increased processing performance.
Jobs with a lot of metadata such as very large SharePoint farms with thousands of sites, SQL Server instances with many databases or Files-to-Tape jobs may increase the I/O requirements for the configuration database.
Disk space usage
500 VMs use around 10GB disk space for the configuration database (Approx 20.48MB per VM)
File-to-tape requires 850MB of additional capacity per 1,000,000 files. Note that all versions from all backups need to be counted.
Microsoft SQL DB Staging Server
It is possible to leverage a remote SQL Server as staging server during restores in Veeam Explorer products.
With SQL Express as the configuration database it is possible to use it as the staging server if the databases are under 10GB. When using PostgreSQL as the configuration database or if the database is over 10GB you will need to either use the target Microsoft SQL server or another remote Microsoft SQL server during restores in the Veeam Explorer products.
If you are using the explorers extensively, you might want to consider a full Microsoft SQL Server on the backup server for lowest latency and highest performance.