solidDB Help : High availability : solidDB HotStandby : High Availability Controller : Failure handling with High Availability Controller (HAC) : Secondary server (or node) fails
  
Secondary server (or node) fails
Scenario
Server #2 (in SECONDARY ACTIVE state) on Node B fails (or Node B fails).
Server #1 (in PRIMARY ACTIVE state) on Node A registers the connection failure to Server #2.
Recovery
To recover from the secondary database failure, the secondary server is restarted. The recovery proceeds automatically as described in the following table:
 
Description
Illustration
The primary server (Server #1) fails to connect to the secondary server (Server #2).
Server #1 switches to PRIMARY UNCERTAIN state automatically and suspends any open transactions, neither committing them nor rolling them back (no error or success message is sent to the client.
Note If the HotStandby.AutoPrimaryAlone parameter is enabled, Server #1 immediately switches to PRIMARY ALONE state, see next step.
This diagram is described in the first column of the row
The HAC instance on Node A concludes that the secondary server has failed and (if Server #1 was set to PRIMARY UNCERTAIN state) the HAC switches Server #1 to PRIMARY ALONE state.
Server #1 commits any open transactions but saves all transactions in the transaction log, in case they have not been committed by Server #2.
Server #1 continues to accept new transactions from applications.
At the same time, the HAC instance on Node B restarts Server #2 in SECONDARY ALONE state.
Note If Node B failed rather than just Server #2, Node B and the HAC instance on Node B must be restarted before the HAC instance can restart Server #2.
This diagram is described in the first column of the row
The HAC instance on Node A connects the primary and secondary servers.
Server #2 reads the transaction log from Server #1 and checks whether any of the transactions are duplicates (that is, transactions that the secondary server already committed). Any transactions that are not duplicates are executed on Server #2.
Note If the HAC cannot connect the servers, the HAC can be configured to initiate a netcopy operation to synchronize Server #1 with Server #2.
This diagram is described in the first column of the row
Go up to
Failure handling with High Availability Controller (HAC)