Usually system replication is set up so that a secondary standby system is configured as an exact copy of the active primary system, with the same number of active hosts in each system. The number of standby hosts do not need to be identical.
With multitier system replication, you have one primary system and can have multiple secondary systems. Each service instance of the primary SAP HANA system communicates with a counterpart in the secondary system.

The secondary system can be located near the primary system to serve as a rapid failover solution for planned downtime, or to handle storage corruption or other local faults. Alternatively, it can be installed in a remote site to be used in a disaster recovery scenario. Both approaches can be linked together with multitier system replication. Like storage replication, this disaster recovery option requires a reliable connection channel between the primary and secondary sites. The instances in the secondary system operate in recovery mode. In this mode, all secondary system services constantly communicate with their primary counterparts.
A cluster across data centers with database controlled transfer is realized by system replication.
System replication has the following advantages:
Memory is continuously loaded on a secondary site in preparation for the possible takeover and occupies resources.
Switch-over is faster than with storage replication or mirroring (2-5 minutes).
There is a very short performance ramp (only minutes, not hours, without preparation).
System replication has the following disadvantage:
The hardware (memory and CPU) is actively used on the secondary site for the standby or shadow processes.
Replication Modes
If the connection to the secondary system is lost, or the secondary system crashes, the primary system resumes replication after a brief, configurable, timeout. The secondary system persists, but does not immediately replay the received log. To avoid a growing list of logs, incremental data snapshots are transmitted asynchronously from time to time from the primary system to the secondary system. If the secondary system has to take over, only the part of the log needs to be replayed that represents changes that were made after the most recent data snapshot. In addition to snapshots, the primary system also transfers status information regarding which table columns are currently loaded into memory. The secondary system correspondingly preloads these columns. In the event of a failure that justifies full system takeover, an administrator instructs the secondary system to switch from recovery mode to full operation. The secondary system, which already preloaded the same column data as the primary system, becomes the primary system by replaying the last transaction logs, and then starts to accept queries.
Note the following for synchronous and asynchronous setups:
In a synchronous state, no committed transaction is lost. The open transaction is restarted and clients reconnect to SAP HANA for this. Synchronous setups are required for distances in the range 50-100 km.
In case of an asynchronous setup, there is some loss. This depends on the time period where the secondary site was not reachable or the line was too weak to cope with the data transfer quickly enough. These setups are used for longer distances, where the distance between data centers is 100 km or more. However, they also occur if the impact of the standby process is not allowed to feedback into daily operation (change performance).
Minimal Setup for System Replication
The minimal setup for system replication in one data center for fast takeovers is shown in the figure, Minimal Setup for System Replication.
