Skip to content

Commit 934d68c

Browse files
authored
[Bugfix] Fix Rebalancer V2 Job (From/To) (#1355)
1 parent c8e6b00 commit 934d68c

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- (Bugfix) Fix for ContextExceeded error during backup upload
1111
- (Feature) Version Check V2
1212
- (Bugfix) Disable VersionCheck V2 by default
13+
- (Bugfix) Fix Rebalancer V2 Job (From/To)
1314

1415
## [1.2.30](https://github.com/arangodb/kube-arangodb/tree/1.2.30) (2023-06-16)
1516
- (Feature) AgencyCache Interface

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ covers individual newer features separately.
7272
| [Failover Leader service](docs/design/features/failover_leader_service.md) | 1.2.13 | >= 3.7.0 | Community, Enterprise | 1.2.13 | Production | False | --deployment.feature.failover-leadership | N/A |
7373
| [Spec Default Restore](docs/design/features/deployment_spec_defaults.md) | 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 |
7474
| [Force Rebuild Out Synced Shards](docs/design/features/rebuild_out_synced_shards.md) | 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. |
75+
| [Rebalancer V2](docs/design/features/rebalancer_v2.md) | 1.2.31 | >= 3.10.0 | Community, Enterprise | 1.2.31 | Alpha | False | --deployment.feature.rebalancer-v2 | N/A |
7576

7677
## Operator Community Edition (CE)
7778

docs/design/features/rebalancer_v2.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# ArangoDB Rebalancer Support
2+
3+
## Overview
4+
5+
ArangoDB as of 3.10.0 provide Cluster Rebalancer functionality via [api](https://www.arangodb.com/docs/stable/http/cluster.html#rebalance).
6+
7+
Operator will use above functionality to check shard movement plan and enforce it on the Cluster.
8+
9+
10+
## How to use
11+
12+
To enable this feature use `--deployment.feature.rabalancer-v2` arg, which needs be passed to the operator:
13+
14+
```shell
15+
helm upgrade --install kube-arangodb \
16+
https://github.com/arangodb/kube-arangodb/releases/download/$VER/kube-arangodb-$VER.tgz \
17+
--set "operator.args={--deployment.feature.rabalancer-v2}"
18+
```
19+
20+
To enable Rebalancer in ArangoDeployment:
21+
```yaml
22+
spec:
23+
rebalancer:
24+
enabled: true
25+
```

pkg/deployment/reconcile/action_rebalancer_generate_v2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ func (r actionRebalancerGenerateV2) Start(ctx context.Context) (bool, error) {
104104
Database: db,
105105
Collection: move.Collection.String(),
106106
Shard: move.Shard,
107-
From: move.To,
108-
To: move.From,
107+
From: move.From,
108+
To: move.To,
109109
}
110110
}
111111

0 commit comments

Comments
 (0)