dappnode / DAppNode

General repository of the project dappnode
GNU General Public License v3.0
581 stars 99 forks source link

Geth package ancient folder #250

Open luisalrp opened 3 years ago

luisalrp commented 3 years ago

Full blockchain need. lot of storage that most of it does not have sense to have it in a fast and NVMe or SSD, because it not accessed too much.

geth already has"--datadir.ancient" parameter to store ancient data, so I would like that the installer of geth package asks where to install the ancient data instead of the whole package. That way, I can mount cheap HDD nd point ancient data there. I think both options does not have sense.

Thanks!

┆Issue is synchronized with this Basecamp todo by Unito

dapplion commented 3 years ago

@luisalrp I really like the idea, thanks for the suggestion. @eduadiez what do you think?

dapplion commented 3 years ago

@eduadiez bump

JHGrove3 commented 3 years ago

This sounds great!

Geth added the ability to create a Freezer on a hard drive. Check out this blog post -- see the section titled "Freezer"

https://blog.ethereum.org/2019/07/10/geth-v1-9-0/

heueristik commented 1 year ago

Yes, please support an ancient drive. That would be really a great feature.

pablomendezroyo commented 1 year ago

@3alpha Would it be hard to implement this? I guess it affects mainly dappmanager installation process

heueristik commented 1 year ago

Not only for geth, but also for Lighthouse's freezer DB feature (https://github.com/sigp/lighthouse/pull/508#issuecomment-558465291)

--freezer-dir <DIR>  Data directory for the freezer database.

This has a lot of advantages:

3alpha commented 1 year ago

@3alpha Would it be hard to implement this? I guess it affects mainly dappmanager installation process

I don't think so. I think it could be dealt with within Installation wizard. It would only become messy if we were to deal with migrations. At first, I wouldn't deal with that. Maybe down the road.

heueristik commented 1 year ago

Any update on this? Would be really nice to have 🙏

heueristik commented 7 months ago

Since the disk requirement will increase after the Dencun upgrade (only ~50 GB but eventually more in the future), this becomes more of a topic.

heueristik commented 5 months ago

A freezer / ancient DB will also be supported by the Reth execution client 🥳.

See the idea https://github.com/paradigmxyz/reth/discussions/6510, actual PR https://github.com/paradigmxyz/reth/pull/6444, and milestone https://github.com/paradigmxyz/reth/labels/A-static-files.

Szboy commented 5 months ago

I was able to get geth to connect to an external ancient folder by binding the default ancient location to my external hdd path however a native solution in DAppNode is very much needed, especially with the size of the chain now, and would save a lot of headaches.