Reputation: 139
Autoscaler is recently added as an option to Google Cloud Platform. If I understand it correctly, you can create a template VM and Autoscaler will increase the number of VMs, if necessary, based on this template VM.
My main question is: this template VM doesn't contain the default files in /var/www
. Even when I create a snapshot and use the snapshot for the template, the folder /var/www
is empty. So how can I use autoscale and sync all VMs (auto)created. I already use a Cloud SQL and are moving images to a bucket. But I guess nobody's website or app will work with empty / newly-installed VMs.
Upvotes: 5
Views: 172
Reputation: 51
You actually can attach additional disks, they just have to be in read-only mode. As stated here 1 (look for --disk PROPERTY=VALUE
)
Upvotes: 1
Reputation: 820
Instance Templates (the foundational component that scales up new virtual machines with Autoscaler) at this time doesn't support creating and attaching separate non-boot data disks.
So if you wanted to transfer an existing deployment that uses multiple disks to use Autoscaler, you should first copy the contents of the data disk to the boot disk.
This is the case with many of the Click to Deploy solutions which place the contents of /var/www on a separate disk.
Upvotes: 0