-
Notifications
You must be signed in to change notification settings - Fork 7
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
{6}Restore a node from backup #33
Comments
The issue with a new node-id is that local subscriptions would break (as would happen in https://actyx.mantishub.io/view.php?id=494#c3470). I think the second solution is better. I think that this would mean that a node should not start emitting events until it receives at least one root map from the swarm. However, this brings up the problem of how a node would know that it's the first node in the swarm. |
@rklaehn Someone found a way to break your “unbreakable” crypto offset reuse prevention scheme. Waiting for foreign heartbeats before emitting events sounds reasonable to me, apart from the need of a setting to enable “lonely mode”. If we add that, then previously emitted state can be recovered, including crypto offsets. This is not bullet proof (e.g. against deliberately caused restores by someone who can also control the network), but it would make “restore from backup” quite a bit nicer for the admin. |
I think we shouldn’t support this feature: when a node fails, make a new node with the same settings but a new keypair. Retrieving and restoring the settings is already possible with |
Job story
When:
I want to:
So that:
->
The problem is that peers may have "newer" versions of the restored node’s chain than the node itself.
It would then re-use the same offsets to potentially write different data.
An easy way to work around this is to switch to a new node-id.
A more complicated way would be to try and restore state via the peers, then continue with the old node-id.
Acceptance criteria
The text was updated successfully, but these errors were encountered: