[英]How to put fluentd containers behind a load balancer in ECS?
So in ECS, we have ALB's which only route traffic on http/https. 因此,在ECS中,我们有ALB,仅在http / https上路由流量。 As fluentd containers listen on a different tcp port, how can we load balance them in ECS?
由于流利的容器在不同的tcp端口上侦听,我们如何在ECS中实现负载均衡? I know we can use classic loadbalancer in ECS, but I wanted to avoid using classic ELB in ECS.
我知道我们可以在ECS中使用经典的负载均衡器,但是我想避免在ECS中使用经典的ELB。
To give a background, in our SOA architecture there are many services in ECS and I want to use the docker fluentd logging driver to route the logs to the fluentd container. 作为背景,在我们的SOA体系结构中,ECS中有很多服务,我想使用docker fluentd日志记录驱动程序将日志路由到fluentd容器。
Is it a good practice to put multiple fluentd containers behind a loadbalancer? 将多个流利的容器放在负载均衡器后面是个好习惯吗? Any other suggestions welcome.
任何其他建议,欢迎。
I run a number of fluentd services in ECS behind classic ELB load balancers. 我在经典的ELB负载均衡器后面的ECS中运行了许多流利的服务。 It works really well and the inability to use dynamic ports hasn't been an issue given the number of hosts in the cluster.
它确实运行良好,考虑到群集中的主机数量,无法使用动态端口也不再是问题。
You also now have the option of using the network load balancer . 您现在还可以选择使用网络负载平衡器 。 An NLB allows you to use dynamic port mapping with TCP.
NLB允许您将动态端口映射与TCP一起使用。 Read the documentation and see if it works for you.
阅读文档,看看它是否适合您。 I didn't use it because it doesn't work across VPC peering connections.
我没有使用它,因为它不适用于VPC对等连接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.