on 2021 Nov 16 11:23 AM
Hi Everyone,
We have setup a SQL Anywhere HA along with SQL Remote replication on separate hosts. The HA primary and mirror acts as the consolidate database and we have a separate SQL Anywhere database acting as the SQL Remote remote database. Please find the details of the environment below:
Name of the SQL Anywhere instances: HA Primary: MKMSD1(Current Primary) HA Mirror: MKMSD2(Mirror server) HA Arbiter: MKARB(Arbiter server) SQL Remote remote database: MKREPDEV
All the above SQL Anywhere instances are running on version 17.0.0.4095.
The replication from the HA primary(MKMSD1/MKMSD2) to the SQL remote remote database - MKREPDEV is working fine. The message agents are running on the hosts running the HA primary database and the SQL remote remote database.
We have setup events on the SQL Anywhere primary database to stop and start the SQL Remote message agents.
The first event gets fired during a HA failover on the primary node using the system event - MirrorFailover. This event starts a new message agent on the new HA primary.
The second event runs every 1 second to check the status(primary/mirror) of the SQL Anywhere server in the HA setup and the ReadOnly database property of the database. If the node is a mirror node and the ReadOnly property is On, then the message agent that was running on the host gets killed.
The HA failover was tested to see if the message agent gets shutdown on the mirror(previous primary) node and a new message agent starts on the new primary node(previous mirror). The message agents are getting fired as expected on the primary node of the HA during a failover.
Problem/Issue:
The replication works fine from the initial HA primary node from where the SQL Remote replication was setup. Post failover from the initial HA primary node to the new HA primary node, the message agent starts but gets stuck with the message - "Reading active portion of the transaction log". If we fail back to the initial HA primary node, the SQL Remote message agent again starts reading new transactions and everything works fine. So, the SQL Remote replication works with only the first HA primary node(where SQL Remote replication was setup) and not with the new HA primary after a failover.
We are unsure how to make the message agent work on the new primary node post failover.
Please help us with your valuable suggestions and advices to resolve this issue.
Many thanks.
Request clarification before answering.
User | Count |
---|---|
47 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.