Licensing for HA & DR
- AlwaysOn Availability Group
- AlwaysOn Failover Cluster (FCI)
- Log Shipping
- I believe DR could be VMware SRM.
- SE or EE
- Any version (if covered by SA).
- Bare-metal, VM, Container
Can use secondaries for...
- Backup
- Maintenance (CheckDB)
- Basic Monitoring
- DR Tests
Cannot use secondaries for...
- Reads
- Writes
Any secondary can have the same number or less cores than the Primary, but NOT more. You could, in theory, license the Primary for more cores than it has in order to get around this situation.
HA is assumed to be "sync" and DR is assumed to be "async" with maximum of 1 HA and 1 DR on-prem plus 1 DR in Azure. Any additional replicas will need the same number of core licenses as the Primary.
Note that this benefit only applies to the SQL Licensing. i.e. all the other costs of running a database server in Azure stilll apply. (Although the Azure Hybrid Benefit should mean that's at a reduced rate).
Cold Disaster Backup Recovery Rights
This is a Software Assurance benefit
For each instance of eligible server software you run in a physical or virtual operating system environment on a licensed server, you may temporarily run a backup instance in a physical or virtual operating system environment on a server dedicated to disaster recovery. The product use rights for the software and the following limitations apply to your use of software on a disaster recovery server.
· The server must be turned off except for (i) limited software self-testing and patch management, or (ii) disaster recovery.
· The server may not be in the same cluster as the production server.
· You may run the backup and production instances at the same time only while recovering the production instance from a disaster.
· Your right to run the backup instances ends when your Software Assurance coverage ends.
Also... disaster recovery (D/R) can now be tested once every 90 days with the D/R VMs live for a brief amount of time. Microsoft does not define brief. If you are using Site Recovery Manager, the D/R side can be running during the exercise and not need to incur a cost if the test is run every 90 days or more. (1)
Fail-Over Rights
Fail-over Rights for Microsoft SQL Server do not require Software Assurance (SA) coverage prior to SQL2014.. but they do need it after SQL2014.
SQL2017
For each server licensed with SQL Server 2017 and covered by active SA, customers can run up to the same number of passive failover instances in a separate, OSE to support failover events. A passive SQL Server instance is one that is not serving SQL Server data to clients or running active SQL Server workloads.
http://download.microsoft.com/download/7/8/c/78cdf005-97c1-4129-926b-ce4a6fe92cf5/sql_server_2017_licensing_guide.pdfSQL2019
For each on-prem server OSE licensed with SQL Server 2019 and covered by active SA, customers can use the following passive replicas in anticipation of a failover event:
One passive fail-over replica for High Availability in a separate OSE
One passive fail-over replica for Disaster Recovery in a separate OSE
One passive fail-over replica for Disaster Recovery in a single VM on Azure
You can offload corruption checks (DBCC), full backups, and log backups. And, you can monitor resource usage data.
You cannot query them. As soon as they are readable, they need to be licensed.
For host-based licensing, the primary and D/R hosts can have the same or less cores. If the D/R server has more cores, you need to have the same number of cores licensed on the primary. For example, the primary host has 56 cores and D/R has 64. The primary host would need 8 more cores of licensing. (1)
Bibliography & References
http://download.microsoft.com/download/7/8/c/78cdf005-97c1-4129-926b-ce4a6fe92cf5/sql_server_2017_licensing_guide.pdfhttps://download.microsoft.com/download/6/6/0/66078040-86d8-4f6e-b0c5-e9919bbcb537/SQL%20Server%202019%20Licensing%20guide.pdfhttps://aka.ms/sqlserver2019licenseguide
https://www.brentozar.com/archive/2021/05/do-you-have-to-license-your-standby-sql-server/(1) https://blogs.vmware.com/apps/2020/07/licensing-microsoft-sql-server-for-vmware-vsphere-part-two.htmlhttps://cloudblogs.microsoft.com/sqlserver/2019/10/30/new-high-availability-and-disaster-recovery-benefits-for-sql-server/https://docs.microsoft.com/en-gb/shows/data-exposed/sql-server-licensing-high-availability--disaster-recovery-benefits--data-exposedhttps://docs.microsoft.com/en-gb/shows/data-exposed/sql-server-licensing-high-availability--disaster-recovery-on-premises--data-exposedhttps://techcommunity.microsoft.com/t5/sql-server-blog/optimize-tco-with-new-sql-server-software-assurance-benefits-for/ba-p/1123731