Windows Azure网站-获取实例标识符 [英] Windows Azure Websites - Get Instance Identifier
本文介绍了Windows Azure网站-获取实例标识符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在具有多个实例的Azure网站上确定响应的实例(某些ID或其他唯一信息)的一种可能方法是什么?
What's a possible way to determine on an Azure website with multiple instances what instance is responding (some ID or other piece of unique info)?
推荐答案
以下环境设置将具有运行当前请求的实例ID: WEBSITE_INSTANCE_ID .
The following environment setting will have the instance id the current request is running on: WEBSITE_INSTANCE_ID.
您还将在名为 ARRAffinity 的响应中以cookie的形式收到此ID.
You'll also receive this id as a cookie in the response named: ARRAffinity.
You can also use this information to get back to that specific instance, see: http://blog.amitapple.com/post/2014/03/access-specific-instance/ for more information about it.
这篇关于Windows Azure网站-获取实例标识符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文