Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Autoscale Restarts Running Instances

I've been using Autoscale to shift between 2 and 1 instances of a cloud service in a bid to reduce costs. This mostly works except that from time to time (not sure what the pattern seems to be here), the act of scaling up (1->2) causes both instances to recycle, generating a service outage for users.

Assuming nothing fancy is going on in RoleEntry in response to topology changes, why would scaling from 1->2 restart the already running instance?

Additional notes:

  • It's clear both instances are recycling by looking at the Instances tab in Management Portal. Outage can also be confirmed by hitting the public site.
  • It doesn't happen consistently but I'm not sure what the pattern is. It feels like when the 1-instance configuration has been running for multiple days, attempts to scale up recycle both. But if the 1-instance configuration has only been running for a few hours, you can scale up and down without outages.
  • The first instance always comes back much faster than the 2nd instance being introduced.
like image 461
Nariman Avatar asked Mar 07 '14 14:03

Nariman


People also ask

What are the key capabilities that autoscale provides Azure?

Azure Autoscale Concepts You can get data about resources, including CPU and memory usage, thread counts, disk usage, and queue length. Custom metrics—you can configure your applications to send custom metrics to Application Insights, a feature of Azure Monitor which provides Application Performance Management (APM).

Can Azure Monitor autoscale?

Azure Monitor autoscale provide a common set of autoscaling functionality for virtual machine scale sets, Azure App Service, and Azure Cloud Service. Scaling can be performed on a schedule, or based on a runtime metric, such as CPU or memory usage.

Which does auto scale control in Azure?

An Azure virtual machine scale set can automatically increase or decrease the number of VM instances that run your application. This automated and elastic behavior reduces the management overhead to monitor and optimize the performance of your application.

What are the two types of scaling on Azure?

Two main ways an application can scale include vertical scaling and horizontal scaling. Vertical scaling (scaling up) increases the capacity of a resource, for example, by using a larger virtual machine (VM) size. Horizontal scaling (scaling out) adds new instances of a resource, such as VMs or database replicas.


1 Answers

This has always been this way. When you have 1 server running and you go to 2+, the initial server is restarted. In order to have a full SLA, you need to have 2+ servers at all time.

like image 175
Igorek Avatar answered Sep 17 '22 13:09

Igorek