Example: Auto scaling SAP applications
You can automate SAP application auto scaling, which automatically detects SAP application server demand and scales up or scales down Amazon EC2 instances accordingly. This capability can adapt to spikes and dips for concurrent user logins, month-end close, payment runs, and a variety of both predictable and unpredictable workloads. The capability can horizontally scale up (start new compute services as application servers) and scale down (stop existing compute services). The following are the benefits of this automation:
-
Dynamic adjusting of application server capacity based on user demand
-
Running minimal baseline EC2 instances at the application layer
-
Reducing costs
-
Maintaining increased and scalable performance service level agreements (SLAs) for the business
The following image and process describe how you can automate scaling of the resources that support your SAP applications:
-
A time-based event, typically scheduled for every 2 minutes, causes Amazon EventBridge to start a Lambda function.
-
The Lambda function collects the required statistical information from Amazon DynamoDB and its local environment variables, such as hostname and threshold values.
-
If demand is above or below the threshold, the Lambda function directs AWS Systems Manager to start or stop additional EC2 instances to support the SAP applications.