# FCS 05 Sep

- **Course:** 5102 - Foundations of Comp Sys
- **Recorded:** 2026-09-05 00:00
- **Transcript:** 1952 segments, 14319 words
- **Made by:** deepdml/faster-whisper-large-v3-turbo-ct2

---
Thank you very much, guys. It's overwhelming to receive so many wishes for not using IITP ID. Okay. You can log in through personal ID also. That is a news to me. I thought only partner ID can be used to log in. Okay. But I don't want them to miss the class. So definitely I will Hello. Okay, cool. So we have 286 participants. Great. Yes, Prithee, what do you want me to tell? I saw your previous question about PG program. Yeah, you can definitely view the recorded one. I am recording every session that is happening. for 293 participants at this point of time. So, let's get started. I'll take the questions in the break, before the break and after the break as well. In the meantime, let us get started. Okay, cool. I believe you are able to see my screen. Okay, cool. So, let me go back to the Microsoft Azure homepage. so today what we are going to see is how vmss works and how it takes the load how we can ascertain the load and our focus is going to be on cpu

and whatever we see for cpu applies for memory and disk as well so now this is my home page I am going to the virtual machine skill set so now you can ask what is virtual machine skill set suppose if I want to this is something which is actually disturbing waiting in the lobby I think I need to tell the college let them not give an option to log in personal email id because for me like definitely it feels bad to not to allow if i allow then it actually disrupts the flow of the class at least whoever is joining late after 7 30 please join with your iit partner id it's a request from my end okay so let's come back. So, virtual machine. We know what a virtual machine is. Virtual machine is nothing but a server that we can get in a cloud environment. We can get it in AWS, we can get it in Azure, we can also get it in GCP or any other service providers. Now, very specific to Azure, what is this virtual machine scale sets?

Suppose if you want to define a virtual machine. Let us assume that we have a web service in that virtual machine. And if at all there is a spike in the traffic, we want it to automatically scale so that the user request is not rejected. So if you want to scale, then we should start defining the virtual machine scale set, and then we need to define how many virtual machines we wanted to start with, and we also need to define a rule. Suppose if the CPU goes beyond 60%, you increase the virtual machine, and in case if the CPU utilization comes back to normal, that is lesser than 60% utilization, then you remove the added virtual machines. So there is a definition which is minimum and maximum. So now let us get into the virtual machine skill set. Here I have a virtual machine skill set by the name VMSS Autoscale Demo. and this belongs to the resource group RGVMSS Autoscale Demo and I have started this virtual mission skill set

in Central India region. Provisioning has succeeded. Status all succeeded. Operating system that it is going to use is Linux and each machine is going to be of size standard B2S and currently there are two instances running orchestration is flexible and I also have a public IP address for this VM skill set so how come VM skill set is getting a public IP because it is a logical unit and So how do we get a public IP for that? When I have started this virtual machine skill set, what I have done is I have profiled it. What I have profiled it, I have given the profile as operating system is Linux. Any virtual machine that is going to get started by this skill set is going to run Linux operating system. Availability plus scaling. So availability zone, I have selected all the three zones. That is available under Central India. And instance count. So I said you start with two. That is the reason we had two virtual machines running under this skill set.

Now, how is the scaling going to happen? Auto scale. It is not a manual scale. it is an autoscale. And from the management perspective, upgrade policy is manual. I have also defined the monitoring. Health monitoring I have enabled. And I have enabled for all the virtual machines that is going to run in this VMSS. And now coming back to the networking. So public address, when we saw the public address of this VMSS, we observed that it starts with 20.235. This is nothing but I have defined a load balancer and this IP address is of the load balancer and this load balancer is attached to this virtual machine skill set. How can I understand? I can open this in a new tab. And let us look at the load balancer properties. If we are able to see the load balancer, this also belongs to resource group, VMSS, AutoSkill, Demo. And location is Central India. And subscription ID, my subscription ID. Submission is pay-as-you-go.

Load balancing rule is basically TCP protocol port number 80. So suppose if I'm going to access this IP address, then automatically it will go to port number 80. I've also created a health prop. And the front-end IP address is 20.235.212.114. Now, this is the load balancer. Name of the load balancer is VMSS Autoscale Demo. So it starts with LB just to identify that it is a load balancer, but this is user-defined name. This is not Azure-defined name. So if I move this, these are all the essential properties that we are seeing. Now let me close this and come back to the previous screen. Now, from the networking perspective, there are two more interfaces available. One is 4.240.91.58. Another one is 4.240.107.194. So that means we have three associated public IP addresses for this virtual machine scale set. Okay, perfectly fine. Now, remember these two IP addresses, 4.240. So, both the IP addresses belongs to what?

It belongs to the virtual network, Central India, NIC01. Virtual network, Central India, NIC01. But it has a different appendix. So, remember 4.240. Now, let me close this. now I will come back to the virtual machine skill set now I also have virtual machines here option let me go ahead and see how many virtual machines I have I have two virtual machines in this two virtual machines one is ending with A6 another one is ending with B8 now both of them are in the central India. Both of them belongs to the same resource group. Both of them are standard BAS. Update status is enabled periodic. Now I can click on this particular VM. Now if I click here, it is showing me the properties of the first VM. And if you look at it, it is IP address is 4.240. So, there were three IP addresses associated with this virtual machine skill set, and one belonged to load balancer, and the other two belonged to the virtual machines.

One is 4.240, we can see for the first virtual machine. Similarly, if I click on this virtual machine, I am also able to see the IP address is 4.240. So, three IP addresses, public IP addresses. Actually, do I need to have public IP addresses for these virtual machines? The answer is no. It is not required. But why did I enable these two virtual machines to have public IP? Just for our lab purpose, for our understanding purpose, I have given the public IP. Okay, great. Now, health state is healthy. Okay, perfectly fine. Now, I can also connect to these individual virtual machines remotely, since it is having a public IP. Now, let me close this. So, we have seen this virtual machine skill set, and it has a load balancer and two virtual machines. And those virtual machines are actually running a web service. How do we know? Let me click here. So now you can see this is Autoskill demo. And it also has 4.240.9158.

So let me go back to the virtual machines now first. This is my first virtual machine. It is saying healthy. Why it is saying healthy? Because the web service is running. How can I confirm that? If I can run a command being in this UI only, if I go to operations, I have an option called command. And when I choose this, it is going to run this command on this virtual machine, which is the first virtual machine. Let me click on run command. It is asking what type of command you wanted to run. Let me say execute a Linux script. That means we can also execute individual Linux commands also. Now, this is a Ubuntu operating system. So I can use a systemctl and I ask a systemctl to find the status, status of ngimx. And then if I say run, this is going to give me an output in the screen. The script is still processing, script execution in progress. Now you can see enable succeeded. and then you can see here it is actively running.

So suppose if I stop this NGINX service on this virtual machine then let us see what happens. Can we stop it? Yes, we can stop it. We can use, sorry guys, I can use stop NGINX and then I can run. So now the execution is in progress. Once the execution is completed, it is going to give us an output in this output box. And then probably it is going to say we have successfully stopped the ng-inx service. So now you see enable succeeded. There are no errors and there are no standard output. now let me go ahead and run the status now so here instead of stop i'm going to run ask for the status and then run the command so now this particular command is running in the shell will get communicated to the virtual machine And now you can see status is inactive and dead. Let me close this. Now let me go back to monitoring and go to my click. Okay, we will come back here later. Let me go back to this virtual machine first.

Let me click on the overview. Now you can see that the status of this virtual machine has become unhealthy. So that means our monitoring is working fine. The IP address has not changed. Now let me go ahead, operations, and run the command. Let me execute a shell command. Let me say systemctl start ngilx. and then let me run this. So the moment it successfully starts the NGINX service and says that it is active and it is running and the next moment what will happen is I can go close this. Now I can click on the overview. It is saying unhealthy because there is a polling time. Okay, now if I am going to refresh this, then the moment it holds the next time, this is expected to become healthy. Now on another server in the meantime, we will see the overview. It is showing us healthy. So we confirmed that if Abhishek Anand is trying to join with two IDs, I'm not sure what is happening, but anyhow, that's fine. Let us come back to the, now let me go back to the virtual machine.

Still it is showing unhealthy, but we have started it. How can we confirm? We will take this IP address. And then let me go ahead and give this IP address here and then give enter. So it is pinging with, it is trying to do a HTTPS. I have not opened up HTTPS. I have opened only HTTP. Now we can see response from VMSS instance. Now let us go back here. Is it become healthy by now? Definitely in the next, it will become healthy. We will come back to this screen a little later to reconfirm that it has pinged and it has checked that it is running. So now we know that this is going to give a response as a response from the VMSS server. So for that same thing, let me give the second virtual machine's IP address and make sure that this is going to ping from the second IP address. Now you can see it is also giving a response from VMSS instance as a page. Okay, cool. So now we have a virtual machine skill set. Still it is showing unhealthy.

It should become healthy soon. We'll see that again. Now we know that VMSS has a load balancer and that load balancer's IP address is 20.235.212.114. Now let us go ahead and give that IP address. Now we can see VMSS instance responses coming. So this response might be coming either from one of the virtual machines that we have here. So the infrastructure what we have is basically a virtual machine scale set. And that virtual machine scale set is starting with two virtual machines and both the virtual machines are running ngimx so if you are going to hit the load balancer it will get a response from one of the two virtual machines okay now how do i understand the configuration of this virtual machine so now i can go ahead and see it has an operating system linux ubuntu 24.04 And if I come down here, I am able to see the computer name is this operating system. And then we also have availability, scaling, security, health monitoring is enabled.

Networking we have seen. The private IP address of this virtual machine is 172 series. suppose if I go ahead and run curl of the local HTTP this is the IP address now let us try this I am just going to run hopefully curl is available I am just going to say curl HTTP and this IP address this is the local IP address of the server I am trying to run this within the IP address. The script execution is in progress. Once it has completed, let us check what is the outcome it is showing in the output window. I can actually log in to this particular server by using an external IP. You see, port number was not a decimal number between 0 and 3. Why is it showing that? If I'm not giving any port number, it should open up in port 80. So let me give port 80 and then run it. So let us see what is the output. It is coming. It says rejected. We'll come back to this a little later. All I was trying to convey is we should be able to access that NGINX from the local server also.

Now let us go back. Let me close this. let me go back to the virtual machine scale set let me click here so here overview status two out of two succeeded what is two two virtual machines size is b2s instances so i can also get the details of b2s instances if i click here it is going to tell me what is the size of b2s That is what I have selected. So it's a general purpose machine that is going to have two CPUs, eight GB RAM. What happened? Something went wrong. Let me close this. Come back here. Let me click on this. I'm not going to click on that there. Anyway, four MB RAM, two CPUs, four data disks. that all are SCSI and the charge that I am going to get is 32.70 per month. That is the charge. So this is the mission I have configured for VMSs to run. Let us go back here. Now let us look at the settings. So here you can see the properties. We now saw that there are two CPUs and standard B2S, two instances. Whatever two virtual machines we saw,

it is available in all the three availability zones. Cool. So how much of VM's available memory is consumed? How much of VM's CPU is consumed? We will be able to see because I have enabled the monitoring. So this is the monitoring and operations for the overall but now when i get into this i can see the monitoring preview i can click here cpu usage trend memory percentage usage trend network out traffic and network in traffic there is something which was going on but if you look at here there's something which has also gone out into the VMSS. This is not of virtual machines individually. Okay, perfectly fine. Now, capacity and placement. So, host groups, there are no hosts to display. Now, coming back to the infrastructure, VMSS, group, We click here on Configuration. Now, if you look at Enable Notifications for Instance Termination, I have disabled it. In case if any of the virtual machine gets terminated, we can also enable notification

and if you enable, we can also give off when we wanted to receive the notification and where we want to receive the notification. So I'll just discard the changes. I don't want to do any changes to the configuration. I can go back to the configuration. Let me refresh. Okay, cool. Settings. Now, operations we saw. Monitoring metrics. This metrics, as I said before, it is for overall VMSs. Now, we know this is going to create two CPUs for GB RAM and for hard disks. Okay. Perfect. Now, what are we going to understand? So, let us look at the… We have demonstrated the load balancer. We are able to get a response. We have also seen the health. both of them are healthy now let us go ahead and see because we stopped one so that was unhealthy now let me go back to the instances let me minimize this and let me click on this you can see that now it has become healthy so that means at the host level I have monitoring enabled so at the set level

I have enabled the monitoring it. Okay. Suppose if a VM fails the health prov, it is not supposed to receive traffic. Okay. So now how do we confirm that? We can definitely do that. What I can do is let me give a different page for different. How can I do that? I can go back to operations. I can go back to the run command. Now I can use a Linux command. Sorry, a Linux command. Sorry, why is it not happening? Okay, cool. We know that the response is coming from the index.html. So what I'm going to do is, instead of echoing a response from VMS's instance, what I'm going to do is, I'm just going to put it as instance one. and then I'm going to run. So script is execution in progress. Once it is executed, what it will do? It will replace the content of index.html to response from VMSS instance 1. That is what it is going to replace. I can run parallelly also here, but I'm just going to, yes. This is what it is, response from VMSS instance 1.

Now let me close this. Let me go back to overview. I will get the IP address of this. Now let me go ahead and hope you are able to see my multiple instance of my browser. So I'm just giving this. Now you can see the response it is showing as VM instance 1. Now, similarly, let me go ahead and change it in the second. So I'm just going to go to the run command, run shell script. I'm just going to modify the index. Oops, I copied the IP address last. So when I pasted it, that was coming into this script. So here, instead of VMSS instance, let me make it as VMSS instance 2. now let me run this once it is successfully run it will replace the content of the index.html to read it as instance hyphen two so still it is in progress maybe another couple of seconds it should get over once it gets over we will have a response in the output so response from vmss instance two i have changed the content of the index.html let me go back to the overview

And now, if I copy this IP address and give this IP address here and ensure that it is going to take HTTP only, not HTTPS, now we can see the response is coming from VMSS instance, hyphen 2. Now, Sundar, what will be the response if I give the load balancer IP? That is 20.235.212.114. Now the second instance has responded. As of now, all my request is going only to the VMS instance 2 because both of them are idle. Only if one of them is busy, their request will go to the another. So, pretty fine. but is one working it is still healthy and since it says healthy that means the port is running very clearly ok cool now what happens after NGINX receives the request that is the question we need to ask basically when we are sending the request from the browser this browser is outside of the azure because it is my browser which is running in the local desktop so the moment i hit this i have given the ip so it can definitely send the request directly to the router

and that network packet is getting into the interface of load balancer and the load balancer is going to look for one of these two virtual machines because these two is part of the VMSS autoscale demo skill set. So that's the reason we are getting response from them. So basically, a request goes into the load balancer. Load balancer gives to one of these two network interface cards because it becomes the member of that VMSS. So, once this receives the request, for example, the second virtual mission, let me recognize this. So, basically, it is going to go to this interface, not this one. It will go to the private interface. And this private interface is going to look at port number 80 where NGIMX is running. and after that the nginx is going to receive the request in that quote so now nginx has received a request it is supposed to get the content of index.html to display back to the user that is us so what will it do now the actual system call will start until here we were only passing on

of a request from one network to another network. Once it reaches the network card of the virtual machine, it is going to give it to the operating system. So that's why I said now operating system call is happening. The moment the operating system call happens, it is going to give it to the CPU. Now, does CPU understand HTTP? Certainly not. CPU executes only machine instructions so the application operating system and libraries ultimately result in machine instructions being executed by the processor. Now once the processor receives we have seen that last week processor is going to give it to a process where it is going to fetch, decode, execute, and write. So what is fetch? CPU obtains the next instruction from the instruction stream. Decode, the processor determines what operation the instruction represents. Execute, the appropriate execution resources perform the operation. And finally, it is going to put the result back into the memory.

so now is nginx or the user request is going to retrieve the response from cpu no the application is given to cpu cpu processed it and then given the output to the memory now the application will take the information from the memory and then it is going to display to us in the form of index.html. Whichever starting point application we use, that is what is going to first respond back with. If that has sub-instructions, then that's where exactly we might have to wait until the application responds back to us. Maybe five minutes or something is the threshold set. so we can wait for 5 seconds and then observe yes this is getting inside a house that is what it confirms what is it getting inside of the house the request ok now the CPU has given it to memory and memory in memory the data is available which the application is going to pick how the CPU is going to confirm the request which is basically the internal request.

To that internal component, CPU is going to confirm that I have processed it successfully and the data is available in the memory at this memory address. Now the application is going to pick up and display on the screen. And that is what exactly it was doing when we were trying to access the load balancer IP or the IP address of the individual virtual machine. So the response is same. Now, how do we identify the CPU utilization? Actually, Azure portal is actually abstracting. Will I be able to see individual CPU utilization of the machines? Yes, we can. But before that, let us do one thing. Let us see the overall utilization. So overall utilization, if you look at it, this is what, in metrics, in VMSS autoscale demo, VMSS set, if I go to the monitoring, I could see the metrics. If I click the metrics, it is showing us the metrics. So there had been some CPU that has been consumed by this, and then it's been average 0.2% utilization.

okay when is this skill set is going to scale so now let me click on this skill set the vmss so here we do have information about scale so here in availability plus scale there's availability we have availability, we have scaling, size, and standby pool. What is a standby pool? Standby pool is nothing but what is the pool of servers it has. Currently, there are no servers attached to this pool. So this VMSS will not get any virtual machines from the standby pool. Now, from the availability perspective, I am into the VMSS. So, it is available in all the three availability zones of Central India region in Azure. Then let us look at the scaling. Scaling is a configuration. By default, it will have a manual scale. You create a virtual machine. You create a VM as a set, add one virtual machine to it as part of the entity and go to the scaling option. you will see that by default it is disabled manual scale now the custom scale

here it has been defined this vmss as a definition of custom auto scale wherein it is initial count is two how it is going to scale it is going to scale based on metric and what is the instance limits for this case the instance limit is basically minimum 2, maximum 5 and the default is 2 that means when you are going to start this VMSS it will start with a minimum of 2 virtual machines that is what we have seen but in case if the utilization of the CPU goes beyond 35% then we should be seeing new virtual machines coming on its own and once it has been understood on how to manage then probably we don't so coming back 2 minimum, 2 is the default and maximum 5 it can go so now we can also look at the details in terms of how we and see the information about that. So let me close this. Let us go into this VMSS. Let us go to the instances. It has two instances. Let me click the first one. And then, yes, we have the public IP. Now, I'm going to connect to this using a button.

That is a remote client. the only thing is it has an authorization for the credentials which i have saved in my laptop which i'm going to use vmss autoscale demo underscore key then i'm clicking on open it says accept yes accept so now as usual azure user is the name so now it is authenticating with the public key now it is authenticated okay cool now who am i you are azure now let me become sudo because i have the user password i will be able to change myself as root so here it was azure user now it is root at the rate of us so now depending on the vm and the virtualization environment some fields may be virtualized or not represented physical most exactly. So now, how are we going to understand? This is our, one of the virtual machines. So here, if it is a Ubuntu, if I give LSCPU, LSCPU is a Linux command. Now it is giving what is the description of the CPU. It belongs to x86 64. 32-bit cpu there are two cpus available online cpus file list is 0.1

and vendor id is so that means i have created the virtual machine aligning to our interest now this command also helps us to understand more about the cpu so when When the CPU reaches the threshold, then obviously we know that we are going to take off and go. Okay, cool. Still somebody is trying to join. Okay, perfect. No problem. It gives a trouble signing in. Am I audible, guys? Can one of you confirm? It says trouble joining in. Not sure. Can one of you give me a thumbs up so that I can understand that my screen is visible? Okay, thank you, Priyanka. Thank you so much. so let me minimize this people let me close this chat also let me close it close this and let me come back to the vmss screen so now auto scale demo instances there are two now i can actually look at the running processes also. Now let us see in this this is our one of the virtual machines belonging to the scale set. So let me clear the screen.

