New Year , New Blog Post π
πΏππβπ ππππΈπππ ππ½πΎπ nππ cπΆππππΉπΆπ yππΆπ π€π’π€π₯ wπΎππ½ ππππΆπ ππππ½πππΎπΆππ and πππ ππππππΎππ, accompanied by ππ½π ππΆπππππ πΆππ
πΎππΆππΎπππ. ππΆπ ππ½πΎπ πππΆπ π·ππΎππ πππ π½πΆπ
π
πΎππππ, πππ πππΆππ, πππ πΆπΈπ½πΎππππππππ, ππππ ππ» πππΈπΎππΎππ ππ
π
ππππππΎππΎππ πΆππΉ ππΆππ πππ πΎπππ
πΎππΆππΎπππ ππ ππππ ππΎπ»π. Letβs all πππ
πππΎπππΈπ πππ ππ½πΎπππ πΆππΉ πππΆππ πππ ππ½πΎπππ in ππ½πΎπ πππ πππΆπ π« π¬π¦
This blog post is part of
a series of blog posts related to SAP BTP Alert Notification service.
In
Part 1 Use case was " how to catch application crashes in SAP BTP by utilizing Alert Notification" . The idea of
Part 2 is to βReact Proactively & automatically remediate application instance crashes by using out-of-the-box
integration of a state-of-the-art DevOps tools, such as
SAP Automation Pilot , SAP BTP Alert Notification
As you know , the primary goal of
SAP Automation Pilot is to
simplify and automate complex manual processes ,
automate multiple
DevOps tasks in order to minimize the cloud operational effort behind any cloud solution in the SAP Business Technology Platform
Use-case 1 : Simple Scenario
In this blog post , we would like to illustrate Auto remediation With simple use case
"Auto Start Application instance when Application Crashed/Stopped"
Configurations in SAP Automation Pilot
Step1 ) Create Service Account with
Execute privileges.This Technical Service Account you will use in Alert Notification service. As of now Service Account Supports two types of Authentication
- Basic Authentication
- SAP Cloud PKI Client Certificate
Reference :
Service Account in SAP Automation Pilot
Step2 ) Build Trigger URL
- Go to the Executions section in the Automation Pilotβs UI and choose the Build Event Trigger
- Choose Alert Notifications a trigger type.
- Select your desired command by specifying the catalog, command and version fields.
- For Restarting and re-staging applications: You have below commands
RestartCfApp, RestageCfApp, StartCfApp, StopCfApp
TriggerStartCfApp,TriggerStopCfAppβ
4. After all fields are set in the desired way, you can scroll back to the top and copy the automatically generated URL (To any notepad).
Configurations in Alert Notification
Letβs start by creating a SAP Automation Pilot action for the Alert Notification.
- Navigate to Alert Notificationβs service instance UI in your Cloud Cockpit, tab Actions, click the Create.
- Choose SAP Automation Pilot action type.
3. In the displayed form, enter the name of the target table in Automation Pilot.
4. You can now paste URL you copied from the
Automation Pilot in additional URL property field, then enter Automation Pilot service account user name and password for authentication.
Here I would like to share one
good news for you that
, It is possible to share an instance of the
Automation URL between different sub-accounts or different spaces.
Use-case 2 : Complex Scenario
Sometimes your BTP Cloud app deployment Fails , If your app is too large, or you have exceeded your organisations memory limit, You are unable to run an application.
Common reasons deploying an app fails include:
As per
Note ,In BTP global accounts that use the consumption-based commercial model, SAP BTP, Cloud Foundry Runtime is not listed in the Entitlements pages in the SAP BTP cockpit. A quota limit of 50 GB of Cloud Foundry Runtime memory is assigned by default to every subaccount.If you need to increase this limit, report an incident to SAP supportInformation published on SAP site on the BC-NEO-CIS component.This also applies to other services that have a technical quota limit.
Manual Process
Genrally this kind of activities take taken care by Cloud administrators or Operation Team
Global Account administrators assign Cloud Foundry Runtime quota to the subaccounts using the "Entitlements" page in the BTP Cockpit, on Global Account level. Optionally, the Org Manager can create quota plan inside the organization and assign it to Spaces, or let the spaces consume the whole quota of the organization. For details, see
Managing Entitlements and Quotas Using the Cockpit.
Configurations in Alert Notification
For example, If you would like to Notify Quota issues on BTP in case if BTP Organisation memory usage is over 75%
then you can configure Subscription "Monitor Quota Usage on BTP Alert Notification Service"
Reference :
Resource Quota Utilization
Then BTP Alert Notification service will trigger an event if Org memory usage is over 75%
Configurations in SAP Automation Pilot
BTP Automation
provided commands are generic - they do exactly one thing (restart your app, start your app, create a jira ticket, etc...). If you have a more complex scenarios which includes multiple steps - you need to create a custom command.
Here custom command can be used along with
provided commands .For example you can create a new command that used StartCfApp and then CreateJiraIssue.
Create Action of Type Automation Pilot integrate with servicenow (refer
Blog Post) or create IT Support Ticket/JIRA using API Integration in Automation Pilot
In this way you can build Own Custom commands.
Thank you for reading this blog post. If you find this material useful, please leave your feedback in the comments section below.
Please feel free to add your questions ,
if you need any further information or in case you face the issue/problem
Also
'Like' ,
'Share' ,
'Follow' me to get new updates.
Happy DevOps
π !