Google Compute Engine: increase memory/CPU of the instance
This is not currently possible on Google Cloud Platform. For now, you can shut down your instance, and create a new instance with the persistent disk of the older instance attached as described in this StackOverflow answer.
Update- AS of the time of writing:
- One way is to stop the instance, get to edit mode and configure machine to new configuration. Once done, you would need to start and it will come back up with latest config.
- The easiest way is to go to VM instances section and you should be able to see "increase perf" in recommendation section of the VM listings. You can select from there itself with one click and it will be restarted with the selected config.
Now it's possible: https://cloud.google.com/compute/docs/instances/changing-machine-type-of-stopped-instance
- Go to the VM Instances page.
- In the Name column, click the name of the instance that you want to change the machine type for.
- Click the Stop button to stop the instance, if you have not stopped it yet.
- After the instance stops (this may take couple minutes), click the Edit button at the top of the page.