[英]How can i put a AWS Spotfleet behind an ElasticLoadBlancer (ELB)
Is there any way to put all instances of a spotfleet behind one ELB ? 有什么方法可以将Spotfleet的所有实例放在一个ELB后面? Preferably via Cloudformation.
优选地通过Cloudformation。
Skimming through the documentation i could not find any hints rearding that topic. 浏览文档时,我找不到任何暗示该主题的提示。
This is now possible and it works with classic and application load balancers. 现在可以使用它,它适用于经典和应用程序负载平衡器。
https://aws.amazon.com/about-aws/whats-new/2017/11/spot-fleet-can-now-auto-attach-instances-to-your-load-balancers-and-scale-down-to-0-target-capacity/ https://aws.amazon.com/about-aws/whats-new/2017/11/spot-fleet-can-now-auto-attach-instances-to-your-load-balancers-and-scale-down-到0的目标容量/
在Spotfleet博客文章中 ,我从亚马逊得到了一个答案,指出该功能目前尚不存在,但已计划中。
Using LaunchConfiguration (with a SpotPrice) connected to your AutoScalingGroup, you can have the spot fleet in your ELB. 使用连接到AutoScalingGroup的LaunchConfiguration (具有SpotPrice),可以在ELB中拥有现货车队。
This is a fairly standard AutoScalingGroup/LaunchConfiguration usage, the SpotPrice is the only thing that is different from the standard fleet configuration. 这是相当标准的AutoScalingGroup / LaunchConfiguration用法,SpotPrice是唯一与标准车队配置不同的东西。 You can combine this basic ASG with this basic LaunchConfig .
您可以将此基本ASG与该基本LaunchConfig结合使用。 I'd remove the FindInMap and Ref stuff from the latter, just replace it with the strings of your choice.
我将从后者中删除FindInMap和Ref内容,只需将其替换为您选择的字符串即可。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.