Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Understanding Google Cloud Platform's Autoscaler

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.

like image 626
Peter Driessen Avatar asked Nov 10 '22 13:11

Peter Driessen


1 Answers

  • Please edit this out to be a comment, do not have enough points to comment.

You actually can attach additional disks, they just have to be in read-only mode. As stated here 1 (look for --disk PROPERTY=VALUE)

like image 101
PyGAE Avatar answered Nov 15 '22 08:11

PyGAE