Our great sponsors
-
traefik-lazyload
A small traefik/docker wrapper to load and unload containers on-demand to save resources
-
sablier
Start your containers on demand, shut them down automatically when there's no activity. Docker, Docker Swarm Mode and Kubernetes compatible.
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
I decided to write a small app traefik-lazyload. It works by acting as a lower-priority route for a container, and when it's hit with web traffic, it looks for that container and spins it up. Traefik takes care of the rest by serving the higher-priority route when it comes online. Then the lazyloader monitor's the container's network traffic and stops it after delay. Easy and light weight, and works with existing setups.
Lazytainer dev here, Thanks for the shoutout! I was also going to ask if https://github.com/acouvreur/sablier was the "much heavier" thing you were talking about.
Related posts
- Feature Request : Auto stop container after a certain amount of time
- Sablier v1.1.0 - Containers on demand with Traefik middleware plugin
- Sablier v1.1.0 - Containers on demand API written in Go for reverse proxies
- Is there a way to have automated on-demand services which are created when a url is accessed, and destroyed after a certain time of inactivity?
- Traefik ondemand plugin updated to v0.1.1