BitShares Forum

Main => Technical Support => Topic started by: alpes214 on October 26, 2017, 02:35:18 pm

Title: Disk space on a witness node
Post by: alpes214 on October 26, 2017, 02:35:18 pm
Hi, I was not able to find neither documentation nor forum discussion about Bitshares witness node disk consumption.  Witness node copies the whole chain on disk. At some point of the time in the future any HDD space on the witness node will be over. What should I do after disk is completely consumed: truncate the blockchain, start a chain with same id but from some block in the past etc.? Any links to discussions or documentation? Thank you.
Title: Re: Disk space on a witness node
Post by: pc on October 26, 2017, 03:38:41 pm
2 years after the start of BTS-2.0, the full blockchain consumes about 7GB of diskspace. It will be a looooong time before the blockchain outgrows even the largest disks, and long before that you will start worrying about your network bandwidth.

When it does, finally, it's always an option to take a snapshot of the current state and start a new blockchain, using the snapshot as the new genesis.
Title: Re: Disk space on a witness node
Post by: Digital Lucifer on October 29, 2017, 04:46:02 pm
Hi, I was not able to find neither documentation nor forum discussion about Bitshares witness node disk consumption.  Witness node copies the whole chain on disk. At some point of the time in the future any HDD space on the witness node will be over. What should I do after disk is completely consumed: truncate the blockchain, start a chain with same id but from some block in the past etc.? Any links to discussions or documentation? Thank you.

There is actual no need for such thing as already explained in post above, but lets me explain in details why.

Classic offer nowadays for Cloud VPS or VPS comes with SSD of minimum 40GB to 60GB and 2GB of ram.

Entire full node with cleaned up files is 11GB.
(https://image.ibb.co/nuyEGR/full_thing.png)

Entire current live blockchain is 8.7GB
(https://image.ibb.co/hm61wR/bts_blockchain_file_only.png)

If you use 20GB from HDD as ramfs and still have 40 left, you can run node for next 365 days with no worries.

Cheers,

Luci.