Score:0

Run containers using EC2 reserved instance in fargate ECS

pr flag

We use AWS fargate with containers. To reduce price we are looking for options. So question how to use AWS EC2 reserved instances with fargate?

As I understand steps look like this:

  • purchase reserved instance(s)
  • create new fargate cluster with supporting EC2 instance with some instance type (micro...)
  • create services/EC2 based tasks Question is, will this setup use reserved instances?

Looking for info...

Score:0
gp flag
Tim

Fargate is used to run containers without running EC2 instances. You can't run Fargate on EC2. I think you just have your terminology wrong, but I get the general idea of what you're trying to do. If you have enough containers it can be cheaper to run EC2 instances rather than Fargate containers.

You can use ECS to run containers on EC2 instances. You can create an autoscaling cluster of EC2 instances. Start by reading the documentation here. I would copy it in here but it's a lot of steps.

Inom Turdikulov avatar
pr flag
Main idea is use reserved EC2 instances. Main question does ECS support reserved EC2 instances and how to use them (maybe need to use specific configuration/attach them into cluster?).
Tim avatar
gp flag
Tim
Yes it does. Read the ECS docs for how to use EC2, reserved instances are a billing construct, ECS doesn't care one way or another. Savings Plans are a newer model than reserved instances, compute savings plans can apply to fargate.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.