简体   繁体   English

Azure v2工作人员角色?

[英]Azure v2 Worker Role?

I deployed an Azure Worker Role running OWIN into a Cloud Service for very fast HTTP serving. 我将运行OWIN的Azure Worker角色部署到了Cloud Service中以实现非常快速的HTTP服务。 The Cloud Service exists in the "classic" environment at manage.windowsazure.com. Cloud Service存在于manage.windowsazure.com的“经典”环境中。

I would like to deploy the same lightweight application using the new ARM bits so it can be fully managed at portal.azure.com. 我想使用新的ARM位来部署相同的轻量级应用程序,以便可以在portal.azure.com上对其进行完全管理。 I don't want to use a Web Application because that includes IIS. 我不想使用Web应用程序,因为它包括IIS。

What is the correct Platform-as-a-Service object to use in the ARM and the new portal that gives the same performance as an old Cloud Service Worker Role? 在ARM和具有与旧的Cloud Service Worker角色相同的性能的新门户中使用的正确的“平台即服务”对象是什么?

Thanks. 谢谢。

There isn't a Platform-as-a-Service object to use for this in ARM. 在ARM中,没有用于此的平台即服务对象。 Some Infrastructure-as-a-Service options are: 一些“基础架构即服务”选项包括:

  1. Create a regular Windows Azure Resource Manager VM in the new portal and set it up as an OWIN host. 在新门户中创建常规Windows Azure资源管理器VM,并将其设置为OWIN主机。

  2. Create an Azure Resource Manager template to deploy an OWIN host to a VM or a VM Scale Set. 创建一个Azure资源管理器模板,以将OWIN主机部署到VM或VM Scale Set。 The template would use the custom script extension and/or DSC to do the setup. 该模板将使用自定义脚本扩展名和/或DSC进行设置。 This would be a good re-usable solution, but someone would need to write the template for the first time. 这将是一个很好的可重用的解决方案,但是有人需要第一次编写模板。

  3. The lightest weight solution would be to have the server running in a Docker container on Windows. 最轻巧的解决方案是让服务器在Windows上的Docker容器中运行。 You could then choose use the VM for other purposes running in other containers or purely as a container host. 然后,您可以选择将VM用于在其他容器中运行或仅作为容器主机运行的其他目的。 Note this only runs on only runs on Windows Server 2016 Technical Preview 3. See http://anthonychu.ca/post/web-api-owin-self-host-docker-windows-containers/ 请注意,此操作仅在Windows Server 2016 Technical Preview 3上运行。请参阅http://anthonychu.ca/post/web-api-owin-self-host-host-docker-windows-containers/

Edit - Note that Service Fabric is the recommended PaaS solution in Azure Resource Manager. 编辑-请注意,Service Fabric是Azure Resource Manager中推荐的PaaS解决方案。 It is not a direct equivalent of PaaS v1 but a rich service for developing micro-service based applications: https://azure.microsoft.com/en-us/documentation/services/service-fabric/ 它不是PaaS v1的直接等效项,而是用于开发基于微服务的应用程序的丰富服务: https : //azure.microsoft.com/zh-cn/documentation/services/service-fabric/

Not sure what you mean by V2 (new portal? ARM?). 不知道您所说的V2是什么(新门户?ARM?)。 The portal is an independent tool, so I'm guessing you mean ARM. 该门户网站是一个独立的工具,所以我猜你是说ARM。 ARM doesn't support Cloud Service deployments currently, but you can still deploy either from Visual Studio (using the same interface you've used in the past, in visual studio) or from the portal, as a "classic" resource (which, underneath, uses the classic Azure management API). ARM当前不支持Cloud Service部署,但是您仍然可以从Visual Studio(使用与Visual Studio过去使用的相同界面)或从门户作为“经典”资源(在下面,使用经典的Azure管理API)。

In the portal, you'll find Cloud service (classic): 在门户中,您将找到云服务(经典):

浏览云服务

Now you can add a new cloud service: 现在,您可以添加新的云服务:

添加云服务

And fill out the various parameters: 并填写各种参数:

参数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM