VM SS scale in - Issue

Smita Mohapatra 41 Reputation points
2022-02-07T16:16:01.67+00:00

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 Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
392 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Manu Philip 18,166 Reputation points MVP
    2022-02-07T17:01:08.483+00:00

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

    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%.


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

    1 person found this answer helpful.
    0 comments No comments

  2. Andrew Sayman 0 Reputation points
    2024-09-25T21:04:33.8166667+00:00

    I would also like to do something like this. I don't want a VM to be deleted if is still doing work.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.