Azure websites scaling issue

I am using an azure web solution with 20 websites. Hosting on 4 cores, standard 8 GB RAM. I would like to know how can I do scaling across Azure sites and when to do it?

Also I am reading some values ​​from the new portal. Can anyone please guide me to the values ​​I see here?

enter image description here

thank

+3


source to share


1 answer


Average

Avg% tells you, on average, how much of that resource is being used. So, if you have 8 GB of RAM and you typically use 66%, then you are using an average of 5.28 GB of RAM. The same applies to the average processor listed below.

For the bottom line, I have no idea.

You are not using most of the processor available to you here, but you are definitely using RAM. I'm not sure what kind of web application you are using, so to determine what might be causing this needs to be determined.

scaling

When it comes to scaling, I always suggest starting with a small machine and then gradually increasing it.

Based on your usage, I would ditch a machine that has fewer CPU cores but more available RAM. With the toolbar, you can see how to scale without clicking on your web app and then scrolling down. Go to the scale tab and it should look like below:

enter image description here

Now you can customize what you want to scale. The default is CPU Percentage , but this is not particularly useful in this case. Instead, select Schedule and Performance Rules and a new wioll panel will appear. On the right side, select Metric Name and find the Memory Percentage .



In your particular case, this is useful as we saw that your RAM is constantly being used.

enter image description here

Look in Action and you will want to Increment the counter and change the number of virtual machines to 1. What this does when your RAM reaches a certain usage% Azure will automatically scale up and create a new virtual machine for you. After cooling down period for 5 minutes (default shown below), your machine will return to 1 machine.

Conclusion

With these settings, every time your site uses <= (select your percentage) RAM, Azure will increase the size of your machines.

In your case, I suggest using fewer cores but more RAM.

Make sure you save your settings using the Save button .

Scott Hanselman as a great blog post on how to figure it all out.
+1


source







All Articles