I have a VM instance which has the following configuration and runs the geth blockchain on it.
20 GB HDD (boot disk)
500 GB SSD (chain data)
The geth
node works ok and is in sync. as expected. I want to put such instances behind a HTTP load balancer, however I am not sure of the best way to scale instances as it also includes chain data on the the mounted disk.
I think I have the following options when wanting to scale instances:
Create an instance with Boot disk SSD (
500GB
) and create an image which can then be used to create anInstance Template
. (The blockchain will still take time to sync.)Keep the
chaindata
in the mounted disk and create an image. When scaling instances, create a disk from this image and attach it to the newly launched instance usinggcloud
. (The blockchain will still take time to sync.)
Is there a better way to do it than any of the above approaches?