Hello Juan,
The autoscaling capabilities of GCE allow you to automatically add or remove instances from a managed instance group based on increases or decreases in load. However, in order to use this feature your VMs need to be stateless. This means the applications running on your VMs save the permanent data outside of the VMs.
Bitnami PrestaShop consists of Debian OS, and OpenSSL, MySQL, Apache, PHP, Varnish, phpMyAdmin, PrestaShop packages.
The MySQL component of the PrestaShop stack is a database management system which stores permanent data locally. This makes your VM stateful and therefore ineligible to be used as an instance template for a managed instances group.
That being said, to be able to use PrestaShop stack in a managed instances group, you will need to migrate, stateful components like MySQL databases from your VMs to an unmanaged VM instance(s). Another option would be configuring your applications to use Google Cloud SQL instead of the local MySQL. You will also need to do some research to find out if any other stack’s components write permanent data on the VM’s local disk(s) which may make it stateful.
After making your VM a stateless one, you can follow the instructions described in this article to create an instance template from the VM and set up a managed instance group with the autoscaling capabilities.
I hope this answers your question.
Hello Juan,
The autoscaling capabilities of GCE allow you to automatically add or remove instances from a managed instance group based on increases or decreases in load. However, in order to use this feature your VMs need to be stateless. That means that applications running on your VMs save the permanent data outside of the VMs.
Bitnami PrestaShop consists of Debian OS, and OpenSSL, MySQL, Apache, PHP, Varnish, phpMyAdmin, PrestaShop packages.
The MySQL component of the PrestaShop stack is a database management system which stores permanent data locally. This makes your VM stateful and therefore ineligible to be used as an instance template for a managed instances group.
That being said, to be able to use PrestaShop stack in a managed instances group, you will need to migrate, stateful components like MySQL databases from your VMs to an unmanaged VM instance(s). Another option would be configuring your applications to use Google Cloud SQL instead of the local MySQL. You will also need to do some research to find out if any other stack’s components write permanent data on the VM’s local disk(s) which may make it stateful.
After making your VM a stateless one, you can follow the instructions described in this article to create an instance template from the VM and set up a managed instance group with the autoscaling capabilities.
I hope this answers your question.
Sincerely,