Then let me see. You can see the entire processes that are running in this system and how much is used to buy whom and cumulatively also we can get it by using the top command So basically, 127 tasks it has handled in total. One is still running, but there are good amount of free memory. Now if you look at this, the CPU utilization is 1 percent, memory utilization is 0.3 percent, and the command changes time to time depending upon which is using the CPU or memory the most. Let us come out of this. so now let us go back to our vmss so we can also monitor how can we monitor we can go back to this monitoring or i can go back to this i can go back to monitoring i can click on metrics this is basically the metrics of this first virtual machine what i want i want percentage cpu utilization so i'm just choosing percentage cpu now if you look at it sometime back it is doing something now i want to i want it to show only

for the last 30 minutes last 30 minutes means at around 86 there was some traffic with the The utilization was 2.4%. Where I'm getting it from? Here. So now, this will change as I move the... Currently, the utilization is at just about 0% of this. Now, I can also run a command and increase the CPU. But before that, let us look at the scaling information. Available, availability and scaling. Now here, availability zones, scaling. So nothing is available. So let me close here. Let me close this also. But let me go back to VMSS set. Where is my VMSS set? this is the one so let me close this also now I have this VMSS set I'm clicking here now I'm going to the monitoring now I'm asking for the metrics now it can show you the same CPU percentage CPU this percentage CPU is for the load balancer and let me ask for only last 30 minutes So this is for the load balancer. There is an average of CPU 1 and CPU 2 in two different virtual machines.

So that means there is some utilization by the CPU in the last 30 minutes. But how do I do that? And more information is about when I go back to the matrix, sorry, when I go back to scaling, here if you look at it customs auto scale which one vmss here it clearly says start with 2 go maximum up to 5 and then default is 2 so how many we have let us keep this here there are 2 virtual machines as of now so now I can also run I can also run But before that, when is it going to scale? Scale based on metric. So scale out, that means increase the number of instances up to five, one at a time, when the CPU goes around 60%. When it reaches 40%, I want it to come back to two number because 40% utilization itself is okay. So, beyond that, overall load balancer will get the load. So, always we will have lesser threshold for virtual machines and higher threshold for load balancers. So, we don't know how the auto-scaling happened, how the scale-out is happening, how the scale-in

is happening because at around 50% don't do anything just to bring back that is what bring back to the original state that's what it is mentioning here we have definitely created the auto scaling configuration so now if I go here and look at the scaling there is an option called run history so what is this run history will show run history will show this is for the past, let me put it for the last 6 of us it will show when and what has there has been 2 set of tests that was completed before coming into this session that's the reason you are seeing 2, 12 and rest of the thing are at 0 ok so can we generate CPU, yes we can generate CPU how can we generate CPU, we can actually use a tool called CH so that tool is available the server so do we have the tool, now I'm just going to execute a for loop the load balancer so now where do I do this? So he was quietly sometimes irritated and barely okay cool so now how do I increase the TPU utilization I can go back

to again operations go to run a command so I'm in the demo so let me go back to the instances and from one of the instances okay so now how do I do that? Let me go back to the run command. Where is the run command? It is part of the operations on a virtual mission. We can only execute in the virtual machine. So now let me go back, close this. Let me go back to this. Let me go back to the instances that are available. And then I'm going to open this instance. In operations, I can't run a command in this instance. so what is that I wanted to run I wanted to run a for loop in the Linux script so basically for i in 1 to 4 to s to dev null and then it's done so if I am going to run it for 4 cycles will it have any impact on them we are seeing the CPU we are seeing the CPU here So now, I can also ask for last 30 minutes. You can click here, show me only for last 30 minutes. So around, before the class, there was a small sky. But now, we are expecting a spike.

So let us wait. What happened to the run command? Let us go ahead and look at that. run command it has completed so now i can go here and i can also look at matrix matrix if i ask for percentage cpu it is available i'm going to do that i'm going to ask for 30 minutes so that you are able to see it appropriately so now you can see that it is slightly going up but this process is completed so that means it has successfully deleted all the computer parts okay cool anything else from anyone so now we know that we have run the program did we see the cpu utilization we can do that as well now before getting into the individual thing let me refresh so you can see here that this is the peak only point three percent it has gone down gone up now instead of running for a shorter period of time what if we run directly so basically operations let me run a command let me run that now let me increase the cycle let me make it as 100 and then i will run it

So now if I go back to my console, which I have logged in from my desktop, I can ask for, sorry, we need to tell what we want to grab, so what am I doing? sorry guys there are no yeses running this is coming only because we have asked for it so if I am not gripping then what is happening it is going to list all the processes in this our program is not run now let me go back to the virtual machine now instead of 100 let me make it as 300 and then let's edit it now we can go back here now we can also look at scaling or we can also look at the individual machines and its utilization it is healthy now let us go back to the prompt and see what happened it has come back so that means whatever corrections need to be done within this 45 minutes it has been completed and we have a sheet for review that's the communication you have a seat for review and then you can share this sheet now we have run the command should azure scroll the scale show the scale immediately no it will not show the scale

immediately so what it will do is it is going to basically use the energy at that so now let us connect this back to load balancer we did that now let us go ahead and close this this is also let me minimize this we have seen so this is what exactly we performed then we understood how to perform any queries, any questions, please raise your hand more than happy to respond so now we had this we have taken this lab we will be doing this lab in the next week I'm just going to minimize this as well now let us go back here to the vmss again now let let us go ahead and see the metrics and what is it we want we want percentage cpu and let us look for only last 30 minutes currently it is 8 39 india time so we do have here the last 30 minutes so 8.30 there is no spike we are seeing the CPU of the load balancer so that means this is average, that is what we have asked percentage of CPU in average it was 0.2750 percentage at

8.33 but the moment you go ahead and see at 8.34 the average is 3.8 percent and here it has reached up to 25 percent cpu utilization of 45 percent now let us go ahead and close this then let us click on the instances let me refresh there are only two okay now let me go ahead and actually increase the number let me go ahead and run this same command not with 100 or 300 but this time we are going to put it as 4 after now let me run this this will take a little bit more time because i have asked for four times of cycle 400 request so once it is done it will show the output actually script execution in progress now let us go back here let us see there is a standard error standard output so now here i'm just going to go to monitoring click on metrics so it says that which metrics you want Let me click on percentage CPU. I'm choosing the percentage CPU. Now you can see here it has gone up to 40% at 837 PM.

So now how many instances we have? We have only two instances. The moment it breaches the 60%, that's what I have given. The moment it breaches the 60%, we should see. One more that is coming here. Now, let us go back to that server where we are running this. So, I hope you are able to see my screen. The console. Now I can ask PS-EF. Show me all the processes with this. Nothing. So, that means it has completed its running. so now i can go ahead and refresh and see we will be able to see but at the same time this is something we ran in the virtual machine one at the same time what is the utilization of virtual machine two let's ask for cpu percentage cpu so now you can see let me ask for last 30 minutes so that there is no confusion so now you can see it is hovering around 0.25 2.4 how much was the CPU of VM1 we saw it was at 40% now we are directly putting across the workload into this so it is not getting distributed what if if we put the workload from an external world basically that is

