
The network connection between the primary and the secondary system impacts the overall performance of the SAP HANA systems if not configured correctly .For SAP HANA system replication it is critical that the network throughput (or bandwidth) and network latency requirement are sufficient to fulfill the optimal network requirements.
In this article , I am going to explain - How to measure optimal network bandwidth requirement for HANA replication setup and other important considerations for network throughput and latency.
Let's take an example of 3-tier multi-target replication setup
From DC1--> DC2 {SYNC | logreplay | delta_datashipping}
From DC1--> DC2 {ASYNC | logreplay | delta_datashipping | Compression enable for Data and Logs}
3 tier replication setup
For Network Latency - SAP HANA Replication modes plays important role .
Here we are using enable_log_compression and enable_data_compression at DC3 site ,It helps Network bandwidth in positive manner and reduce the Network bandwidth requirement. Please refer last section of this article for more details.
Basic Formula to calculate Network Throughput :
Bandwidth required for initial HANA data shipping in an acceptable time + [ Bandwidth required to ship generated HANA logs in an acceptable time ~ logreplay , Bandwidth required to ship delta HANA data snapshots in an acceptable time ~ delta_datashipping”].
The requirements regarding the network throughput are influenced by the selected operation mode ( Logreplay | delta_datashipping ) as it influences the size of the shipped data over the network.
- SNAPSHOT_TIME: Time of snapshot
- HOST: Host name
- PERSISTENCE_GB: (Current) persistence data size (GB)
- DATA_SIZE_GB: Total amount of data written to disk (GB)
- LOG_SIZE_GB: Total amount of logs generated (GB)
- TOTAL_SIZE_GB: Total amount of data and logs generated (GB)
- LOG_PCT: Log compared to total (%)
- AVG_BANDWIDTH_MBIT: Average required network bandwidth to replication side (Mbit), only available for certain TIME_AGGREGATE_BY values
- SIMPLE_BANDWITH_MBIT: Simple network bandwidth calculation (Mbit) based on the formula that it should be possible to ship the persistence once per day
Bandwidth required to ship HANA logs: ( Operation Mode - Logreplay )
Bandwidth required to do the initial HANA data shipping in an acceptable time:
Example: Given is 4,3 TB of persistently stored data that need to be transferred in 1 day.
Required throughput: 4,3 TB/day which is ~50 MByte/s
=> ~0,5 GBit/s connection required ( from help.sap.com)
Bandwidth required to ship delta HANA data snapshots in an acceptable time” (only in operation mode delta_datashipping)
Compression in Replication :
You can activate compression of log and / or data using the following SAP HANA parameters:
global.ini -> [system_replication] -> enable_log_compression [Enables compression of log when it is sent to the secondary site]
global.ini -> [system_replication] -> enable_data_compression [Enables compression of data when it is sent to the secondary site]
Important Reference :
You can refer following note and standard SAP HANA replication guide for more details:
Hope this article will help you to understand -
Kindly share feedback or thoughts in a comment or ask questions if any.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
9 | |
7 | |
6 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 |