VMSS scale set is duplicating search processes once scaled out

Olufemi Olaoye 20 Reputation points
2025-04-15T10:14:33.1433333+00:00

VMSS scale set is duplicating search processes that is being run by the application we deployed. For context, our application does social media platform searches and it was working fine when we first set up the VMSS. The main purpose for setting up the VMSS is to release burden on the CPU usage on a single VM. But this week, the searches are being duplicated once the VMSS scales out, costing us unnecessary tokens.

In essence, the additional instances created by the scale sets are duplicating the processes that had already been done by the Parent Instance (VM).

Please advise why VMSS is behaving this way.

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.
442 questions
{count} votes

Accepted answer
  1. Dharani Reguri 430 Reputation points Microsoft External Staff
    2025-04-16T13:00:00.5066667+00:00

    Hi Olufemi Olaoye,

    Thanks for joining the call.

    As discussed, when a VMSS scales out an instance, the new VM may not be aware of what exactly happened on the parent VM. There are Uniform and Flexible orchestration modes in the VMSS. In Uniform mode, the VMs are identical and are used for stateless workloads whereas Flexible mode VMs are ideal for stateful workloads and the VMSS does horizontal scaling. In horizontal scaling, VMSS increases the number of VMs, not their size.

    Please let me know if you have any questions.

    If it was helpful, please click "Upvote" on this post and "Accept" the answer.

    User's image

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

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.