Azure Web Apps:如何直接通过URL访问特定实例? [英] Azure Web Apps : How to access specific instance directly via URL?

查看:117
本文介绍了Azure Web Apps:如何直接通过URL访问特定实例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已将Sitecore CMS部署到Azure Web Apps上,并且存在一些索引编制问题或类似问题.也就是说,更新的更改仅针对部分用户而不是全部用户反映.

We have deployed our Sitecore CMS on to Azure Web Apps and having some indexing issues or similar. i.e. the updated changes is reflected for some users and not for all.

我们将比例尺设置为2.

We have a scale turned on to 2.

我想通过直接通过URL访问实例1和2来进行故障排除,以确保两个实例都已建立100%的索引.

I would like to troubleshoot by accessing the instance 1 and 2 directly via URL to make sure both instances have index built 100%.

如何直接通过URL访问每个Azure Web Role实例?

How do I access each Azure Web Role instances directly via URL?

谢谢.

推荐答案

第一步是获取实例名称列表.有一个适用于它的Azure API,您可以使用Resource Explorer( https://resources.azure.com/).使用以下步骤:

The first step is to get the list of instance names. There is an Azure API for it, which you can easily invoke using Resource Explorer (https://resources.azure.com/). Use these steps:

  • 在资源浏览器中,找到您的Web应用程序(在树中或使用搜索框)
  • 在应用程序下,单击实例",这将为您提供一系列实例.每个实例都有一个长名称,例如622e6b27f9077701f23789e5e512844d22a7dfdd29261bc226f65cd000e2d94a

一旦有了实例名称,就可以通过将ARRAffinity cookie设置为该值,在请求中添加一个cookie来针对特定实例.例如

Once you have the instance names, you can add a cookie in your requests to aim at a specific instance by setting the ARRAffinity cookie to that value. e.g.

ARRAffinity=622e6b27f9077701f23789e5e512844d22a7dfdd29261bc226f65cd000e2d94a

您可以使用curl之类的工具来执行此操作.或者我想使用EditThisCookie Chrome扩展程序(链接),可以从浏览器进行设置.

You can do it using a tool like curl. Or I like to use the EditThisCookie Chrome extension (link), which lets you set it from the browser.

实际上,您会发现从浏览器正常访问页面后,您已经获得了ARRAffinity,因为它用于会话粘性.但是,Chrome扩展程序可让您对其进行更改并针对其他实例.

In fact, you'll find that after hitting the page normally from the browser, you'll already get an ARRAffinity, as it's used for session stickiness. But the Chrome extension lets you change it and aim at other instances.

另请参阅相关博客文章: http://blog.amitapple .com/post/2014/03/access-specific-instance/

See also related blog post: http://blog.amitapple.com/post/2014/03/access-specific-instance/

这篇关于Azure Web Apps:如何直接通过URL访问特定实例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