[英]How to run around 15 docker containers with amazon ecs
My dockerized application has 12 services in docker-compose.yml, now I want to deploy this application on AWS ECS so any idea how to do that?我的 dockerized 应用程序在 docker-compose.yml 中有 12 个服务,现在我想在 AWS ECS 上部署这个应用程序,所以知道该怎么做吗?
In task definition, we can add only up to 10 containers, also is there a way to add multiple task definitions in services?在任务定义中,我们最多只能添加10个容器,还有没有办法在服务中添加多个任务定义?
You should not put all the service in a single task definition, better to run each task in a separate service and for service to service communications use service discovery or internal load balancer .您不应该将所有服务放在单个任务定义中,最好在单独的服务中运行每个任务,并且服务到服务的通信使用 服务发现或内部负载平衡器。
In task definition, we can add only up to 10 containers, also is there a way to add multiple task definitions in services
在任务定义中,我们最多只能添加10个容器,还有没有办法在服务中添加多个任务定义
Beside 10 containers limit, there are many other issues with this approach除了 10 个容器的限制之外,这种方法还有许多其他问题
Or if you need a quick fix then break the task definition into a dependency group, create two task definition for depended containers so they will able to communicate with each other being part of the same task definition.或者,如果您需要快速修复,然后将任务定义分解为依赖组,为依赖的容器创建两个任务定义,以便它们能够作为同一任务定义的一部分相互通信。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.