from my system now from my system i can always have the ci utility installed and i can use the ci ci is basically going to put pressure onto the system especially on cpu so we'll be able to take a better call so now what i'm trying to do here is let me give concurrent users 20 and run it for one minute where we want to hit we wanted to hit this url which is our load balancer so from the external world we are hitting the load balancer it is not giving any error it is giving parallelly 20 user request and it will probably run for one month. So now still it is going on. The meantime, let us go ahead and see what is the status of the CQ. So let me go back. Let me click this. Let me click here. Let us go back to the monitoring. Look at the metrics. See, I have not saved it, so that's the reason I had to give it again and again. so if you save all these configurations then you don't have to so now let me ask for only 30 minutes

so that there is a granularity so now you can see it was at 0.2750 25 percent and then it went up to 44 percent this is the scale set including both virtual machines and at the peak it has reached 50.04 now let us go here and then let us click on the overview so let me close this okay let me click here and let me click on the overview what is happening it has gone to the compute infrastructure so let me go back here vm clsets let me click on the overview i still have it here so instances four to five if i click on the virtual machines Now you can see there are five machines running. Why? Because it has breached the CPU utilization level. And what we had is only these two, 4.240, 91.58, and 107.4. Sorry, 107.4. How do we know? I can just check here HTTP. we have 9158 and 107.4 we have used now we have how many we have five the moment it has come down is it going to let me click here it is responding the moment it goes down to the zero percent at

this point of time is it going to scale down scale down is not immediate even scale up also is not immediate we have defined a time for scale down two minutes for scale up two minutes it has to wait if for continuous two minutes if there is a stress on the system then only either of the one will be able to make it so now again let me refresh this you ask for last 30 minutes now you can see that it is moving dot by dot there are no right we saw like five virtual machines so these five virtual machines eventually will become two virtual machines and which two are going to go we don't which two are going to get retained we don't know probably azure can remove these three once after the waiting period probably these two might be continuing to run though these two are the oldest got created at the tag the first so now we need to decide whether we want to go with this whether we want to go with this or whether we want to go

with this it depends on your choice okay cool so let me refresh this what is the refresh i have the refresh button here till I have five. So it will become two after five minutes. I think the waiting period I have given is five minutes. So after five minutes, you will see only two out of these five instances are. Now, when we go back here, okay, this also has the same thing. So let me go back here i can click here i can go to the monitoring can look at the metrics now let me put it as percentage cpu for the last 30 minutes i don't want beyond that so now it has come back to zero when at 8 8 pm that means until then there was some processing was happening so we can see here so now do we have no we don't have let me clear the screen so that there is no confusion so i can also look for the process names yes hyphen ef and i can say grab yes there's nothing s is not running as of now okay so we don't have that now what i'm going to do is

instead of giving request from this i'm going to give a request from mine i'm going to use an external tool ch instead of giving 20 counts let me give 50 counts and let me extend it for two minutes. Now, this is working out. So, now, is all the five responding back? Actually not. How do we know? Only two are responding. How do we know that? Let us go ahead and check in our first window what is happening let me click here so now in this how many virtual machines i have let me click on the instances all the five is there all the five are in the running status. Now these two were with us before. Now let us see it is unhealthy. Why is it unhealthy? Because NGINX is not running. So that means the load balancer is not going to send the request to this virtual machine even though it has started. So now what is the problem? What could be the problem? The problem is NGINX is not running. This is a new virtual machine created by the auto-scaling component.

But the auto-scale did not install NGINX, so it is unable. Okay. So will I be able to install NGINX in this? Yes, we will be able to. Again, I can go back to the operations. I can go to run command. the command will be run here so just apt get i'll just say just update hyphen y run this is running in the meantime just see here there are five it is let me refresh now it is four one machine has been scaled down because the memory sorry, CPU utilization has come down we are able to see this happening scale up and scale down now this says that script is getting executed now it is getting the packages this machine is still there that's the reason it is running the moment if this is removed from scale set this also will go for sure so are there any standard error no there are no standard error let me close here now let me go back to the overview it still says unhealthy but let me copy this and let me give it here http let me give this idea but it's not happening so now probably

it is not installed successfully or it has not started the service so many admits okay let me admit okay so this is this is how it is going to increase it is going to decrease let me stop sharing for now after sometime if you see it would have come back to two virtual missions because there is no load on the cpu so now let me pause here i just stopped i just stopped screen is not visible i have stopped sharing just now but why you say screen was not visible it's 20 minutes but for me it was showing sharing the PPT oops what PPT, which PPT oh FCS oh okay sorry guys sorry, sorry I stopped, I understood okay I should have at least allowed your hands up, there are 19 plus hands up, which I did not do fine, I will share it again and I will redo no worries I will definitely do that one moderator please yes we will do that whoever is willing to be the moderator can you please who's going to be the moderator first let me just probably

who's willing to be the moderator just say yes okay cool let me actually lower hand of everybody sorry guys i did not notice i was just totally into the session so i'm really sorry for that okay so first let me see so all your if all of you have raised your hand for to communicate this can you please lower your hands who have raised hands only for please basically lower your hand so that we will get back to the normal situation alright I need to lower the hand one by one okay let me lower the hand of everybody now whoever is I'll repeat don't worry I'll repeat we will not mention anything we will not miss anything don't worry Suhoor wanted to ask questions only those of you please raise your hand Shavit Kumar I'm allowing your mic Sir I have many of questions like why we use Nginx and what's the problem it solved? Sorry, I didn't get you. Why we use Nginx and what problem it solved? No, Nginx, we are just using it as a web application

to perform our operations. It did not solve any problem. But in case if you are trying to access the virtual machine on port 80, and if there are no application is running, then the monitoring will say there are no application is running in the form of saying unhealthy if there is an application running on port 80 then the monitoring will say it is healthy that is what I demonstrated by stopping the NGINX and starting the NGINX again so there is any other tool or service similar like NGINX similar to NGINX you are asking about that yes yes Yeah, you can run your own application. There are so many available. It is just one of the web services available. You can run Apache. You can run Tomcat Apache also. Not just NGINX. There are so many web services available. You can run any. If it is a Windows server, Internet information server will be running at port 80. And that will load your index.html. anything that is going to serve you as a web service you can use

okay sir okay cool so today class you can only share the virtual machines work and configuration of cpus etc right sorry today's lecture you only share the virtual machines work their configuration and cpus if you are going to have a pool of virtual machines providing service to web service using a load balancer till we will be able to identify the cpu utilization what process is running and how that is the objective of today's lecture okay fair enough what i'm doing is basically from my own account so I will pay, but you will get a free account for $200. Rohit, I allowed your mic. Yes, sir. And happy teachers did you. Sir, I have the question regarding the Nginx only. So, you said that we need that. So, what's the role of it and why it became... No, hold on. Nginx is a web server. Instead of NGINX, you can use any web server, whatever you want. That is what I told Shobit also. You can run even Apache. You run Apache 2, it will listen on port number 80,

