You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Spec Default Restore | 1.2.21 | >= 3.7.0 | Community, Enterprise | 1.2.21 | Beta | True | --deployment.feature.deployment-spec-defaults-restore | If set to False Operator will not change ArangoDeployment Spec |
72
+
| Force Rebuild Out Synced Shards | 1.2.27 | >= 3.8.0 | Community, Enterprise | 1.2.27 | Beta | False | --deployment.feature.force-rebuild-out-synced-shards | It should be used only if user is aware of the risks. |
Copy file name to clipboardExpand all lines: cmd/cmd.go
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -154,11 +154,13 @@ var (
154
154
concurrentUploadsint
155
155
}
156
156
operatorTimeoutsstruct {
157
-
k8s time.Duration
158
-
arangoD time.Duration
159
-
arangoDCheck time.Duration
160
-
reconciliation time.Duration
161
-
agency time.Duration
157
+
k8s time.Duration
158
+
arangoD time.Duration
159
+
arangoDCheck time.Duration
160
+
reconciliation time.Duration
161
+
agency time.Duration
162
+
shardRebuild time.Duration
163
+
shardRebuildRetry time.Duration
162
164
}
163
165
chaosOptionsstruct {
164
166
allowedbool
@@ -211,6 +213,8 @@ func init() {
211
213
f.DurationVar(&operatorTimeouts.arangoDCheck, "timeout.arangod-check", globals.DefaultArangoDCheckTimeout, "The version check request timeout to the ArangoDB")
212
214
f.DurationVar(&operatorTimeouts.agency, "timeout.agency", globals.DefaultArangoDAgencyTimeout, "The Agency read timeout")
213
215
f.DurationVar(&operatorTimeouts.reconciliation, "timeout.reconciliation", globals.DefaultReconciliationTimeout, "The reconciliation timeout to the ArangoDB CR")
216
+
f.DurationVar(&operatorTimeouts.shardRebuild, "timeout.shard-rebuild", globals.DefaultOutSyncedShardRebuildTimeout, "Timeout after which particular out-synced shard is considered as failed and rebuild is triggered")
217
+
f.DurationVar(&operatorTimeouts.shardRebuildRetry, "timeout.shard-rebuild-retry", globals.DefaultOutSyncedShardRebuildRetryTimeout, "Timeout after which rebuild shards retry flow is triggered")
214
218
f.DurationVar(&shutdownOptions.delay, "shutdown.delay", defaultShutdownDelay, "The delay before running shutdown handlers")
215
219
f.DurationVar(&shutdownOptions.timeout, "shutdown.timeout", defaultShutdownTimeout, "Timeout for shutdown handlers")
# Force rebuild out-synced Shards with broken Merkle Tree
2
+
3
+
## Overview
4
+
5
+
TODO
6
+
7
+
## How to use
8
+
9
+
This feature is disabled by default.
10
+
- To enable it use `--deployment.feature.force-rebuild-out-synced-shards` arg, which needs be passed to the operator.
11
+
- Optionally we can override default timeouts by attaching following args to the operator:
12
+
-`--timeout.shard-rebuild {duration}` - timeout after which particular out-synced shard is considered as failed and rebuild is triggered (default 60m0s)
13
+
-`--timeout.shard-rebuild-retry {duration}` - timeout after which rebuild shards retry flow is triggered (default 60m0s)
14
+
15
+
Here is the example `helm` command which enables this feature and sets shard-rebuild timeout to 10 minutes:
0 commit comments