'What ecs cluster mean in real application?
I want to learn what cluster in ecs means.
So I found that in aws "Cluster — A logic group of EC2 instances." - what does it mean? How many clusters/services/tasks should I create? Is it one cluster for my application? or my organization?
Can somebody explain to me please what is cluster and service and task in aws ecs but in the real application? say I have a website facebook.com and how it fit to aws ecs terminology?
Solution 1:[1]
Let's assume facebook.com comprises several microservices - auth, social and marketplace to name a few.
We can deploy them to ECS this way:
- a cluster per environment:
test.facebook.com,staging.facebook.comandprod.facebook.com - a service per microservice. So it'll be
auth,socialandmarketplaceservices - a task per instance of each microservice. Since we want
facebook.comto be realiable, we'll add redundancy - there'll be multiple instances of each microservice
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Pavel Bely |
