mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-27 23:46:36 +01:00
cc269ebb471ef98f9c0c9107416e240ca940a739
Traefik Ondemand Plugin
Traefik plugin to scale down to zero containers on swarm.
Description
A container may be a simple nginx server serving static pages, when no one is using it, it still consome CPU and memory even if it's close to nothing it still something.
With this plugin you can scale down to zero when there is no more request. It will scale back to 1 when there is a user requesting the service.
Authors
Alexandre Hiltcher Alexis Couvreur
Demo
Run the demo
docker swarm initexport TRAEFIK_PILOT_TOKEN=your_traefik_pilot_tokendocker stack deploy -c docker-compose.yml TRAEFIK_HACKATHON
Limitations
You cannot set the labels for a service inside the service definition.
Otherwise when scaling to 0 the specification would not be found because there is no more task running. So you have to write it under the dynamic configuration file.
Languages
Go
89.4%
HTML
9.9%
Makefile
0.6%
Dockerfile
0.1%