and then it will show up the page, whatever page you are having in the index.html. You can use any web server. Yeah, right. But I'm just trying to understand the relation that it has to show the VM as unhealthy. That's the reason. Suppose if that virtual machine is supposed to run web server, and if web server is not running, because I am monitoring that virtual machine skill set. Suppose if there are five virtual machines running in that load balancer VMSS, then all the FI is getting monitored. If any of the virtual machine is not running the web server, it can stop running the web server for n number of reasons. So probably the application itself is stopped responding. So when it is monitoring, it will tell that this particular server is not running web service. So the load balancer will not give any request to that virtual machine anymore. That virtual machine is just running, but it is not serving. So how we will get to know by the monitoring status, LDR and LD.

Okay. So it's mostly related to the load balancer. And if we create a standalone machine, so in that case, the Nginx would not be required. Anywhere you wanted to run a web server, you need a web service application. I have just taken a sample application of NGIMX. I could have installed Tomcat also. Even if it is an individual server, you need an application to run on port number 80, right? Without that, you cannot make it as a web service. Am I right? yeah right right so so it requires a web server okay okay so i was just asking in the context of like a plain machine that we we first configure uh like definitely will be using for the application uh but the foremost thing that like it's it is like the same machine that we have like the laptop we have okay the configuration is it's uh the same uh it's only the thing that we have an extra web service that is running on top of it. But that actually created the confusion.

So why actually? So I was just trying to relate why it became unhealthy in that case. Because the application in that port was not running. That's why it became unhealthy. And the other thing is a couple of commands like the shell script that you have run. So we would be doing the same in our lab. I just wanted to understand what exactly those commands are doing in the background. Those are all operating system commands. Those are all Linux commands. For example, systemctl is a very basic command that every one of us should know to check if a particular service is running or not. For that purpose, I used a systemctl command. I asked a systemctl to find the status of ng-inx. It said it is running. Yeah, there was one command that you used as an echo wherein you changed the messaging for the instances. I just replaced the content of index.html. I can manually open that file and I can type and I can replace also.

But I just used the echo command. Echo command is basically a command that will display the content on the screen. But what I did is I used a pipe character and I just redirected it to the index.html. So instead of showing on the screen, just go ahead and write in the file. That's all I did. It's all basic operating system commands. Okay. Thank you, sir. That would be all. That's right. Echo is like a print. That is correct. Cool. So, Varun, Sir, first of all, good evening and happy Teacher's Day. I have a couple of questions. Starting with, in the networking section, you were showing that load balancer is configured on top of the virtual machine instances. First question is, does every time we create a virtual machine scale set, this feature comes by default? or it is you have configured separately a separate load balancer in this case okay I have configured a load balancer that is why the VMSS got exposed to the external

world if you do not configure a load balancer for the VMSS then that will not be available you cannot access it from the external world so generally we do if you want to expose the application we generally create a load balancer and assign it to the VMs second thing sir on the networking section of this instances of virtual machine scale set they were taking the IP from the same VNet or same subnet the load balancer also need to be the part of same subnet or VNet or it can be no all of them are all of them are external IP addresses Just for our understanding, I have given external IP addresses for all the machines. But generally, the virtual machines will not have external IP. The only load balancer will have external IP. The virtual machines, whenever it is created by the VMSS, it will have only internal IP. We will not give external IP. okay and they have to be part of same subnet or same vnet because uh somehow how the the the

the azure or the provider will know that based on your configuration if it has to scale up a new instance um it it needs some where to scale up right yeah yeah see when i am creating the vmss i showed you that i have chosen the location as central india yes so that means it is in the central india region and i also shown you the availability zones in which it has to run so basically three availability zones i have chosen so initially i am running two virtual machines so it will create two virtual machines in central india region it could be availability zone one two or three that is up to it now when the additional machine comes virtual machine comes it will also get created in the central India region only because I have defined it to be central India region and on the networking part means one is region another is network correct so how it select the if I am telling that it has to run only in the central india region then i am running in a vnet right virtual private cloud in my virtual private

cloud i'm running that is what i showed you it is running in my subscription so my subscription will have a default vnet if i have not created a specific vnet so it is running in my vnet So my VNet will have its own IP address, CIDR defined. So it will take the IP address from the defined CIDR of the VNet. And suppose if I'm creating in some other region, then it will have some other CIDR and it will take the IP address from there. Okay, clear enough, sir. One more question, which is a subsidiary of this one. I see all of those virtual machine instances was allocated to zone one. It is because of a configuration that we have done or it has a default behavior of a virtual machine skill set that it always take a specific zone? No, no. It will take only the specific region. Zone will be decided by the region. We will not be able to decide. But if you select only one zone, then everything will go into that zone.

I have selected in 3 zones it would have got split into 3 different zones ok so it's it's something that provider automatically decides where to put it we can't control it yeah that is right so Aryaman actually I have set the threshold at 40% so the moment it crossed 40 it started spiking, adding more virtual machines. Until it did not come down, it started adding one by one. It went up to five. Maximum is five. Even if it is not coming down, it will still run only five. It will not bring the sixth one. Because maximum instances, I have defined as five. Hope that answers. Yeah, go ahead. Okay, that's again thanks and after that if you reach the maximum most probably all the requests will get queued up or maybe dismissed no it will be served it will be served by all the 5 and suppose if you find that 5 is not sufficient then you should go ahead and reconfigure the scale up okay go ahead and use 10 instances that is the only modification you have to do immediately

it will start using increasing up to 10. So what we have configured only it is honoring. So if we have wrongly configured okay 5 and if it is not sufficient in the peak period then you increase that 5 to 7 or 10 or 20 whatever is appropriate. Okay sir. Two more questions. Just I will closely close it after this. One is when you are sharing a screen you i saw in one of the screen there was an orchestration trend set to flexible i don't know what does it mean if you can give little detail about this okay orchestration this is related to the monitoring the orchestration uh basically when the vmss the scale set is going to increase the number of virtual machines, how it has to orchestrate. You can say orchestration fixed or orchestration flexible. If you say fixed, then it will be very much fixed to that particular zone or particular region only. If you give flexible, suppose if you are having two different VMSs, I'm just giving you a

different scenario. One in Central India, another one is in South India. Now, these two VMSs can be part of a single load balancer. That means one load balancer will receive your request and that load balancer can send it to VMSs1 or VMSs2. VMSs1 is in Central India, VMSs2 is in South India. Now, you are reaching the peak, the threshold. You are crossing the 50%. Now, where this additional virtual machine needs to be added, whether it is in 0 or 1, that orchestration is flexible. If you say fixed, then it will do only in one EMS. Clear enough. Last question from my side, sir. In the load balancer, one of the statements you said that the CPU on the overall virtual machine scale set page was a CPU of load balancer. And then for each instance, there was a separate CPU per virtual machine instance. So that is a CPU of a load balancer or average of the both instances, the CPU. Okay, if you are looking at the VMSS CPU utilization,

then it is an average of all the virtual machines under VMSS. In our case, average of the two. If you are looking at the virtual machine CPU utilization, then it is only for that specific instance. Thank you. I don't have any other questions. Thank you so much. This is the third lab or the first lab, sir? We are doing this one. how can i get the third session you can see the recordings okay thank you okay cool so quickly i'm just seeing at the thing was there any assignments earlier if yes please share no we did not have anything uh and uh there were only a verbal assignments that had given but that is not assignments as such in double quote someone was asking about you know what is the assignment for the next week I think you are speaking about the one which is going to go into the portal whatever we have covered in the last two or three sessions based on that only assignments would be there which I will be uploading before

Monday so it should be available to you for your thing whatever we covered the subjects we have covered that will be part of the assignments both theory and practical both theory and lab both the sessions it will be included why are we using 40% CPU threshold in this lab otherwise like I will not be able to generate the load If I give 70% in production, yes, it will be 70%, 80%, 65%. Why a lower threshold? Because I will not be able to give a threshold of traffic of so much so that it will reach 70%. That's why I kept it at the lower thing. Also, does Azure Alert Manager trigger the scaling action? Yes. Does Azure AutoScale trigger it directly? Yes. it is triggered by it directly okay if we refer the documents that will be enough for assignment yes that should be sufficient okay so it's going to be 970 keep your hands raised no problem both theory and lab everything in assignment that is right so let's take a quick break

of 5 minutes Will I be able to pause recording? I think that feature is not available. So I'm just going to leave the recording as is, but I will be running a timer just for our... What is that? Because I couldn't get it. Can we do auto-skilling in AWS? Yes, you can do. but just to if you are less aware then I think just get to know it is an opportunity for you so okay guys so now let us take a quick break of 5 minutes and we will be back I'm going to share a timer and that's going to indicate how much time we have here it is we start the timer hi guys I'm back am I audible I don't know if you give me a thumbs up. Okay, great. Thank you, Satya. So, Satya, would you be the moderator for the rest of the 20 minutes? I will allow your mic. Hope you are there until the end of the session. In case if you are logging off in between, please let me know, Satya. Are we good? Is your mic working? Can you just say hello? Because if your mic is not working, then you will not be able to even tell me.

Yes, Sathya. Hi, sir. Am I on my side? Yeah, you are audible. You are good. I should be, sir. Okay. Do we need to use our IIT Patna email ID to create student accounts on platforms? Yes, you will get. No, our recording is on. Thank you very much, Om. Azure provides $200. Yes, that's right. If you are using IIT Patna ID. Okay, cool. So quickly, let me just repeat, since sharing was not available. So let me share my screen. Let me know when you are able to see the Azure console. I'm just changing back. Where is that? Let me open it from here only. Not this. This is the one. Yes, it is. Are we good? So hopefully you are able to see my Autoscale demo, VMSS. I'm going to the instances. We had five. Now you can see it has come back to, because there were no load into the system. Now I'm going to the first one. It is saying unhealthy. It is having some 20.series IP address. It is saying unhealthy because it is not running the web service how can i get the web service running by just installing the application

how can i run the application i'm going to run a script a small script which will install it i'm running here so the moment i run basically what i am running here i'm updating the the editing system, installing NGINX, overwriting the index.html file with response from VMSS instance, instead of having a default web page, then enabling and restarting the NGINX. So the five commands it will run, setup is still script execution is in progress. Once it has completed, it will come here. The output will show that it has completed the execution. Once it has completed the execution, yeah, it has completed the execution. It started the services also. Now let me close this screen. Let me go to the overview of this particular. Let me take the IP address of this. And now 52.53, it is the same IP address. It said site is not reachable. I'm going to, now I'm getting a response from BMSS instance. Similarly, what I'm going to do is I'm just going to go to the second VM.

It shows unhealthy. No problem. I will go ahead and install the web server. So I copied the IP address. That's my bad. So now let me run the script. the moment it completes running the script again we will be going and checking if the service is running. If both the virtual missions are healthy then if you are going to hit the VMSS load balancer then it will give the request to one of the two virtual missions that is running. So hope you are able to see my screen. Let us wait for the output. May take another 10-12 seconds to complete. Once it is completed, we are going to check whether that individual virtual machine is also responding to our request or not. Yes, it has completed. So earlier, it was unhealthy. That means it is not going to respond. still it is showing an LD but this will change in the next ping. The frequency of the ping I have given five minutes so in the next five minutes it will change as LD. Now instead of this IP address

I'm going to give the second machine's IP address and access it directly that is also responding with vmss instance perfectly fine now let me add row load to this how am i going to add load before adding the load now let us go ahead and this i'm in the vmss scale set i'm going into the monitoring i'm going into the metrics i'm asking for percentage of the cpu and show me only for last see we are seeing the previous spikes show only for the last 30 minutes apply there is only one spike and this spike has happened around 9 27 pm this is when it has actually started the web service and the load is only four percent if you bring here if you look at the load load is 3.9650 so the percentage of this has become three point point three point sorry three point five five percent or you can say point three five five five percent that is the average of both now let me go ahead and give a load how i can give the load

i can go ahead i can are you able to see my console yes yes so i'm going i can give a load from the external world this is basically from my laptop i am reaching out to my load balancer and i'm giving a request 50 users concurrently give continuously for two minutes if the load is high we will get an error message now are we getting any error message So we are not getting any error message. Let it go for two minutes. And this is not a high load. The utilization may go up to 15% or something like that. Now let me minimize this load I have started giving. Now let me minimize this. Let me come back here. And then let me go back to the metrics. And here let me ask for percentage. of cpu and for the last 30 minutes only so now we saw earlier we had at 4 this is the one we saw now i gave a request from the external world it has gone spike up to eight percent this is the spike from both the server because i am looking at the vmss autoscale demo vmss

so now this is average of both now it has actually started coming down that means my load also has started coming down almost coming to the end so now let me i can refresh now i can see now the load is only at 0.2150 percentage that is the average but instead If I give a higher load, how can I give a higher load? I can run a loop. Instead of just giving a HTTP request, if I am going to run a load with a loop, then it will put a lot of pressure into the systems. Let me go ahead and run that loop now. Just give me a minute. okay not copying just give a minute guys why is it not then i have to manually type it uh that's what i'm going to do in the end but okay copy yes it is copying okay now let me give a higher load how can i give i can go ahead and give it from one of the servers i'll go to the i'll close this i'll go here i'll go to the this one i'll click on the instances i'm getting one of the instance i'll go to operations run command i want to execute a

