question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Use a sensible default instance type for ECS

See original GitHub issue

The current CF template for deploying in ECS uses t2.micro instances. They are free, which is great but the Stack doesn’t work with such small instances (it doesn’t even finish deploying, providing a bad user experience).

In my experience, it only works when using at least 3 m4.xlarge instances. We should use a default which is verified to work and remove any smaller instances from the list (maybe adding a clarification on this on the side).

m4.xlarge instances are overkill for a demo but it seems that’s the smallest you can pick to make it work. We should probably revisit whether we are being too resource intensive for a demo application, but that’s a different topic.

Related: https://github.com/microservices-demo/microservices-demo/pull/412#issuecomment-260906964

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:18 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
bchavcommented, Nov 17, 2016

@errordeveloper: The last time that I tried to deploy this onto t2 micros, CFN never completed because it waits for ECS services to reach equilibrium, but the ECS service scheduler is unable to find sufficient resources to place all of the services. My suspicion is that 4x T2’s run out of memory fairly quickly. IIRC many of the services here require 512/1024mb of ram.

If you disable rollback when launching a CFN template, it makes it significantly easier to retroactively debug what happened- you can log into instances, etc. You can take a look at the “events” tab in ECS (or call the describe-service API) to find out why the ECS scheduler was never able to place the task.

0reactions
errordevelopercommented, Nov 21, 2016

@moretea that said, this was an issue a few month ago (around the time I’ve opened #146), I don’t know what may have improved since. Let’s chat on Slack to determine how to proceed 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Amazon ECS container instances - AWS Documentation
An Amazon ECS container instance is an Amazon EC2 instance that is running the Amazon ECS container agent and has been registered into...
Read more >
ECS Instance Type Families - Alibaba Cloud
ECS instance type defines the basic properties of an ECS instance, including CPU (CPU model and clock speed) and memory. In addition to...
Read more >
AWS ECS Error when running task: No Container Instances ...
1. Go to your EC2 Dashboard, and click the Launch Instance button. · 2. Under Community AMIs , Search for ecs-optimized , and...
Read more >
How to Configure Auto-scaling for AWS ECS Service with ...
Update the ECS cluster to use the capacity provider we created. Open 'clusterDemo' cluster and click 'Update cluster'. Change default capacity ...
Read more >
amazon-ecs-developer-guide/ecs-agent-config.md at master
If you are using ecs init , the default value is true . Whether IAM roles for tasks should be enabled on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found