-
Notifications
You must be signed in to change notification settings - Fork 279
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
[suggestion] WSV snapshot #3651
Comments
I vaguely remember this discussed as a possible Kura init mode, where we periodically store snapshots of WSV in blockstore and restart by applying only txns that happened after the snapshot. |
you are referring to this discussion |
I didn't think taking a |
I would recommend adding a SIGUSR1 handler too, since this is what most programs would do anyway. |
We probably would need to dump |
Signed-off-by: Artemii Gerasimovich <gerasimovich@soramitsu.co.jp>
Signed-off-by: Artemii Gerasimovich <gerasimovich@soramitsu.co.jp>
Signed-off-by: Artemii Gerasimovich <gerasimovich@soramitsu.co.jp>
Signed-off-by: Artemii Gerasimovich <gerasimovich@soramitsu.co.jp>
Signed-off-by: Artemii Gerasimovich <gerasimovich@soramitsu.co.jp>
Signed-off-by: Artemii Gerasimovich <gerasimovich@soramitsu.co.jp>
Signed-off-by: Artemii Gerasimovich <gerasimovich@soramitsu.co.jp>
Signed-off-by: Artemii Gerasimovich <gerasimovich@soramitsu.co.jp>
Signed-off-by: Artemii Gerasimovich <gerasimovich@soramitsu.co.jp>
Environment: mac m1 step for reproduce:
console output
logs by peers was attached |
Signed-off-by: Artemii Gerasimovich <gerasimovich@soramitsu.co.jp>
Feature request
It is in the scope of this ticket to add a way for Iroha to serialize and deserialize
wsv
.We can do this:
Torii
to force dumping ofwsv
to the disk.Once restarted, the node will read the
wsv
from the disk and reapply any excess transactions from the block store on top of it. The node will try reading a serializedwsv
only if it is started with a specific flag, otherwise notWe can also make the network exchange the
wsv
when started similarly to what we do with broadcasting genesis block. IMO this would require more work and development time for too small gainsMotivation
We need a way to restart Iroha without it having to reapply all transactions from the block store to get to the current WSV. This is a highly requested feature because it takes 3hrs to restart Iroha for Orillion team
Who can help?
@appetrosyan @mversic
The text was updated successfully, but these errors were encountered: