Open Kalmalyzer opened 3 years ago
Also -- are the above times affected by disk size? Are they affected by the amount of unique data on the disk? (There is some form of de-duplication between snapshots happening in the GCE backend)
With a 600g pd-balanced disk...
time gcloud beta compute machine-images create build-linux-static --source-instance build-linux-static
with 111G random data
-> 214s
with 511G random data
-> 225s
time gcloud beta compute instances create test --source-machine-image=test-with-random-511g
-> 61s
Not sure why the previous test showed ~30 second image creation times and this is at ~220s.
I wonder if there's a difference when using a pd-ssd?
WIth a 600g pd-ssd disk...
create machine image from 600g pd-ssd disk with 511g random data:
210s
create 600g pd-ssd disk from machine image with 511g random data:
72s
So the statistics looks like this:
Based on this,
Google has support for machine images in Beta.
This allows for snapshotting an instance, with its disks and all its metadata, and storing that cheaper than having running disks. The instance can later be recreated including labels etc from the machine image.
We should do a bit of math on the cost ($0.05/GB&month) for a machine image. It's the same cost as for custom images; is it the same as for snapshots? Is it only for the used portion of the disk? How does this change pricing for a build machine that is active, say, 3h/day?