1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-14 11:57:37 +00:00
kube-arangodb/docs/features/failover_leader_service.md

30 lines
1 KiB
Markdown
Raw Normal View History

---
layout: page
title: Failover Leader service
parent: List of all features
---
2023-06-26 10:35:56 +00:00
# Failover Leader service
## Overview
This feature is designed to solve the problem with the Leader service in Active Failover mode.
It attaches the `deployment.arangodb.com/leader=true` label to the Leader member of the cluster.
If a member is a Follower, then this label is removed.
Above labels are used by the cluster Services to route the traffic to the Leader member.
In case of double Leader situation (which will be fixed in future versions of ArangoDB),
the operator will remove the `deployment.arangodb.com/leader=true` label from all members,
which will cause the cluster outage.
## How to use
This feature is disabled by default.
To enable it use `--deployment.feature.failover-leadership ` arg, which needs be passed to the operator:
```shell
helm upgrade --install kube-arangodb \
https://github.com/arangodb/kube-arangodb/releases/download/$VER/kube-arangodb-$VER.tgz \
--set "operator.args={--deployment.feature.force-rebuild-out-synced-shards}"
```