-
Notifications
You must be signed in to change notification settings - Fork 151
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
feat: v2 fast rebuilding #3401
feat: v2 fast rebuilding #3401
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,6 +132,7 @@ const ( | |
SettingNameV2DataEngineCPUMask = SettingName("v2-data-engine-cpu-mask") | ||
SettingNameV2DataEngineLogLevel = SettingName("v2-data-engine-log-level") | ||
SettingNameV2DataEngineLogFlags = SettingName("v2-data-engine-log-flags") | ||
SettingNameV2DataEngineFastReplicaRebuilding = SettingName("v2-data-engine-fast-replica-rebuilding") | ||
SettingNameFreezeFilesystemForSnapshot = SettingName("freeze-filesystem-for-snapshot") | ||
SettingNameAutoCleanupSnapshotWhenDeleteBackup = SettingName("auto-cleanup-when-delete-backup") | ||
SettingNameDefaultMinNumberOfBackingImageCopies = SettingName("default-min-number-of-backing-image-copies") | ||
|
@@ -225,6 +226,7 @@ var ( | |
SettingNameV2DataEngineCPUMask, | ||
SettingNameV2DataEngineLogLevel, | ||
SettingNameV2DataEngineLogFlags, | ||
SettingNameV2DataEngineFastReplicaRebuilding, | ||
SettingNameReplicaDiskSoftAntiAffinity, | ||
SettingNameAllowEmptyNodeSelectorVolume, | ||
SettingNameAllowEmptyDiskSelectorVolume, | ||
|
@@ -344,6 +346,7 @@ var ( | |
SettingNameV2DataEngineCPUMask: SettingDefinitionV2DataEngineCPUMask, | ||
SettingNameV2DataEngineLogLevel: SettingDefinitionV2DataEngineLogLevel, | ||
SettingNameV2DataEngineLogFlags: SettingDefinitionV2DataEngineLogFlags, | ||
SettingNameV2DataEngineFastReplicaRebuilding: SettingDefinitionV2DataEngineFastReplicaRebuilding, | ||
SettingNameReplicaDiskSoftAntiAffinity: SettingDefinitionReplicaDiskSoftAntiAffinity, | ||
SettingNameAllowEmptyNodeSelectorVolume: SettingDefinitionAllowEmptyNodeSelectorVolume, | ||
SettingNameAllowEmptyDiskSelectorVolume: SettingDefinitionAllowEmptyDiskSelectorVolume, | ||
|
@@ -1443,6 +1446,16 @@ var ( | |
Default: "", | ||
} | ||
|
||
SettingDefinitionV2DataEngineFastReplicaRebuilding = SettingDefinition{ | ||
DisplayName: "V2 Data Engine Fast Replica Rebuilding", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I assume this setting is temporary before v2 becomes GA, as delta replica rebuilding should be eventually enabled always. Right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. YES! Next, I will check when we can launch a setting similar to v1 |
||
Description: "This setting enables the fast replica rebuilding feature for v2 data engine. It relies on the snapshot checksums, so setting the snapshot-data-integrity to **enable** or **fast-check** is a prerequisite.", | ||
Category: SettingCategoryV2DataEngine, | ||
Type: SettingTypeBool, | ||
Required: true, | ||
ReadOnly: false, | ||
Default: "false", | ||
} | ||
|
||
SettingDefinitionAutoCleanupSnapshotWhenDeleteBackup = SettingDefinition{ | ||
DisplayName: "Automatically Cleanup Snapshot When Deleting Backup", | ||
Description: "This setting enables Longhorn to automatically cleanup snapshots when removing backup.", | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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.
Should we make it optional?