Update Google Compute Engine Instance type in real time

前端 未结 2 629
情深已故
情深已故 2021-01-05 06:09

I would like to know if you can change the type of one instance to another, e.g:

n1-standard-1 to n1-standard-2

I don\'t see nothing to that in the document

相关标签:
2条回答
  • 2021-01-05 06:38

    You need create a new instance with the new type.

    1. Disconnect your persistent disk from n1-standard-1.

    2. Create new instance in the same zone with the type n1-standard-2 and choose boot from disk. (choose the persistent disk)

    3. Run the new instance.

    Note: I recommend have a snapshot from the disk before to try this procedure.

    for realtime you can choose in "boot from disk" choose the snapshot instead of the persistent disk. and when you test that this instance its working, associate the ip address from VM1 to VM2.

    0 讨论(0)
  • 2021-01-05 06:46

    You can stop the machine, edit it then launch it again. I just did it now and it worked fine.

    switched from micro to small without changing my data.

    Regards.

    0 讨论(0)
提交回复
热议问题