当部署Azure的自动缩放本地工作,但不 [英] Azure Autoscaling works locally but not when deployed

查看:212
本文介绍了当部署Azure的自动缩放本地工作,但不的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题

我试图部署,这将自动缩放几个靶位点辅助角色。我能够在本地运行的自动配置器,它工作(我安装我的机器上的证书)。但是,一旦我将它部署到Azure作为一个云的应用程序不会自动缩放。 (但是,工人的作用正在运行,因为我可以看到我在同一个辅助角色工作的非自动缩放的过程。)

I am trying to deploy a worker role which will autoscale a few target sites. I am able to run the autoscaler locally and it works (I installed the certificates on my machine). However, it won't autoscale once I deploy it to Azure as a cloud app. (However, the worker role is running because I can see my non-autoscaling processes working in the same worker role.)

我试过

我按照部署自动配置功能应用块说明。

  • 添加了CN =的Windows Azure工具证书到目标订阅的管理证书。
  • 添加了CN =的Windows Azure工具证书到自动缩放应用程序的证书。
  • 指定我的证书中的辅助角色的位置

  • Added the "CN=Windows Azure Tools" certificate to the management certificates of the target subscription.
  • Added the "CN=Windows Azure Tools" certificate to the autoscaling application's certificates.
  • Specified the location of my cert in the worker role

  • 指定的证书的位置,在我服务店配置自动缩放

  • Specified the location of the cert in my service store for configuring autoscaling

    我在想什么?

    感谢

    推荐答案

    Tuzo是正确的 - 证书应在LOCALMACHINE,但是这还不够。见<一href=\"http://stackoverflow.com/questions/13757127/azure-worker-role-runs-on-osfamily-2-server-2008r2-but-fails-on-osfamily-3\">this SO帖子。基本上,在OS家庭2,WaWorkerHost下按角色的初始化过程中产生的临时帐户(具有一个GUID名称)上运行,该帐户有权限访问证书私钥;在OS家庭3,WaWorkerHost是网络服务下运行的帐户,该帐户不具有私钥访问权限。

    Tuzo is right - cert should be in LocalMachine, but that's not enough. See this SO post. Basically, in OS Family 2, WaWorkerHost is running under a temporary account (with a GUID name) generated by Role initialization process, this account has permission to access certificate private key; In OS Family 3, WaWorkerHost is running under "NETWORK SERVICE" account, this account doesn’t have private key access permission.

    现在(MS Azure团队在明年SDK解决问题)最好的办法是运行使用提升的权限角色 - 编辑ServiceDefinition.csdef中:

    Best option for now (MS Azure team addressing issue in next SDK) is to run the role with elevated privileges - edit ServiceDefinition.csdef:

    <?xml version="1.0" encoding="utf-8"?>
    <ServiceDefinition name="blah" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-10.1.8">
      <WorkerRole name="blah" vmsize="Small">
        <Runtime executionContext="elevated" />
        ...      
       </WorkerRole>
    </ServiceDefinition>
    

    这篇关于当部署Azure的自动缩放本地工作,但不的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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