简体   繁体   中英

Azure worker role - prevent recycling

I'm trying something a little weird with the azure cloud service technology. I want to use the autoscaling for both up and down changes.

I'm going to have some instances that are "In Use" though.

Is there any way in a cloud service to either: Mark an instance as non-recyclable or Abort the teardown of an instance in the WorkerRole.OnStop method

If not, what criteria does azure use to determine what gets recycled? Maybe I can keep the instance in a state where azure won't recycle it?

Thanks

See Azure Compute Service worker becomes "busy" following scale-up . In short, your role instances should not be recycling during scaling operations. If they are, then check the code in your Changing event per the link.

万一有人遇到这个问题,我可以使用比例尺集https://azure.microsoft.com/zh-cn/documentation/articles/virtual-machine-scale-sets-overview/

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