Go to file
Alexis Couvreur cc269ebb47 Added demo
2020-10-21 22:05:20 +02:00
2020-10-21 22:05:20 +02:00
2020-10-20 21:31:34 +02:00
2020-10-20 21:31:34 +02:00
2020-10-21 21:30:07 +02:00
2020-10-21 21:30:07 +02:00
2020-10-20 21:31:34 +02:00
2020-10-20 20:07:27 +02:00
2020-10-21 21:30:07 +02:00
2020-10-21 22:05:20 +02:00
2020-10-21 21:30:07 +02:00

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

Alexandre and Alexis

Demo

Demo

Run the demo

  • docker swarm init
  • export TRAEFIK_PILOT_TOKEN=your_traefik_pilot_token
  • docker 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.

Description
Start your containers on demand, shut them down automatically when there's no activity. Docker, Docker Swarm Mode and Kubernetes compatible.
Readme AGPL-3.0 60 MiB
Languages
Go 89.4%
HTML 9.9%
Makefile 0.6%
Dockerfile 0.1%