Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我像 2 个托管我的 Web 应用程序的 Azure 应用程序服务实例一样横向扩展。
现在,有 3 个实例运行相同的东西。
我需要知道每个实例返回的每个响应。
我怎么知道我正在调用哪个实例?
您可能正在寻找WEBSITE_INSTANCE_ID环境变量:
WEBSITE_INSTANCE_ID
代表站点运行的虚拟机的 id(如果站点在多个实例上运行,每个实例将具有不同的 id)。
来源。