Automating Scaling Plugin for autodock
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Dockerfile
README.md
README.rst
autodock-autoscale
requirements.txt
setup.py

README.md

autodock-autoscale

Automatic Scaling Plugin for autodock.

note

See: autodock

Basic Usage

Start the daemon:

$ docker run -d --name autodock prologic/autodock

Run a web container of your choice and set AUTOSCALE=1:

$ docker run -d -e AUTOSCALE=1 prologic/hello

Now autodock-autoscale will monitor this container's load and automatically spawn new instances of this container based on the parameters used to start it.

Configuration

There are several options you can pass when running containers for autoscaling:

  • AUTOSCALE_MIN=n The minimum number of instances to run at any given time.
  • AUTOSCALE_MAX=n The maximum number of instances to scale up to.

By default AUTOSCALE_MIN is set ti the discovered number of containers with AUTOSCALE=1 set. AUTOSCALE_MAX is by default set to the maximum number of detected CPU cores on the Docker host.