Professional Documents
Culture Documents
System Replication
System Replication
Overview (1)
System Replication:
Alternative, high availability solution for
SAP HANA platform, providing an extremely short
RTO
Compatible with all SAP HANA hardware partner
solutions
Employs an "N+N" approach, with a secondary
standby system. Secondary system has the same
number of active nodes as the active, primary system
Primary System
Secondary System
Public
System Replication
Overview (2)
System Replication:
The instances in the secondary system operate in live
replication mode.
In this mode, all secondary system services constantly
communicate with their primary counterparts.
System replication replicates data and persists
data/logs, and finally loads data to memory.
The logs and data can be compressed before shipping.
Primary System
Secondary System
Public
System Replication
Replication mode Options (1)
1. Synchronous in-memory (default): The primary
system commits the transaction after it receives a
reply confirming that the log was received by the
secondary system, but before it has been persisted.
Primary
Secondary
STOP
Transaction
Log
Data
Log
Public
System Replication
Replication mode Options (2)
3. Synchronous: The primary system does not commit
a transaction until it receives confirmation that the log
has been persisted in the secondary system.
Primary
Secondary
Transaction
Data
Log
Data
Log
ASYNC operation
Public
System Replication
Operation mode Options
Depending on the system replication configuration,
there are two operation modes available:
1. Delta data shipping: In this operation mode the
secondary system persists but does not immediately
replay the received logs.
2. Logreplay (available from SPS11): With this
operation mode configured, the received log entries
are replayed immediately in the secondary system.
The takeover time is reduced significantly because
the log no longer has to be replayed.
Secondary
Primary
SAP HANA
Delta Data
SAP HANA
Log
Public
System Replication
Minimal setup in one data center for fast takeovers
Clients
Application Servers
Primary
Secondary
(active)
Name Server
Transfer
by
Index Server
Index Server
SAP HANA
database
kernel
Internal
Disks
Data
Disks
Name Server
Log
Disks
Internal
Disks
Data
Disks
HA Solution Partner
HA Solution Partner
Data Center 1
OS: DNS, hostnames, virt. IPs
Log
Disks
Public
System Replication
Cluster across data centers with DB controlled transfer
Application Servers
HA Solution Partner
Data Center 1
Data Center 2
OS: DNS, hostnames, virt. IPs
Primary
(active)
Name Name Name
Server Server Server
Index Index Index
Server Server Server
OS: Mounts
Secondary
Transfer
by
SAP HANA
database
kernel
Data
Volumes
Data
Volumes
Data
Volumes
Data
Volumes
Log
Volumes
Log
Volumes
Log
Volumes
Log
Volumes
HA Solution Partner
Clients
Public
System Replication
Cluster across data centers with QA & DEV on second site
Clients
Application Servers
Primary
(active)
Name Name Name
Server Server Server
Index Index Index
Server Server Server
OS: Mounts
HA Solution Partner
HA Solution Partner
Data Center 1
Data Center 2
OS: DNS, hostnames, virt. IPs
Secondary
Transfer
by
SAP HANA
database
kernel
(active,PRD
data pre-loaded)
shadow
Name Name Name
operation
Server Server Server
Index QA/DEV
Name Name
Server Server
runningServer
Data
Volumes
Data
Volumes
Data
Volumes
Data
Volumes
Data
Volumes
Data
Volumes
Log
Volumes
Log
Volumes
Log
Volumes
Log
Volumes
Log
Volumes
Log
Volumes
PRD
QA/DEV
Public
System Replication
SAP HANA multitenant database containers
SAP HANA Multitenant Database Containers:
SAP HANA system replication can be used to replicate
the whole system.
The replication process treats the complete collection
of tenant containers as one.
Primary and secondary systems must be identical at
the time of system replication setup, including tenant
databases.
Replication of a single tenant to an individual location is
not possible.
Primary
Secondary
SystemDB
SystemDB
TenantDB1
Delta Data
TenantDB2
TenantDB n
MDC
TenantDB1
TenantDB2
Log
TenantDB n
MDC
Public
10
Thank you
Contact information:
open@sap.com
Public
12
Primary
SAP
HANA
Log
Secondary
SAP
HANA
Client
r/w
Delta
Data
r/o
Primary
Secondary
SAP
HANA
SAP
HANA
Log
Public
Sec.
Public
Enable primary
hdbnsutil sr_enable ...
Sec.
hdbnsutil sr_register
replicationMode=[sync|syncmem|async]
operationMode=[delta_datashipping|logrepl
ay]...
Start secondary
Public
New
New
Default: 1TB
Public
New
New
Public
logshipping_max_retention_size
Primary
Delta
Data
Secondary
SAP
HANA
SAP
HANA
Log
Data
Log
Data
Log
Primary
Secondary
SAP
HANA
SAP
HANA
Log
Log
Log
Data
Public
Log
SAP NetWeaver
ABAP Server
DBSL
Software
Upgrade
Order
SAP HANA Version
Walldorf
Primary
Data
Volumes
Name
Server
Name
Server
Name
Server
Index
Server
Index
Server
Index
Server
Log
Volume
Data
Volumes
Log
Volume
Data
Volumes
Name
Server
Name
Server
Name
Server
Index
Server
Index
Server
Index
Server
Log
Volume
Public
Data
Volumes
Log
Volume
SAP NetWeaver
ABAP Server
DBSL
Cluster Manager
(e.g. SUSE
Cluster)
Software
Upgrade
Order
Primary
Log
DBSL
Connectivity
Suspend
Rot
Walldorf
Secondary
Primary
Sync/Async mirrored
redo log writing
Rot
Walldorf
Secondary
Primary
Log
Data
Log
Virtual
IP
3. Re-initiate
Transport
incremental data
Data
Cluster Manager
(e.g. SUSE
Cluster)
1. Update
2. Reconfigure
Takeover
Transport
incremental data
Data
SAP NetWeaver
ABAP Server
DBSL
Virtual
IP
SAP NetWeaver
ABAP Server
Sync/Async mirrored
redo log writing
Rot
Secondary
Transport
incremental data
Data
Log
Data
Log
Data
Public
Log
DNS Virtual
Hostname
DNS Virtual
Hostname
SAP NetWeaver
ABAP Server
SAP NetWeaver
ABAP Server
DBSL
DBSL
Cluster Manager
(e.g. SUSE
Cluster)
Cluster Manager
(e.g. SUSE
Cluster)
Virtual
IP
Takeover
Virtual
IP
Walldorf
Primary
Sync/Async mirrored
redo log writing
Rot
Walldorf
Secondary
Primary
Transport
incremental data
Data
Log
SAP NetWeaver
ABAP Server
Sync/Async mirrored
redo log writing
1. Rebuild
2. Reconfigure
Rot
Walldorf
Secondary
Secondary
Transport
incremental data
Data
Log
Data
Log
DBSL
Virtual
IP
3.Re-initiate
Sync/Async mirrored
redo log writing
Rot
Primary
Transport
incremental data
Data
Log
Data
Log
Data
Public
Log
10
Thank you
Contact information:
open@sap.com
Public
12
Server 3
Name
server
Server 4
Name
server
Server 5
Name
server
Server 6
Name
server
Standby Server
SAN Storage
Name
server
Server 1
Standby Server
SAN
Server 2
Public
Storage
Host auto-failover
Name
server
Shared Storage
Server 1
Storage
Connector
API
Name
server
Public
Public
Public
Public
Worker
(Master candidate 2)
Master
(Master candidate 1)
Standby
(Master candidate 3)
Rewrites single
random strings
repeatedly
Checks for
changes
.lck
Located in
shared storage
for SAP HANA
binaries
Check
If
Public
Worker
(Master candidate 2)
Master
(Master candidate 1)
Standby
(Master candidate 3)
Rewrites single
random strings
repeatedly
Checks for
changes
.lck
Located in
shared storage
for SAP HANA
binaries
Check
If
Public
Worker
(Master candidate 2)
Master
(Master candidate 1)
Standby
(Master candidate 3)
Rewrites single
random strings
repeatedly
Checks for
changes
.lck
Located in
shared storage
for SAP HANA
binaries
Check
If
Public
Primary System
Replicated Storage
Public
10
Data Center 2
Primary
Secondary
(inactive)
OS: Mounts
Data
Volumes
Data
Volumes
Log
Volumes
Log
Volumes
Storage
Mirroring
HA Solution Partner
Data Center 1
OS: DNS, hostnames
Data
Volumes
Data
Volumes
Log
Volumes
Log
Volumes
HA Solution Partner
Clients
Public
11
Data Center 2
Secondary
Primary
PROD (inactive)
QA & DEV (active)
Name Name Name
Server Server Server
Index Index Index
Server Server Server
OS: Mounts
Data
Volumes
Data
Volumes
Log
Volumes
Log
Volumes
Storage
Mirroring
HA Solution Partner
Data Center 1
OS: DNS, hostnames
HA Solution Partner
Clients
Data
Volumes
Data
Volumes
Data
Volumes
Data
Volumes
Log
Volumes
Log
Volumes
Log
Volumes
Log
Volumes
Public
12
Thank you
Contact information:
open@sap.com
Public
14