-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
102 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Force rebuild out-synced Shards with broken Merkle Tree | ||
|
||
## Overview | ||
|
||
TODO | ||
|
||
## How to use | ||
|
||
This feature is disabled by default. To enable it `--deployment.feature.force-rebuild-out-synced-shards` arg needs be passed to the operator. | ||
We can also change default timeout value (60 min) for this feature by `--timeout.shard-rebuild duration` arg. | ||
|
||
Here is the example `helm` command which enables this feature and sets timeout to 10 minutes: | ||
```shell | ||
export VER=1.2.26; helm upgrade --install kube-arangodb \ | ||
https://github.com/arangodb/kube-arangodb/releases/download/$VER/kube-arangodb-$VER.tgz \ | ||
--set operator.imagePullPolicy=Always \ | ||
--set "operator.args={--deployment.feature.force-rebuild-out-synced-shards,--timeout.shard-rebuild=10m}" \ | ||
--set operator.image=wierzbiks/kube-arangodb:$IMAGETAG | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// | ||
// DISCLAIMER | ||
// | ||
// Copyright 2023 ArangoDB GmbH, Cologne, Germany | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
// | ||
// Copyright holder is ArangoDB GmbH, Cologne, Germany | ||
// | ||
|
||
package features | ||
|
||
func init() { | ||
registerFeature(rebuildOutSyncedShards) | ||
} | ||
|
||
var rebuildOutSyncedShards = &feature{ | ||
name: "force-rebuild-out-synced-shards", | ||
description: "Force rebuild permanently out-synced shards due to a bug in ArangoDB 3.8-3.10", | ||
version: "3.8.0", | ||
enterpriseRequired: true, | ||
enabledByDefault: false, | ||
hidden: true, | ||
} | ||
|
||
func RebuildOutSyncedShards() Feature { | ||
return rebuildOutSyncedShards | ||
} |
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