使用VMSS配置不同的环境,例如DEV,QA,STAGING和PRODUCTION [英] Configuring different environments like DEV, QA, STAGING and PRODUCTION using VMSS

查看:376
本文介绍了使用VMSS配置不同的环境,例如DEV,QA,STAGING和PRODUCTION的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我正在选择使用自定义图像的虚拟机规模集来为我的项目之一设置新的Web环境.在设置生产之前,我想设置DEV,QA和STAGING环境.我将VM移交给开发团队来写 针对不同环境的web.config文件中的代码.我将获取该VM的自定义映像,并配置VMSS.在这种情况下,我可以针对不同的环境(例如DEV,QA,STAGING和Production)更改配置.

如果我可以选择更改配置,则只能使用一个自定义映像,而不是为每个环境创建映像.

如果该选项不可用,请建议我为在IaaS中使用VMSS或我可以使用的任何其他服务创建不同环境的最佳方法.


Karthik Javvaji

解决方案

与云服务或应用程序服务不同,VMSS没有暂存槽的概念.

相反,您将启动一个环境并可能使用2节点集群之类的东西.这样,您可以测试环境,而无需使用推荐的3个以上的节点进行生产.

因此,基本上,您可以编写代码,部署到小型规模集集群并根据需要进行任何更改.对配置满意后,您可以与开发团队共享JSON,并只需添加更多节点即可处理生产工作负载. 


Hello,

I am choosing Virtual Machine Scale Sets using custom Image to setup new web environment for one of my project. Before setting up production I would like to setup DEV ,QA and STAGING environments. I will handover VM to to Development team  to write code in web.config file for different environments. I will take the custom image of that VM and will configure VMSS. In this scenario where I can change the configuration for different environments like DEV, QA , STAGING and Production. 

If I have option to change the configurations I can use only one custom image instead of creating images for each environment.

If option is not available request you to suggest me the best way to create different environments using VMSS in IaaS or any other services that I can use. 


Karthik Javvaji

解决方案

Unlike cloud services or app services VMSS does not have a concept of staging slots. 

Instead, you would spin up an environment and likely use something like a 2 node cluster. This way you can test your environment without using the recommended 3+ nodes for production use. 

So basically you can write you code, deploy to a small scaleset cluster and make any changes as needed. Once you are happy with the configuration you can share the JSON with the development team and simply add more nodes to handle production workloads. 


这篇关于使用VMSS配置不同的环境,例如DEV,QA,STAGING和PRODUCTION的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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