linux script here i'll give you the for loop let me give up to 400 now let me run now this is running let it run in the background now let me refresh this this was old screen now we have only two so now i will go back to the vmss i will click here i will go to monitoring i will go to metrics i will ask for cpu percentage show me for the last 30 minutes only so now you can see that it is increasing slowly it is increasing this went up to eight percent but when this completes for 400 cycles we can expect this to go beyond 40 percent when it reaches beyond 40 percent at that point of time we are going to see more virtual missions coming up so let us just wait let me refresh oops it's only at 1.2 percent oh it has come down so what has happened so it's completed 1 to 400 let me give it as a higher number let me give the load now and let us see what happens let us refresh now it is 9 35 the next thing we should see a spike

is it running yes it is still running now let us come back here let me refresh it is still at 9 34 data has not reached but in the meantime let us go back here is it enable succeeded why should run for a longer period of time last time it worked okay fair enough now let me go back to the instances we still have because it has not exceeded so let us see when it stops I give on 4000 something is wrong with this loop yes yes yes okay fine now let me ask for the process whether it is running or not no it is not running that is a problem not sure why is it not running successfully because it should not come out so fast let me get this script again let me run, okay, only one is running that's the problem, now let me run this whether I give 4,000, it is running for the same period of time I guess, that's why it's not getting into the pike. 34, let me refresh. Yeah. Now you can see it has gone up to 50%. When it has gone up to 50%,

it has reached the threshold of 40%. We should have had more instances. It's still going back to only. oops let me make it as 40 000 and then run it let us come here let me click here let me close this let me close this let me come back to virtual machines now we can see it has created the third virtual machine is the script still running script is successful it has come out now let me refresh the utilization it has reached up to like you can see 92.51 percent at here it was only 25 percent now it has reached a 92.5 percent now if i go ahead and see how many virtual machines i have now it is three let me refresh okay it has not gone beyond three so it is supposed to create four and five not sure supposed to be kicked off by the vmss only and this is what exactly i was showing for like 25 minutes that we lost the recording now when this comes down below 30 percent that is the threshold i had given we will see one of these virtual missions

will be removed by the VMSS. So, utilization based on CPU with a threshold, VMSS will be automatically be able to increase or decrease the number of instances. Decreasing the number of instances we saw after the break. Before the break, there were five instances. after the break when we came back there were only two instances running. Now there are three. Probably after five minutes we will not see the third one. One out of these three will go off. Only two out of these three will be running. This is what exactly, you know, in crux I showed you in the last 15 minutes, this is what we were seeing in the first 25 minutes. let me stop sharing just repeating 20 minute session that was lost by us that is right because that was my mistake so bear with me so the first and foremost thing I do see a couple of you are still raising your hands so let me just allow Prashant I have allowed your mic quickly Prashant let us not take more time

hey good evening so my question is regarding the CPU utilization and monitoring thing so it may be like we are not discussed today but I just want to know like what is like CPU throttling if we are like if you can what is that cpu throttling cpu throttling or okay basically basically the far loop what i had given initially i gave four then i increased it to 40 then i increased to 400 finally 4000 so that means so many requests is going to go simultaneously hit the load balancer If it hits the load balancer, it will give it to the virtual machine. Virtual machine, where the application is running, application will receive, and after that, it has to be processed, right? So if there are four requests, then it will be processed by the CPU as four requests only. If it is 4,000, that means throttling has gone from 4 to 4,000. Still, our CPU will be able to manage. in case if cpu is not able to manage additional virtual machine will give additional cpu

that is the concept okay okay got it so means if we uh rapidly increase on the load of the cpu it will uh request the cpu usage or like that cpu cpu usage we will be able to monitor Okay, let me give you this analogy. We have an expressway. It is four lanes, one way. Eight lanes are there. All the four ways going towards Delhi, four ways is going towards Gurgaon. It's a Gurgaon-Delhi highway. Now, four lanes can be occupied by four cars. now fifth car if it comes then it has to follow the next that means Q they can't overtake now all the four lanes will go in different speed also so if there are 400 cars then it is the same lane only they have to use only four lanes am I right now if all these 400 cars go and hit the toll then what happens toll they have like 8 lanes 16 lanes right only at the toll point and then again they come and merge with 4 lanes why they are having more there because it will take some 10-15 seconds for each car to get

detected, paid and allowed, am I right that 15 seconds delay they have made so many counters now not only that suppose if this four lanes is not sufficient for the 400 cars to go, we will not be able to physically make another lane for towards Delhi. Am I right? Yes. Now, if you have an opportunity to get another two lanes, will you get it or not? Yes. That is what exactly the CPU, this virtual machine, this skill set is doing. What skill set is doing, okay, the CPU utilization is 60%, now if it goes beyond 80%, then system will hang. I don't want system to hang. So it will add one more virtual machine. That means that virtual machine will have one more CPU. It will also handle the traffic. So it will get split. If it is still not coming down below 60 percent one more it will handle now how many it can add like this the maximum we gave was five okay so it can add up to five additional lanes so four plus five nine lanes are there cars

can go correct correct that's what exactly it was throttling means a number of cars coming into the Okay. Okay. Thank you. Okay, cool. Thank you. I'll take one more question. So Priyanka, Priyanka Srinivas. Hello, sir. Good evening. Happy teacher's day, sir. Sir, I wanted to know that how to start with this lab because I'm new to IT domain and I am an electronics and telecommunication engineer. So this is quite difficult for me to understand. So what do I start with? First, you create a free tier account. You can create a free tier account in all the three together. All you require is one email ID. Use IIT Patna's email ID. Why to use IIT Patna's email ID? Because you will get a $200 free account. that means the resources what you are using will be charged against that $200 and you will not be charged you can create in parallel using an IIT Patna email ID you can create one in AWS, one in Azure and one in GCP

but in addition to the email ID you also require a credit or debit card so maybe $100 earlier it used to be Earlier, in initial days, it used to be $300. Now they might have reduced. Maybe, possible. Even $100 is $100. You saw once, virtual machine, if you are running, it charges you only $37 a month. So if you are going to use it for two months, you know what are all things you can use. Okay, sir. So you don't have to pay. It will only deduct two rupees. and that 2 rupees also it will give it back to you after a day and it will credit 100 dollars to your account whatever is the conversion rate you will see if it is 100 dollars you will see some 92,000 balance in your account how to create the free tier account I will upload a document in the model for all the three step by step process I will give you So that you can create one. Okay, so sure. I think I'm answering even the questions coming from the chat as well. Yeah, I'll do that.

At the end of the day, these sessions, to be very honest, I'm done with my career. So it's all for you guys. So it should be useful for you guys. And that's the reason I'm a little bit deviating from the basics. so perfect if it is helpful I am more than happy ok guys we are already 9.50 we have crossed 20 minutes more I know there are 6 more guys who have raised their hands I will take your questions in our next session next Saturday at 7.30pm but we will connect for the theory sessions tomorrow at 7.30 in the evening sorry 2 p.m in the afternoon thank you very much take care bye bye guys

