This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Replies: 1 comment 1 reply
-
I'm not sure there's a simple answer in ECS, but my experience with it is limited. Stepping back and looking at the nature of what you're trying to accomplish however, an effective alternative might be EKS with:
Node group 2:
There's the persistent cost of k8s with the single node, but this gets past the empty capacity provider problem and feels in the spirit of the cost optimization you're looking for. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently running flows on ECS by leveraging an EC2 capacity provider. The initial intent was to save costs by using EC2 Spot instances rather than Fargate for infrequent and demanding workloads (think 16 vCPU+). In this particular use case, I can't use Fargate Spot because my architecture is not available for this launch type. My idea was to attach my EC2 capacity provider to an auto scaling group that could scale in and out from zero so that no instances are running when no work has to be done.
However, my understanding of ECS is that tasks cannot be submitted to an empty capacity provider : you need to have at least one instance running otherwise the request is not picked up. Of course this would mean having at least one (large) instance running at all times, which is really not practical.
I was wondering if there is a Prefect way of going around this issue. I was thinking of two solutions, but none seem flawless :
Maybe I'm missing something, but if anyone has been there, any input is appreciated!
Beta Was this translation helpful? Give feedback.
All reactions