Search code examples
instancesgoogle-compute-engine

What determines how fast an instance can be started/stopped on GCE?


What determines how fast an instance goes into the running state from the time the api call is made to start an instance?

Are any of the following factors is startup and shutdown times: - instance type - image type - whether a disk is attached or not - whether a ephermal ip address is needed - etc.

Basically, how can I quicken boot times and shutdown times


Solution

  • By and large copying the image currently dominates start up time for GCE.

    Things you can do to minimize this:

    1. Use a pre-created persistent disk to boot from. In this case, there is no image propagation time.
    2. Use one of our stock images (that are pretty small) or, if you create a custom image, don't add more bits than you need.

    Typically, the instance type and attached disks won't affect time dramatically.