WindmillWWindmill
Powered by
rubberduckyR
Windmill•3mo ago•
3 replies
rubberducky

Best Practices for Windmill on AWS ECS Fargate with Autoscaling Workers

Setup:
- AWS ECS Fargate, 3-15 autoscaling workers
- EFS at /tmp/windmill/logs, ephemeral /tmp/cacheworker for pip cache
- Version: ghcr.io/windmill-labs/windmill:main

Issue:
Intermittent ModuleNotFoundError: No module named 'shopify.resources.option' when
workers scale.

Current Config:
worker_groups = [{
cpu = 2048, memory = 4096
min_capacity = 3, max_capacity = 15
environment = { CACHE_DIR = "/tmp/cacheworker" } # Ephemeral
}]

Questions:

1. Recommended cache strategy for Fargate?
- Ephemeral /tmp vs EFS for pip cache?
- Does Windmill have locking for concurrent pip installs?

2. Can we pre-bake packages into custom worker images?
- Install all packages from .script.lock at image build time?
- Will this conflict with Windmill's package management?

3. ECS/Fargate reference architecture?
- Any documented patterns for dynamic scaling?
- Warm pool or pre-installation strategies?

4. What do production users do?
- Custom images vs shared cache vs per-worker install?

Considering: Building custom image with pre-installed packages for 5-10s startup vs
current 60-90s.
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Windmill workers disappeared
Son TungSSon Tung / help
2mo ago
Has anyone used AWS Appsync with Windmill?
biggedy.Bbiggedy. / help
3y ago
Deploy new workers to Windmill installation
Trevor SullivanTTrevor Sullivan / help
3y ago
Best practices and guidelines
SanksSSanks / help
7mo ago