Skip to content

Commit 914029e

Browse files
committed
The first two tasks under Partition Management in the Kafka book
1 parent d1377a5 commit 914029e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

maintenance/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
## Trigger leadership election
3+
4+
This is one of the cases where this repo begs to differ from traditional Kafka setups.
5+
In Kubernetes the restart of a pod, and subsequent start on a different node, should be a non-event.
6+
7+
> ”when a broker is stopped and restarted, it does not resume leadership of any partitions automatically”
8+
9+
_ -- Neha Narkhede, Gwen Shapira, and Todd Palino. ”Kafka: The Definitive Guide” _
10+
11+
Create the `preferred-replica-election-job.yml` resource, after deleting any previous one.
12+
13+
## Changing a Partition's Replicas
14+
15+
> ”From time to time, it may be necessary to change the replica assignments for a partition. Some examples of when this might be needed are:
16+
> * If a topic’s partitions are not balanced across the cluster, causing uneven load on brokers
17+
> * If a broker is taken offline and the partition is under-replicated
18+
> * If a new broker is added and needs to receive a share of the cluster load”
19+
20+
_ -- Neha Narkhede, Gwen Shapira, and Todd Palino. ”Kafka: The Definitive Guide” _
21+
22+
Use the `reassign-paritions-job.yml`, after editing `TOPICS` and `BROKERS`.

0 commit comments

Comments
 (0)