{"id":6219,"date":"2021-02-11T13:25:57","date_gmt":"2021-02-11T21:25:57","guid":{"rendered":"https:\/\/www.microsoft.com\/insidetrack\/blog\/?p=6219"},"modified":"2023-06-25T13:36:52","modified_gmt":"2023-06-25T20:36:52","slug":"how-auto-scaling-sap-on-microsoft-azure-is-benefitting-microsoft","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/insidetrack\/blog\/how-auto-scaling-sap-on-microsoft-azure-is-benefitting-microsoft\/","title":{"rendered":"How auto-scaling SAP on Microsoft Azure is benefitting Microsoft"},"content":{"rendered":"

\"MicrosoftMicrosoft has implemented auto-scaling SAP on Microsoft Azure to help its SAP workloads run more efficiently.<\/p>\n

Why?<\/p>\n

Like many enterprises, Microsoft runs on SAP.<\/p>\n

It uses the software to run everything from tracking servers in its supply chain to making sure the company\u2019s 140,000 employees are paid on time. It has one of the largest SAP deployments in the world.<\/p>\n

In fact, Microsoft manages 50 terabytes of SAP data (enough to hold nearly 7 million digital photos) on 700 Microsoft Azure virtual machines. The company\u2019s SAP usage is doubling year over year, and it conducts 300 million operations per month.<\/p>\n

In 2017, Microsoft Digital team orchestrated a massive lift-and-shift of the company\u2019s SAP business process services, moving that data trove to 700 virtual machines.<\/p>\n

The move was intended to save Microsoft operational costs, while also improving reliability.<\/p>\n

And it succeeded.<\/p>\n

Still, more could be done, says Sanoop Thrivikraman Nampoothiri, a senior software engineer in Microsoft Digital.<\/p>\n

\u201cWe thought the benefits of moving to Azure could be even greater if we just took a few more steps,\u201d he says. \u201cSo we designed a way to more efficiently manage the resources we use to power our SAP applications.\u201d<\/p>\n

The team had already made progress. Costs of managing the SAP workload dropped 18 percent during the first two years of Microsoft Azure operations. That was thanks to moving away from on-premises hardware and waterfall-based engineering practices and deploying upgrades. You can read more about that effort<\/a>.<\/p>\n

Moreover, lifting-and-shifting Microsoft\u2019s SAP workload to Azure allowed the company to easily scale its SAP application to keep up with the explosive growth in usage.<\/p>\n

But Microsoft Digital engineers sought further savings. They saw pain points such as the rising costs of running SAP on virtual machines, the company\u2019s one-size-fits-all approach to server configuration, and the lack of an out-of-the-box way to dynamically scale SAP workloads.<\/p>\n

[Learn how Microsoft monitors SAP end to end.<\/em><\/a> See how Microsoft monitors end-to-end enterprise health with Microsoft Azure.<\/em><\/a> Check out how Microsoft migrated critical financial systems to Microsoft Azure.<\/em><\/a>]<\/p>\n

Adapting SAP for the cloud era<\/strong><\/p>\n

One of the challenges with managing SAP in the cloud is that even though it now has more than 220 million cloud-based users, it\u2019s not fully optimized for today\u2019s elastic cloud infrastructure.<\/p>\n

\u201cSAP (in its current form) was designed back in the 1990s,\u201d Nampoothiri says. \u201cIt\u2019s an older architecture, and it\u2019s not as modern as some of our other Azure services\u2014especially web services. At the same time, it\u2019s one of our busiest services, managing everything from finances to supply chains. And a lot of our customers are in the same position as we are.\u201d<\/p>\n

One result is that engineers tend to be cautious when managing mission-critical applications such as SAP, building in plenty of capacity to ensure customers always have access.<\/p>\n

\u201cWhen you design a system like that, you always design for peak load,\u201d Nampoothiri says. \u201cMost of our customers do the same. But Azure has a lot of flexibility that allows you to right-size systems.\u201d<\/p>\n

This leaves SAP application servers at a sweet spot for automation and optimization. Combining the oversight of Microsoft Azure Monitor with the power of Microsoft Azure Automation, these application servers can be scaled at will.<\/p>\n

Microsoft Digital carefully monitors SAP usage and stability using Microsoft Azure Monitor and applies technologies such as predictive analytics to spot potential problems before they occur. That monitoring also measures the loads on SAP infrastructure, allowing engineers to clearly see usage patterns.<\/p>\n

\u201cThe telemetry from Microsoft Azure Monitor helped us understand which workgroups have different loads,\u201d says Karan Parseja, a Microsoft Digital software engineer in Hyderabad. \u201cThe next step was to build a solution that would decide which servers should run at lower load levels, and then automatically reduce the capacity for those servers. We also needed the solution to gracefully stop an application when needed.\u201d<\/p>\n

Enter auto-scaling, tight-sizing, and snoozing.<\/p>\n

After the migration of 700-plus virtual machines (VMs) to Azure, we were constantly looking at the opportunities for further optimization of infrastructure resources.<\/p>\n

– Santosh Rajput, senior software engineer in Microsoft Digital<\/p>\n<\/blockquote>\n

Microsoft Azure runs SAP more efficiently with auto-scaling<\/strong><\/p>\n

The seed for auto-scaling SAP on Microsoft Azure came from a hackathon\u2014an annual week-long event at Microsoft where everyone teams up with colleagues to work on ideas of their choice.<\/p>\n

\u201cAfter the migration of 700-plus VMs to Azure, we were constantly looking at the opportunities for further optimization of infrastructure resources,\u201d says Santosh Rajput, a senior software engineer in Microsoft Digital. \u201cDuring a hackathon, we came up with this idea of scaling in or out of SAP application servers automatically, in real time.\u201d<\/p>\n

Altogether, the team took three approaches to improve how Microsoft Azure runs SAP:<\/p>\n

Auto-scaling<\/strong>. The team embraced an \u201cinfrastructure on demand\u201d approach, in part because it\u2019s easy to scale Microsoft Azure up as needed. Team members used the SAP Quick Sizer tool to estimate precisely how much VM capacity was needed, then scaled accordingly. And they shortened the planning horizon from several years to six months, enabling more precise adjustments to demand.<\/p>\n

Tight-sizing<\/strong>. Most system demand peaks are predictable\u2014quarter-end and year-end in particular. The Microsoft Digital team redesigned its VM array running SAP to correlate system capacity with anticipated peak demands.<\/p>\n

Snoozing<\/strong>. Perhaps the biggest change was to move away from the always-on status of the original SAP setup. The Microsoft Azure team used Microsoft PowerShell to give the system the ability to \u201csleep\u201d during quiet periods. But if someone is working on a weekend and needs access, the virtual machines rapidly come back online to do the work.<\/p>\n

The reconfigured SAP\/Microsoft Azure system also was redesigned with fewer points of failure and has a substantial degree of redundancy to guard against unexpected faults. It also has dual databases, which provide automatic failover in the event one crashes. That also makes it easier to perform system upgrades without interfering with work demands.<\/p>\n

\"A
Microsoft\u2019s SAP infrastructure is based on servers, telemetry, SQL databases, and Microsoft Azure Logic Apps. This allows Microsoft Azure to scale SAP up or down, depending on demand.<\/em><\/figcaption><\/figure>\n

Still, perhaps the biggest task was finding a way to deploy these improvements in a way that allowed Microsoft\u2019s SAP infrastructure to keep working smoothly while auto-scaling SAP on Microsoft Azure changes were made. Think of it as repairing a jetliner mid-flight\u2014from the outside.<\/p>\n

\u201cWe had to convince our stakeholders that this would really work without having an impact on the availability of the system,\u201d Rajput says. \u201cAny customer running SAP and Azure would have that concern as well.\u201d<\/p>\n

When we moved, we didn\u2019t want to take any chances. We wanted to show people the best possible way to run SAP on Azure. So we were conservative and focused on availability for peak loads. But now we\u2019re confident that Azure can handle SAP workloads, so now we\u2019re working on optimization.<\/p>\n

\u2013 Niranjan Maski, senior program manager in Microsoft Digital<\/p>\n<\/blockquote>\n

Niranjan Maski agrees. He is a senior program manager for Microsoft Digital in Hyderabad.<\/p>\n

\u201cWhen we moved, we didn\u2019t want to take any chances,\u201d Maski says. \u201cWe wanted to show people the best possible way to run SAP on Azure. So, we were conservative and focused on availability for peak loads. But now we\u2019re confident that Azure can handle SAP workloads, so now we\u2019re working on optimization.\u201d<\/p>\n

Empowering customers to do more with SAP<\/strong><\/p>\n

Overall, auto-scaling SAP on Microsoft Azure reduced the cost of running SAP by another 18 percent and created a more robust system in the process.<\/p>\n

Now used internally, these improvements may be rolled out for customers using Microsoft Azure and SAP. That would be an important stage in keeping Microsoft Azure abreast or ahead of competitors, who also run SAP on their cloud services.<\/p>\n

\u201cWith COVID-19, we\u2019re seeing more enterprises moving their IT infrastructure to the cloud, so they have better resiliency and scalability,\u201d Rajput says. \u201cFor a lot of our customers, their biggest workload is enterprise resource planning (ERP) performed on SAP. If we can show them that moving to the cloud saves them money, then that will drive more cloud adoption.\u201d<\/p>\n

Options include making this an add-on to Microsoft Azure, says Amit Ganguli, a Microsoft Digital program management director based in Hyderabad. That also means possibly using Microsoft Azure Monitor, which now is in preview, or open-source code on GitHub.<\/p>\n

For the team, making a big difference despite their few members has been a great source of satisfaction.<\/p>\n

\u201cI\u2019m really proud of my team members,\u201d Rajput says. \u201cOne of the strengths of Microsoft is it can quickly build teams that can solve big problems like this. I don\u2019t feel like I\u2019m just doing a job. What motivates me is that we\u2019re having a positive impact on our customers.\u201d<\/p>\n

\"Related<\/p>\n