- Newest
- Most votes
- Most comments
AWS Fargate is a serverless compute engine for containers that works with Amazon EKS and ECS. Let me address your questions about running Trino on Fargate:
-
Scaling in Fargate: Fargate doesn't automatically scale your Trino workload. You would need to set up auto-scaling policies for your EKS cluster using Kubernetes Horizontal Pod Autoscaler (HPA) or Cluster Autoscaler. These can scale based on metrics like CPU utilization or custom metrics.
-
Resource allocation time: Fargate typically provisions resources very quickly, usually within 30 seconds to a minute. When your workload needs more memory (from 4GB to 6GB), Fargate will allocate the resources almost immediately once the scaling decision is made by your auto-scaling policies.
-
Scaling impact on workloads: During scaling, your existing Trino workload continues to run without interruption. Fargate adds or removes tasks/pods as needed, but doesn't affect running containers. This applies to both scaling up and down. Your workload remains operational throughout the process.
-
Pricing and configuration: For your Trino workload using 4-6GB of memory, Fargate would use the 2 vCPU configuration with 4-16GB memory range. You'd be charged for the actual memory used (4-6GB) and 2 vCPUs.
Regarding vCPU, 1 vCPU is generally equivalent to 1 CPU core. vCPU does matter for performance - more vCPUs mean more processing power for your Trino workload. However, the optimal configuration depends on your specific workload characteristics and performance requirements.
Remember, Fargate charges per second with a one-minute minimum for the resources you allocate to your tasks. You're billed for the larger of either the amount of CPU or memory you request.
When migrating from EC2 to Fargate, you'll need to adjust your deployment and scaling strategies to leverage Fargate's serverless model effectively.
Sources
AWS Fargate for Amazon ECS - Amazon Elastic Container Service
Serverless Compute Engine–AWS Fargate Pricing–Amazon Web Services
When to use Fargate - AWS Batch
Relevant content
- asked a month ago
- asked a month ago
- asked a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 months ago