gpt4 book ai didi

Azure 云服务 - VIP 交换是否会导致调用 OnStop()?

转载 作者:行者123 更新时间:2023-12-04 17:51:35 32 4
gpt4 key购买 nike

我有一个带有 Web 和辅助角色的 Azure 云服务。当 Azure 云服务停止时,将调用 OnStop() 方法。

在 VIP 交换中,一旦请求 VIP 交换,它是否会立即在传出服务部署上调用相同的 OnStop() 方法? http://msdn.microsoft.com/en-us/library/microsoft.windowsazure.serviceruntime.roleentrypoint.onstop.aspx

另外,VIP 交换期间的事件顺序是什么?据推测,新部署的工作线程 OnStart() 方法会在某个时刻运行,但这是否在传出部署的 OnStop() 之前运行?我试图了解两个辅助角色版本(传入和传出部署)是否会同时运行,或者辅助角色服务是否会出现短暂的间隙。

最佳答案

据我所知,当您执行 VIP 交换时,更改会发生在路由器/防火墙级别,而不是云服务级别。您的云服务继续运行,并且 OnStop() 事件不会触发。正如此处的文档中所述:http://msdn.microsoft.com/en-us/library/windowsazure/hh386336.aspx

When the service is promoted to production, the VIP and URL that were assigned to the production environment are assigned to the deployment that is currently in the staging environment, thus “promoting” the service to production. The VIP and URL assigned to the staging environment are assigned to the deployment that was in the production environment.

关于Azure 云服务 - VIP 交换是否会导致调用 OnStop()?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15334674/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com