The sloppy scale command allows you to scale the number of instances a specific application is running on. Simply scale your apps up or down with a single command.

Usage

The sloppy scale command needs a project name, a service name, as well as the name of the application that you want to scale. You’ll also need to provide the number of instances that you want to scale it to as an argument. The general syntax is as follows:

$ sloppy scale [OPTIONS] MyProjectName/MyServiceName/MyAppName INSTANCES

Here is an example:

$ sloppy scale apache/frontend/apache 3

Options

The following options will work in conjunction with the sloppy scale command.

--help Show help for command. 

Once you have executed the sloppy scale command, it will return the application’s updated status information to confirm that scaling was successful.

Here is an example output:

Scale

$ sloppy scale apache/frontend/apache 3

Application:  apache
Version:      2016-01-18T11:10:23.693Z
Memory:       128 MiB
Total Memory: 384 MiB
Instances:    1 / 3
Domain:       wp2.sloppy.zone
Image:        wordpress
Command:      -
Ports:        80
Versions:     2016-01-18T11:08:51.611Z
              2016-01-18T11:10:23.693Z              
              2016-01-18T11:11:01.176Z
Dependencies: ../../backend/mysql
Environments: WORDPRESS_DB_HOST="mysql.backend.wordpress.work"
              WORDPRESS_DB_PASSWORD="test"            
              WORDPRESS_DB_USER="user" 

What does this information tell you?

Application
Name of the application.
 
Version
Time stamp of the app version that is currently running.

Memory
Amount of memory (RAM) allocated to the instance in MiB.

Total Memory
Amount of memory (RAM) allocated to all instances in MiB.

Instances
Number of instances the application is currently running on simultaneously (x from y).

Domain
If you defined a domain name for this app, it will be shown here as Domain.

Image
Name of the Docker image for this app.

Command
Docker command this app’s image is executing on launch.

Ports
Here you’ll see, which ports are exposed for this application (learn more about ports).

Versions
Lists all versions that have been launched for this app, including the current one. sloppy allows you to do a rollback to each of those versions (learn how to do a rollback).

Dependencies
If this application is depending on one or more other apps, their names will show up here (learn more about dependencies).

Environments
Lists all environment variables, that have been defined for this app (learn more about environment variables).

Did this answer your question?