Skip to content

Use instances and images more efficiently #36

Description

@jschementi

Currently running riker deploy --scale from scratch does the following:

  1. Creates a new instances
  2. Provisions it with docker, nginx, and any other dependencies
  3. Creates AMI (A)
  4. Terminates instance
  5. Launches instance from AMI (A)
  6. Deploys app to instance
  7. Creates AMI (B)
  8. Terminates instance
  9. Launches instance from AMI (B) (only if --scale isn't provided), or adds AMI (B) to an auto-scaling group to launch instance.

Can be compressed by not terminating the instance in #4, therefore skipping #5. If --scale is not provided, #8 and #9 can be skipped too. If --scale is provided, then that instance can be added directly to the auto-scaling group.

This will greatly improve deployment time, as AMI creation and instance termination take quite a bit of time.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions