Site icon

Introducing Project Magna – Artificial Intelligence and Machine Learning for vSphere self-driving operations

At VMworld 2018, Pat Gelsinger made reference to a project that was looking to use Artificial Intelligence and Machine Learning to create self driving operations for the vSphere stack. At VMworld 2019 last week, we were given a tech preview of the first iteration of this effort, called Project Magna. There were a number of VMworld break-out sessions dedicated to this effort, and I will reference them near the end of this post. However, this first tech preview is focused solely on hyperconverged infrastructure (HCI), namely vSAN.

It is an interesting choice to start with, since we position vSAN as a platform for all workloads. And in many cases, workloads will come and go. How do you stay optimized when workloads keep coming and going? Typically, it involves a lot of manual intervention, tweaking knobs and settings, and then monitoring to see if it made any difference. If it did, well great. If it didn’t, you most likely roll back the previous set of tweaks and try some new ones. One of the disadvantages of this approach is that sometimes you make things worse. And remember that age old guidance that I learnt working in tech support – change one thing at a time!So this is a very time consuming and on-going process.

Since this is initially designed for vSAN for this first phase, customers will be asked what their Key Performance Indicator (KPI) is for vSAN performance – is it read optimizations, write optimizations or a balance of the two? Project Magna then compares your environment to the industry average in general, and if your system is below average, it will then commence to make changes to improve your system’s performance. There is no manual interaction by the user, other than to select the appropriate KPI. This is a screenshot from one of the Project Magna presentations (HCI1620BU by Adam Hawley) which gives a good overview of the constituent parts.

I do want to re-emphasize that Project Magna is about the whole Software Defined Data Center (SDDC), not just vSAN. The longer term goal is to have it work for  compute, storage, network, and security, as you can see from the above diagram.

How Project Magna works

Project Magna is actually a set of cloud services. It integrates with vRealize Operations (vROps) for enabling/disabling of the service, as well as the  visualization of the impact it has had on the system. Once enabled, information about your system is sent to a VMware Data Lake. This takes analytics from your system and compares it against everyone else. It then determines whether or not your system is above, below or at the industry standard for performance. The Magna Cloud Services, which includes the Magna AI/ML Engine and services such as self-tuning, self-healing, etc, will then use vROps to display what performance was like before Project Magna is enabled, and once again after Project Magna is enabled. Customers can then see at a glance whether their KPIs have improved (better read throughput and lower read latency, for example). The Magna Cloud Service is responsible for initiating any actions (tweaking of knobs) on the cluster to achieve those better KPIs, i.e. any underlying knobs that need to be tweaked will be done automatically.

In the VMworld session HCI1207BU, vSAN PM Junchi Zhang showed us a preview of how a proposed integration of IO Insight for vSAN might link directly into Project Magna. IO Insight highlights to the end user that the system may benefit from some optimizations. On clicking the Magna link, the end user could immediately see that the read performance is below average.

The directive above was to enable Magna to have it attempt to improve performance. You then have to pick the KPI against which Magna should operate. Selecting the KPI is very simple – here is a screenshot from another presentation (HCI1650BU)  that I watched that shows how to do it, and what they mean.

So how often will it take an action? At the moment, it has not yet been decided how often it will check the performance of the system. But when it does check, and if it thinks it can improve on the current performance, it will do some actions/tweaks of the system. When the results are measured, and if it has improved, it will increase its rewards. If it is does not improve, it will not reward itself. This is the basis of what is referred to as reinforcement learning (RL). RL is where the system adjusts itself based on rewards. The example given in a number of places is that RL is like a video game, where the objective is to get the highest score or extend your life span. To do so, you learn what actions to carry out, and which actions to avoid each time your play. Eventually you get better and better at it, and build rewards in the process. This is what underpins reinforcement learning.

The screenshot below shows Project Magna in action. Each of the dots on the performance index graph indicates a tweak or some action that Project Magna carried out on the system to improve the read performance of the workload on vSAN. And now read performance has improved significantly, without any manual user intervention.

One final point to highlight. There are built-in safeguards to ensure that these actions to the system do not do any harm. Thus, Project Magna actions should never make performance worse than what it already is.

I’ll close on one other item which the presenters raised. Although the initial phase is focused on self-tuning, and area I think is very interesting is around self-escalating and self-explaining. This is where Project Magna becomes integrated with VMware’s Skyline support product. Now if there are issues with the system, the idea is that Project Magna can proactively escalate issues directly into VMware’s technical support organization. There is also integration planned with VMware Knowledge Base articles. This means that when a solution to a particular problem is found, it should be very easy to implement the solution (who knows, perhaps it will be automated). Some very interesting times ahead for sure!

VMworld Sessions on Project Magna

Here are some links to the VMworld 2019 sessions on Project Magna:

Good blog posts on Project Magna, including details on the difference between AI, ML, RL:

Please note that these are tech previews and as such, there is no guidance given about which future version of vSphere will include these products/features. Also, there is no commitment or obligation that technical preview features will become generally available.

Exit mobile version