简体   繁体   English

Web部署到AWS Elastic Load Balancer后面的EC2实例

[英]Web Deploy to EC2 instances behind AWS Elastic Load Balancer

I've just setup an elastic load balancer with a number of EC2 instances behind it running my web application. 我刚刚设置了一个弹性负载均衡器,其后面有一些运行我的Web应用程序的EC2实例。

I am currently deploying my web app using Web Deploy through Team City (to a non-load balaned environment). 我目前正在通过Team City使用Web Deploy部署我的Web应用程序(到非负载的balaned环境)。 The package will also need to be parametrized at the time of deployment. 该软件包还需要在部署时进行参数化。

My problem is that running web deploy against an individual instance will obviously not update all instances behind the ELB. 我的问题是针对单个实例运行Web部署显然不会更新ELB后面的所有实例。

Elastic Beanstalk is not an option as I need more than the Vanilla Windows Server instance to run my app. Elastic Beanstalk不是一个选项,因为我需要比Vanilla Windows Server实例更多来运行我的应用程序。

Any help would be much appreciated. 任何帮助将非常感激。

Elastic Beanstalk allows you to use custom AMI, which you can customize to your liking: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.customenv.html Elastic Beanstalk允许您使用自定义AMI,您可以根据自己的喜好进行自定义: http//docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.customenv.html

You can also customize many of the parameters of the non-legacy containers, even on Windows: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-windows-ec2.html 您还可以自定义非旧容器的许多参数,甚至在Windows上: http//docs.aws.amazon.com/elasticbeanstalk/latest/dg/customize-containers-windows-ec2.html

It is probably best to use Elastic Beanstalk, if you are already using it, as it has better integration to EC2 and other AWS resources. 如果您已经使用Elastic Beanstalk,最好使用Elastic Beanstalk,因为它可以更好地集成到EC2和其他AWS资源。 It is probably less likely that an MS tool will have the same level of support. MS工具可能不太可能具有相同级别的支持。

We setup a DFS Replication for the wwwroot. 我们为wwwroot设置了DFS复制。 We just web deploy to any one server and it gets replicated to the rest.. 我们只是将Web部署到任何一台服务器,然后将其复制到其余服务器上。

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

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