question

SmitaMohapatra-2863 avatar image
0 Votes"
SmitaMohapatra-2863 asked ManuPhilip answered

VM SS scale in - Issue

Scale in Requirement:

It’s shutting down even if threads are running in that VM.
Example:-
suppose I have scaled out to 3 VMs and they are working on 3 messages.
Now I want to shut down a VM when it completes the message processing and CPU utilisation for that vm is 0.
But scale in policy is not supporting that..

VM1 - 90% CPU utilisation
VM2 - 10% CPU utilisation
VM3 - 90% CPU utilisation

VM ss should shutdown VM2. that much intelligence should be there.
But it has 3 scale in policy
1- Default (delete highest instance ID) --> It will delete VM3
2- NewestVM --> It will delete VM3
3- OldestVM --> It will delete VM1

It's not helping me in solving my scale in requirement. Any work around for the same??

azure-virtual-machines-scale-set
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ManuPhilip avatar image
1 Vote"
ManuPhilip answered

I think, you need to understand more on autoscoring concepts as listed in the following link
[autoscale-best-practices][1]

Note the following point, which covers the specific example you have in the question
All thresholds are calculated at an instance level. For example, "scale out by one instance when average CPU > 80% when instance count is 2", means scale-out when the average CPU across all instances is greater than 80%.
[1]: https://docs.microsoft.com/en-us/azure/azure-monitor/autoscale/autoscale-best-practices#autoscale-concepts



If the Answer is helpful, please click "Accept Answer" and upvote it

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.