To point Qlik Replicate at an AG Secondary Replicate instead of the primary, follow these steps;
Create the publication/articles/filters the same way Replicate would or enable MS-CDC per the User's Guide for all the tables in the task.
Set the SQL Server Source Endpoint internal parameter ignoreMsReplicationEnablementso that Replicate will not check for publication/articles.
Set the SQL Server Source Endpoint internal parameter safeguardPolicyDesignatorto ‘None’ so that Replicate will not try to create a transaction on the source.
Set the SQL Server Source Endpoint internal parameter AlwaysOnSharedSynchedBackupIsEnabledso that Replicate will not try to connect to all the AG Replicas to read the MSDB.
Set the SQL Server Source Endpoint ‘Change processing mode (read changes from):’ to ‘Backup Logs Only’
As part of their transaction log backup maintenance plan, it's needed to run a script to merge the MSDB entries across all the Replicas. This may not be necessary if the backup is done on the secondary Replica that we will be attached to. The backups should also be placed on a share the Replicate can get access to. Optionally use 'Replicate has file-level access' if the backups are not encrypted and Replicate has direct access to them.
It is needed to create the LSN/Numeric conversion scalar functions on the source database on the secondary.
Limitations include:
Can read from backups only.
Manual setup of publications/articles or MS CDC.
Manual creation of supporting LSN conversion functions
The information in this article is provided as-is and to be used at own discretion. Depending on tool(s) used, customization(s), and/or other factors ongoing support on the solution below may not be provided by Qlik Support.
Hello Qlik Team, Are the configuration settings described in this article applicable and supported for a SQL Server Always On Availability Group when Qlik Replicate captures changes using the MS-CDC mechanism?
If not fully applicable, are there any additional or different configuration requirements specifically for MS-CDC–based capture in an AG High Availability scenario (for example, when connecting to a Primary replica or using an AG listener)?