Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mention v20 upgrades can take a few minutes #106

Closed
wezrule opened this issue Sep 6, 2019 · 5 comments
Closed

Mention v20 upgrades can take a few minutes #106

wezrule opened this issue Sep 6, 2019 · 5 comments
Assignees

Comments

@wezrule
Copy link
Contributor

wezrule commented Sep 6, 2019

nanocurrency/nano-node#2283 is modifying all accounts to use the representative account instead of the representative block. This has been found to take a few minutes on some systems.

The account_info RPC should mark rep_block as deprecated and the representative shown by default when it eventually gets removed, RPC 2.0?

@zhyatt
Copy link
Contributor

zhyatt commented Sep 26, 2019

@wezrule What impacts to node operation are expected during this upgrade time? Is the node still expected to be participating on the network and responding to all RPC calls, etc.?

@wezrule
Copy link
Contributor Author

wezrule commented Sep 26, 2019

The upgrade is synchronous and the node won't be participating or queryable during this. Even with the database upgrade for the epoch 2 preparation, the total downtime should be < 10 minutes

@wezrule
Copy link
Contributor Author

wezrule commented Oct 11, 2019

Also mention that the ledger may grow in capacity by ~50%. A live ledger went from 16GB (before upgrade) to 24GB after. This is due to essentially copying all the state blocks to a new database while the old ones are still occupying space before being deleted. I experimented with using mdb_cursor_del to delete blocks while iterating over the old state v0/v1 databases, but it didn't make a difference to the size. --vacuum can be done after which gets it down to about ~13GB

@guilhermelawless
Copy link
Contributor

We can note this in the migration page: https://docs.nano.org/releases/node-releases/#v200

@wezrule
Copy link
Contributor Author

wezrule commented Nov 1, 2019

And done #156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants