Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipfs-cluster-service now has a migration subcommand that will handle loading a json encoded state backup file into ipfs-cluster's raft state. If all cluster members shutdown, perform this operation on the same state file and restart, then they will see this (possibly different) state upon restart. Migrations automatically update any version of state in the backup file to the most recent version of the state, and therefore should be run cluster-wide during a software update. Cli command and snapshotting: ipfs-cluster-service now has a migration subcommand that will handle migrating a state to a new version, and upgrading all raft state to refer to the new version of state. migration cli command and snapshotting first draft Remaining: evaluate and set up a proper migration framework so changing the state is enforced to be backwards compatible and requires little new code (2 migration functions between most recent state and update) adding version to migration file Fixing errors more errors more errors Compile errors fixed Fix argparse and uninit fsm errors Work around fsm reflection errors and fix peer diff
- Loading branch information
1 parent
aced97c
commit eed5e3c
Showing
4 changed files
with
149 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters