SAP HANA Sizing
The size of the SAP HANA system required on the AWS Cloud depends on the migration scenario. As mentioned earlier, migrating SAP HANA to AWS involves two possible scenarios: rehosting or replatforming.
Memory Requirements for Rehosting
Because rehosting implies that you are already running SAP HANA, you can determine the size of the SAP HANA system you need on the AWS Cloud from the peak memory utilization of your existing SAP HANA system. You may have oversized your on-premises SAP HANA environment (for example, to support future growth), so measuring peak memory utilization is a better approach than measuring allocated memory. When you have determined the base memory requirement, you should choose the smallest SAP-certified EC2 instance that provides more memory than your base requirement.
There are three ways to determine peak memory utilization of your existing SAP HANA system:
-
SAP HANA Studio: The overview tab of the SAP HANA Studio administration view provides a memory utilization summary.
-
SAP EarlyWatch alerts: This is a free, automated service from SAP that helps you monitor major administrative areas of your SAP system. See the SAP portal
for details. -
SQL statements: SAP provides SQL statements that you can use to determine peak memory utilization. For details, see SAP KBA 1999997 – FAQ: SAP HANA Memory
and SAP Note 1969700 – SQL statement collection for SAP HANA .
Tip
We recommend determining peak memory utilization for a timeframe during which your system utilization is likely to be high (for example, during year-end processing or a major sales event).
Memory Requirements for Replatforming
The replatforming scenario involves two possibilities:
-
You are already running SAP HANA but you want to change your operating system—for example, from Red Hat Enterprise Linux (RHEL) to SUSE Linux Enterprise Server (SLES) or the other way around—when you migrate to the AWS Cloud, or you are migrating from an IBM POWER system to the x86 platform. In this case, you should size SAP HANA as described for the rehosting scenario.
-
You are migrating from anyDB to SAP HANA. There are multiple ways you can estimate your memory requirements:
-
SAP standard reports for estimation: This is the best possible approach and is based on standard sizing reports provided by SAP. For examples, see the following SAP Notes:
-
SQL statements: SAP provides scripts that you can run in your existing environment to get high-level SAP HANA sizing estimates. These scripts run SQL statements against your existing database to estimate SAP HANA memory requirements. For more information, see SAP Note 1793345 - Sizing for SAP Suite on SAP HANA
. -
Rule of thumb: See the PDF attached to SAP Note 1793345 - SAP HANA Sizing for SAP Suite on SAP HANA
for instructions on estimating SAP HANA memory requirements manually. Note that this will be a very rough and generic estimate.
-
You should also consider the following SAP notes and Knowledge Base articles for SAP HANA sizing considerations:
Instance Sizing for SAP HANA
AWS offers SAP-certified systems that are configured to meet the specific SAP HANA
performance requirements. For more information, see SAP Note 1943937 – Hardware
Configuration Check Tool - Central Note
Note
Only production SAP HANA systems need to run on certified configurations that meet
SAP HANA key performance indicators (KPIs). SAP provides more flexibility when running
SAP HANA non-production systems. For more information, see SAP HANA TDI – FAQ
Network Planning and Sizing
You will need to consider network planning and sizing for the amount of data you will be
transferring to AWS. Data transfer time depends on network bandwidth available to AWS
and influences total downtime. Higher bandwidth helps with faster data transfer and helps
reduce overall migration time. For non-production systems where downtime isn’t critical, you
can use a smaller network pipe to reduce costs. Alternatively, to transfer extremely large
data, you can use services like AWS
Snowball
As a guideline, you can use this formula to help estimate how long your network data transfer might take:
(Total bytes to be transferred / Transfer rate per second) = Total transfer time in seconds
For example, for a 1 TB SAP HANA appliance, the total bytes to be transferred is usually
50% of the memory, which would be 512 GB. The transfer rate per second is your network
transfer rate—if you had a 1 Gb AWS Direct Connect
512 GB / 125 MB per second = 4,096 seconds (or 1.1 hours)
After you determine the amount of data you need to transfer and how much time you have available to transfer the files, you can determine the AWS connectivity options that best fit your cost, speed, and connectivity requirements.
SAP HANA Scale-up and Scale-out
AWS provides several types of EC2 instances for SAP HANA workloads. This gives you options for your SAP HANA scale-up and scale-out deployments. In a scale-up scenario, you utilize the compute, memory, network, and I/O capacity of a single EC2 instance. If you require more capacity, you can resize your instances to a different EC2 instance type. For example, if you’re using an R4 instance type and it becomes too small for your workload, you can change it to an R5, X1, or X1e instance type. The limitation is the maximum capacity of a single EC2 instance. In AWS, scale-up enables you to start with the smallest EC2 instance type that meets your requirements and grow as needed. If your requirements change or new requirements surface, you can easily scale up to meet the changing requirements.
In a scale-out scenario, you add capacity to your SAP HANA system by adding new EC2
instances to the SAP HANA cluster. For example, once you reach the maximum memory capacity of
a single EC2 instance, you can scale out your SAP HANA cluster and add more instances. AWS
has certified SAP HANA scale-out clusters that support up to 100 TiB of memory. Please note
that the minimum number of recommended nodes in an SAP HANA scale-out cluster can be as low as
two nodes; for more information, see SAP Note 1702409 - HANA DB:
Optimal number of scale out nodes for BW on HANA
The following table illustrates example scale-up and scale-out sizing.
Scenario | Source configuration | Target configuration |
---|---|---|
Scale-up | r5.8xlarge | r5.16xlarge |
Scale-up | r5.16xlarge | x2idn.16xlarge |
Scale-up | x2idn.32xlarge | x2iedn.32xlarge |
Scale-out | 3 nodes of x2idn.16xlarge | 4 nodes of x2idn.16xlarge |
Scale-out | x2idn.32xlarge | 3 nodes of x2idn.16xlarge |
When you finalize your SAP sizing and SAP HANA deployment models, you can plan your migration strategy.
In addition to SAP HANA sizing, you may also need to size your SAP application tier. To
find the SAP Application Performance Standard (SAPS) ratings of SAP-certified EC2 instances,
see SAP Standard Application
Benchmarks