Always ON Availability Group Licensing

Kazi Ariful Haq 161 Reputation points
2020-10-30T09:56:15.9+00:00

Hi,

We want to implement SQL Server Always On Availability Group in our production environment Between Server 'A' and 'B'. For SQL server instance 'A' we need license that I understand. For server 'B' do we require license? As per my research I found if we use server 'B' for read-only purpose then we require license for server 'B' also. But I want to know how one can measure if server 'B' has been used for read-only purpose, is there any dmv which tracks it?

SQL Server | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Shashank Singh 6,251 Reputation points
    2020-10-30T10:02:11.247+00:00

    But I want to know how one can measure if server 'B' has been used for read-only purpose, is there any dmv which tracks it?

    No there is no DMV specifically to track whether after configuring readonly replica have u used it or not. You can use sys.dm_db_index_usage_stats to check if database was accessed but again this is not a full proof way. If you configure secondary replica to be read only then you have to license it, it does not matter actually whether you use it for reading or not. The simple step that you configured it as read only would be taken as face value that you would, may be sometime, use it for running read only queries.

    If you do not want to keep it in read only then you would not be licensed BUT you hve to also purchase software assurance (SA). If you have no SA you do not get any benefit of free non readable secondary replica

    1 person found this answer helpful.
    0 comments No comments

  2. Cris Zhan-MSFT 6,661 Reputation points
    2020-11-02T03:17:55.793+00:00

    Hi @Kazi Ariful Haq ,

    >For server 'B' do we require license? As per my research I found if we use server 'B' for read-only purpose then we require license for server 'B' also.

    Yes. For Always On Availability Groups licensing, when secondary replicas are actively used to support high availability, disaster recovery, and read-scale balancing, they must be fully licensed accordingly.
    Please read the Microsoft SQL Server 2019 Licensing guide for more details.
    https://download.microsoft.com/download/6/6/0/66078040-86d8-4f6e-b0c5-e9919bbcb537/SQL%20Server%202019%20Licensing%20guide.pdf


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.