-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Allow full and light client on-disk databases to co-exist #6880
Comments
It's also important to consider that moving the path of the full db means that you have to add code that migrates from the old path. |
(Pinging to get a consensus) @seunlanlege @rakanalh @danforbes @gnunicorn I believe this would be the best way to things, anyone else have an opinion? |
I think this is worth doing as i imagine there would be use cases where one would want to switch between the two. |
+1 |
I'm currently working on this and different database roles are stored in the corresponding subdirectories as discussed above. But how should we deal with existing databases to avoid users to resync their state. I suggest migrating to the new structure by:
Is it possible to move a ParityDb and RocksDb by just moving the files? |
Yes |
If there is already a database in the basedir, it will be migrated (moved) into the role-subdirectory. fixes paritytech#6880
Can I have a review please? |
Hey, is anyone still working on this? Due to the inactivity this issue has been automatically marked as stale. It will be closed if no further activity occurs. Thank you for your contributions. |
I just need a review. |
This is a cleaned up version of paritytech#8658 fixing paritytech#6880 polkadot companion: paritytech/polkadot#2923
#9645 is waiting for a review. |
* Store the database in a role specific subdirectory This is a cleaned up version of #8658 fixing #6880 polkadot companion: paritytech/polkadot#2923 * Disable prometheus in tests * Also change p2p port * Fix migration logic * Use different identification file for rocks and parity db Add tests for paritydb migration
* Store the database in a role specific subdirectory companion PR for paritytech/substrate#6880 * fix test * update Substrate Co-authored-by: parity-processbot <>
This is a nice small issue to give the light client some love. If you run the full node for a bit, then a light node with
--light
, you get the following error:It's easy enough to change the paths where the databases are put, it might be best to put the full db in
/db/full/
and the light db in/db/light
.The text was updated successfully, but these errors were encountered: