Time
19 hours 58 minutes
Difficulty
Intermediate
CEU/CPE
9

Video Transcription

00:00
Welcome back. In this episode, we're gonna discuss virtual machine, high availability and scale sets.
00:06
My learning objectives include understanding, high availability and then understanding scale sets.
00:12
So first, what our availability sets availability sets provide a grouping capability and order to place virtual machines. Resource is away from each other. When deployed.
00:21
The virtual machines and an availability set are deployed across multiple physical servers, racks, storage and network components inside the as your data center. If a failure happens, not all of the V EMS in the availability set will be impacted, leaving some online to continue serving up the application.
00:38
This provides redundancy for the application and keeps it available for end users to continue consuming the application.
00:44
Each tier of the application should be placed into their own availability set. The virtual machines are divided up across infrastructure through fault domains and up domains.
00:53
Fault domains can be looked at as racks of servers. Each rack uses resource is like network and power. Putting virtual machines into an availability set puts the V EMS on different host in different racks in the data center.
01:06
If Iraq were to experience a failure, not all of the virtual machines would be affected. Likewise, update domains allow for upgrading or performing maintenance on an application and ensuring other components of the application are not affected. Each update domain is taken down one at a time to perform the maintenance before moving on to the next domain.
01:23
When virtual machines are deployed in an availability set,
01:26
they'll have a 99.95% azure service level agreement or S L. A. This means they should only experience downtime roughly four hours and 20 minutes in a year. One last thing in the note is when creating a virtual machine that is the only opportunity you'll have to place it into an availability set.
01:44
Once the virtual machine is created, you will not be able to place it into the availability set. This means you're gonna have to do some planning before creating your virtue machines. By creating availability set. Have a time
01:56
next. Let's talk about scale sets. Scale sets are groups of identical virtual machines, typically sitting behind a load balancer. What we can do is automatically increase or decrease the number of thes identical virtual machines based on demand of the virtual machine and the set
02:10
For example, if the Web front end of your application is experiencing increased CPU load, the skill set will respond automatically by creating additional, identical first machines inside the set.
02:22
Once this demand subsides, the additional V M R D provisioned
02:25
skill sets provide additional application availability by being able to respond to this additional load but also resiliency so the application stays responsive. A common example would be if you hosted an e commerce site and we're expecting additional traffic on Black Friday after Thanksgiving
02:42
as demand on your site application increases, you don't have to worry about provisioning additional servers to meet the demand.
02:47
The scale set will respond and do that for you. Once demand dies down, those additional virtual machines are automatically removed. Now that we have an understanding of availability sets and scale sets, let's jump back into our azure portal and see how these are deployed with our version machines.
03:04
Here we are, back in our azure portal. Let's go ahead and click on Create a Resource
03:09
search for availability set
03:14
and click on Create.
03:17
Now we need to give our availability, set a name. I'm gonna create this one for our production Web servers.
03:27
Next, I'll choose our existing resource group for the VM demo,
03:32
and we're gonna keep our location as East us and the next we get to choose the number of fault domains. We want these virtual machines deployed across, as well as the number of update domains. We want to deploy his virtual machines across during planned maintenance activities. For now, we'll just leave this at the defaults and go ahead and click on Create.
03:55
Now that our availability set is created, let's go see how it is incorporated. When we create a virtual machine
04:09
now, while creating the virtual machine, I do need to select the same resource group that availability said was deployed to select select VM Demo.
04:18
And I'm going to skip the rest of these. But let's go back to our availability options here.
04:23
In the previous episode, we skipped this option because we didn't require anything for the demo. But now we should be able to select this drop down click on availability set
04:33
that's gonna bring up a new option. And in here you'll see our prod Web, a V set that we just created.
04:42
Now, when we deploy this virtual machine will be deployed across the availabilities that we created based on the number of update and fault domains and any other virtual machines we create into the same availability set will be spread across those domains as well.
04:56
That way, these virtual machines will be highly available across multiple domains for our application.
05:03
Thanks. Let's take a look at creating a scale set again. Let's click on, create a resource
05:12
search for scale sets
05:15
and click on create.
05:21
And First, like most of our other azure resource is, we need to give it a name. I'm gonna focus on our production Web servers
05:29
And the rest of these options are defining what type of virtual machine we're gonna be deploying in the scale set.
05:34
Remember, from the slides, all the virtual machines inside the scale set or identical. So basically were defining the virtual machine image, subscription resource group and location as well a set in the user name and password for the virtual machine inside the scale set.
05:56
Next, we're gonna define how many instances of the virtual machine we want. Initially inside the skill set for this example, I'm just gonna stick with one
06:08
next our auto scaling options This is where we can define how we want our virtual machines to auto scale inside the scale set. Let's go ahead and select on enable
06:17
we're going to find the minimum number of E EMS we want, as well as the maximum number of E EMS inside the scale set
06:24
as well as how we want to scale out and scale in
06:28
here. We have it based on CPU threshold percentage of 75%.
06:32
Once that 1st 1st machine hit 75% we're going to start increasing the number of virtual machines by one. And after that, if the virtual machine CPU scales down to 25% we're going to start decreasing the number of Ian's we have inside the scale set.
06:48
Now for networking, I mentioned. Typically, these virtual machines are gonna be behind some type of gateway or load balancer. But for right now, we're just gonna select none.
06:59
We're gonna select our virtual network to deploy these two
07:04
as well as the sub net.
07:10
And let's go ahead and sign a public I P address per instance
07:16
that does it for the settings I want to worry about right now. Let's go ahead and click on Create.
07:25
Now let's jump over to our scale set and check on its deployment,
07:35
and we can see the status is succeeded with one instance currently running. Let's go into its properties.
07:44
Let's go check out our current instances under settings,
07:49
and here we can see the first PM and our scale set is automatically deployed. Next. Let's go back and check out our scaling settings,
07:59
and this is where we have the auto scaling option said. We also could put a manual scale and we could come in here and mainly scale up and down as needed.
08:11
When we created the skill set, we only had an option of setting based on CPU. But we can also set other scale conditions.
08:18
Let's go check this out.
08:22
Let's add a rule for the scale condition
08:28
and here we have other metrics weaken base this scale world on, such as Dace performance and network performance
08:37
that does it for this demo. Let's jump back over to the slides and wrap this up
08:43
that does it for this episode. Coming up next, we're going to discuss azure resource manager templates or armed templates and how they could be used to deploy our resources. We learned so far like virtual machines, networks and storage accounts.
08:56
See you in the next episode.

Up Next

AZ-300: Microsoft Azure Architect Technologies

Azure Solution Architects are responsible for taking business requirements and turning them into solutions. This course provides an introduction into Azure, Microsoft’s cloud platform whilst preparing students to take the AZ-300 Microsoft Azure Architect Technologies certification.

Instructed By

Instructor Profile Image
Jeff Brown
Instructor