-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Feature] Support restoring from a cluster snapshot for shared-data mode (part 1) #53861
[Feature] Support restoring from a cluster snapshot for shared-data mode (part 1) #53861
Conversation
fe/fe-core/src/main/java/com/starrocks/common/RestoreSnapshotConfig.java
Outdated
Show resolved
Hide resolved
fe/fe-core/src/main/java/com/starrocks/server/RestoreSnapshotMgr.java
Outdated
Show resolved
Hide resolved
cc323ba
to
3573838
Compare
c7b9e88
to
7d13b75
Compare
fe/fe-core/src/main/java/com/starrocks/server/RestoreSnapshotMgr.java
Outdated
Show resolved
Hide resolved
7d13b75
to
4065fba
Compare
…part 1) Signed-off-by: xiangguangyxg <[email protected]>
4065fba
to
dac7a9f
Compare
Quality Gate passedIssues Measures |
[Java-Extensions Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
[FE Incremental Coverage Report]✅ pass : 109 / 126 (86.51%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
fe/fe-core/src/main/java/com/starrocks/lake/snapshot/RestoreClusterSnapshotMgr.java
Show resolved
Hide resolved
fe/fe-core/src/main/java/com/starrocks/lake/snapshot/RestoreClusterSnapshotMgr.java
Show resolved
Hide resolved
@@ -0,0 +1,39 @@ | |||
# do not include leader fe | |||
frontends: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FE configure file is xml or json,why invole a new config type ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
using yaml is designed by pm ...
FOLLOWER, | ||
OBSERVER; | ||
|
||
@JsonCreator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use json? This way, we can unify the development to GSON and reduce the types of configuration for users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
json do not support comment and is suitable for machine parsing but not for human reading, it is not suitable for configuration file.
yaml support comment and suitable for both machine parsing and human reading, it is a better new generation configuration file.
by the way, yaml can be handled by Jackson, which is used in many places in FE.
@mergify backport branch-3.4 |
✅ Backports have been created
|
…ode (part 1) (#53861) Signed-off-by: xiangguangyxg <[email protected]> (cherry picked from commit 969593c)
…ode (part 1) (backport #53861) (#54074) Co-authored-by: xiangguangyxg <[email protected]>
Why I'm doing:
To support disaster recovery for shared-data mode.
What I'm doing:
Introduce a config file
cluster_snapshot.yaml
for FE.Put the image file of a cluster snapshot in
fe/meta/image
of the leader FE and clear thefe/meta/bdb
,than use
./bin/start_fe.sh --cluster_snapshot --daemon
to start to restore from the cluster snapshot.Other FE nodes use
./bin/start_fe.sh --helper <leader_ip>:<leader_edit_log_port> --daemon
to start.What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: