we have two VM instances running in Google Compute Engine. The first one is running NodeJs instances that connect to a mongodb server installed on the second VM instance. Those have CPU higher running most of the time around 70%.
I would like to add autoscaling to these instances in order to improve the performances but I don't want to reinstall the instances completely and to keep the public and internal ip adresses if possible.
If I am right, I have to create a new group instance and add the two existing instances to it.
My questions are the following:
- Will it keep my instances running and with the same IPs, firewall settings... ?
- Is it the right way to proceed or is there a way to just increase the CPU of my existing instances as required?
Thank you for your answers.