TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Are you using AWS ECS in production?

9 pointsby skyisbluealmost 8 years ago
We&#x27;re thinking of migrating to ECS and wondering what the state of it is currently.<p>Are there still issues with agents disconnecting?<p>Should we not bother and go straight to kubernetes?

4 comments

bdcravensalmost 8 years ago
We are. Agent seems pretty solid. Biggest issue I&#x27;ve seen is when doing a new deploy, sometimes old tasks keep running.<p>Biggest gotcha: tasks restarting over and over because of bad load balancer config on my part (for instance, using 200 as status code when the healthcheck endpoint returns a 302)<p>Some of what won me over:<p>* IAM role integration at both instance and task level<p>* ecs-cli can use docker-compose.yml (with minor revision)<p>* easy use of spot fleets<p>* cron support for tasks<p>* easy to script in control of clusters into your app with AWS SDK<p>I evaluated Kubernetes, and may give it another look soon, but ECS was pretty easy to get going.
NathanKPalmost 8 years ago
I&#x27;m currently a developer advocate for ECS at AWS, so I&#x27;m pro ECS as you&#x27;d expect. But before I worked at AWS I used ECS in production (since the early beta).<p>At the time we ran a microservices deployment of ~15 services on ~20 hosts. ECS made orchestrating the services easy for a couple reasons:<p>Unlike with self managed Kubernetes on AWS we could have high availability with just a simple cluster that just had two machines. Running the Kubernetes control plane high availability requires a lot of setup, and while there are tools like kops that are helping out with setup now its still a lot of extra administration. (See <a href="https:&#x2F;&#x2F;kubernetes.io&#x2F;docs&#x2F;admin&#x2F;high-availability&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kubernetes.io&#x2F;docs&#x2F;admin&#x2F;high-availability&#x2F;</a>) The advantage of ECS here is that you just start two or three instances in different availability zones that run an agent and that is all it takes to have high availability. You don&#x27;t have to pay anything extra for the control plane resources, or worry about monitoring it or maintaining it.<p>Also AWS ECS integrates really well with all the other AWS services. For example metrics from your services automatically get piped to CloudWatch, where you can set up an alarm that triggers a Lambda function, or publishes to an SNS topic that triggers a Pagerduty notificaton. Or you can use the metrics to make a CloudWatch Dashboard for creating a custom overview of your cluster. Logs likewise go to CloudWatch where you can setup triggers that execute a Lambda function. You can give each service its own IAM role to control which resources (DynamoDB tables, S3 buckets, etc) that specific service has access to. ECS integrates really well with Application Load Balancer, which allows you to easily setup a mixed architecture, where some traffic is routed to services that are running as containers under ECS, and other traffic is served by older applications running directly on hosts with no container.<p>If you are looking for more info as you evaluate whether or not AWS ECS is right for you please check out this list of ECS resources, most of which are created by the developer community: <a href="https:&#x2F;&#x2F;github.com&#x2F;nathanpeck&#x2F;awesome-ecs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nathanpeck&#x2F;awesome-ecs</a><p>And feel free to reach out using the Twitter handle or email on my profile if you have any questions or feedback on ECS.
评论 #14787648 未加载
mmontagna9almost 8 years ago
We&#x27;ve experienced agent crashes in the past but those seem to have been resolved now. Occasionally we will find a docker container from an old task which is still running, but about which ECS knows nothing. Definitely can make for an interesting troubleshooting adventure.<p>And it seems like maybe the ECS team is trying to move a little too fast recently. They released this blog which claims the run-task api supports several new override parameters but the backend still doesn&#x27;t actually do anything with them it just silently ignores them.<p><a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;about-aws&#x2F;whats-new&#x2F;2017&#x2F;06&#x2F;amazon-ecs-runtask-and-starttask-apis-now-support-additional-override-parameters&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;about-aws&#x2F;whats-new&#x2F;2017&#x2F;06&#x2F;amazon-ec...</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;boto&#x2F;boto3&#x2F;issues&#x2F;1184" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;boto&#x2F;boto3&#x2F;issues&#x2F;1184</a>
评论 #14862541 未加载
Seviialmost 8 years ago
Don&#x27;t use it. It&#x27;s crapware. We have 100+ hosts. Problems include the scheduler assigning tasks to nodes that report their ecs agent as crashed. Just use kubernetes it&#x27;s going to be more stable and have more support. I wish execs didn&#x27;t take aws seriously when they promised features 6 months down the line.
评论 #14803451 未加载
评论 #14789294 未加载
评论 #14803453 未加载