简体   繁体   中英

Do webjobs get redistributed on adding new VMs due to autoscaling?

There are 5 webjobs running on 2 VMs. 3rd VM is added after sometime because of auto scaling. Are the webjobs redistributed across VMs? If webjobs are not redistributed what is the point of adding another VM if it will remain idle?

@vignesh, By default, WebJobs scale with their associated Azure Web Apps instance. If a continuous job is set as singleton (set to =true), it'll run only on a single instance opposed to running on all instances.

On an App Service Plan (ASP), when the app runs, it runs on all the VM instances configured in the ASP. If multiple apps are in the same App Service plan, they all share the same VM instances. If you have multiple deployment slots for an app, all deployment slots also run on the same VM instances. If you enable diagnostic logs, perform backups, or run WebJobs , they also use CPU cycles and memory on these VM instances. See this doc.

I noticed you'd a related question on Microsoft Q&A.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM