简体   繁体   English

如何在ECS中将流利的容器放在负载均衡器后面?

[英]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.

相关问题 如何在负载均衡器后面配置Docker容器? - How Do I Configure Docker Containers Behind A Load Balancer? 在负载均衡器后面滚动部署Docker容器 - rolling deployment for docker containers behind load balancer 如何将Application Load Balancer用于具有多个端口映射的ECS服务? - How to use Application Load Balancer for an ECS Service with multiple port mappings? 没有负载平衡器的暴露容器 - Exposing containers without a load balancer 私有 su.net 中带有 ECS Fargate 的应用程序负载均衡器 - Application Load Balancer with ECS Fargate in private subnet "<i>AWS Load Balancer with ECS.<\/i>带有 ECS 的 AWS 负载均衡器。<\/b> <i>How do I troubleshoot health checks failing?<\/i>如何解决运行状况检查失败的问题?<\/b>" - AWS Load Balancer with ECS. How do I troubleshoot health checks failing? 是否可以为Docker容器定制负载均衡器? - Is a customized load-balancer for Docker containers possible? 在 AWS 负载均衡器后面部署 nginx - Deploying nginx behind AWS load balancer 我是否需要在 AWS ECS 中使用带有 nginx 的 AWS 负载均衡器? - Do I need AWS Load balancer with nginx in AWS ECS? ecs-cli使用负载均衡器组成服务 - ecs-cli compose service up with a load balancer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM