Optimizing ECS with Pulumi and Python | "glowing telegram" - Episode 133

Channel:
Subscribers:
542
Published on ● Video Link: https://www.youtube.com/watch?v=6-0pmaoknLM



Duration: 0:00
71 views
3


In this video, I navigate through the process of optimizing our Glowing-Telegram project using Pulumi and Python to manage AWS ECS Fargate resource allocation. We start by pushing our build to AWS Elastic Container Registry (ECR) and delve into monitoring ECS using CloudWatch. One of our goals is to improve task performance by reconfiguring CPU and memory allocations within ECS for more efficient processing. This involves checking and adjusting ECS cluster settings, particularly the usage of container insights for better performance metrics.

I experiment with various CPU and memory settings in an attempt to find the sweet spot for our resource needs. Interestingly, we encounter diminishing returns as doubling resources doesn't quite halve the task times, indicating potential bottlenecks unrelated to computation, such as network IO while pulling video data from S3.

Throughout, we aim to enhance our silence detection code, adjusting configurations to accurately process video files. Even though tasks aren't executing as fast as hoped, they're yielding correct outputs, as demonstrated by the successful integration of silence segments into DynamoDB.

Finally, I discuss my thought process on further enhancements, such as implementing trace logging for a deeper analysis of task durations, and potentially restructuring how data is streamed into processing to cut down on IO wait times.

Join the journey of refining serverless workflows for the Glowing-Telegram project and enhancing Python-on-Pulumi deployments.

🔗 Check out my Twitch channel for more streams: https://www.twitch.tv/saebyn
GitHub: https://github.com/saebyn/glowing-telegram
Discord: https://discord.gg/N7xfy7PyHs




Other Videos By saebynVODs


2024-11-28Building a new Video Editor Frontend in TypeScript | glowing telegram - Episode 143
2024-11-27More deploying AWS Step Functions | glowing telegram - Episode 142
2024-11-26More Lambda Functions and Step Functions with AWS and Pulumi | glowing telegram - Episode 141
2024-11-25Streamlining AWS Lambda with Rust and Python | glowing telegram - Episode 140
2024-11-23Testing our Docker image + exploring EC2 spot instance cost | glowing telegram - Episode 139
2024-11-21Streamlining Audio Model Downloads and Video Processing with AWS | glowing telegram - Episode 138
2024-11-19Troubleshooting AWS Batch Job Setup with Whisper AI | glowing telegram - Episode 137
2024-11-18GPU batch job queue with AWS spot instances | glowing telegram - Episode 136
2024-11-16Making Our Rust/TS Web App Serverless with Pulumi and Python | glowing telegram - Episode 135
2024-11-14Serverless Audio Transcriber with Rust and Python Using Pulumi | glowing telegram - Episode 134
2024-11-12Optimizing ECS with Pulumi and Python | "glowing telegram" - Episode 133
2024-11-10"glowing telegram" serverless with pulumi and python - Episode 132
2024-10-23Optimizing AWS Batch Jobs for Efficient Video Ingestion | glowing-telegram project - Episode 131
2024-10-20Bringing in Pulumi and AWS properly, part 3 | glowing-telegram project - Episode 130
2024-10-18Bringing in Pulumi and AWS properly, part 2 | glowing-telegram project - Episode 129
2024-10-16Bringing in Pulumi and AWS properly, part 1 | glowing-telegram project - Episode 128
2024-10-10Wrapping up Pulumi experiments with AWS | glowing-telegram project - Episode 127
2024-10-08Transforming Rust Web App into a Serverless AWS Solution | glowing-telegram project - Episode 126
2024-10-06Deploying Serverless Rust with Pulumi | glowing-telegram project - Episode 125
2024-10-04Exploring Pulumi and LocalStack for AWS Development - glowing telegram project - Episode 124
2024-10-02Deploying AWS Lambda with Pulumi and LocalStack - glowing telegram project - Episode 123