diff options
author | Staffan Olsson <staffan@repos.se> | 2017-11-10 09:50:44 +0100 |
---|---|---|
committer | Staffan Olsson <staffan@repos.se> | 2017-11-10 09:56:52 +0100 |
commit | e6a7aec8bd4db6cb75617e05dd451f77f9a0cd54 (patch) | |
tree | 8eac731cf0a0869fda0b6206e7f546b3fc9f0432 /maintenance | |
parent | d1377a55de27f2f7fbc2a0b445d50f3967d4b18a (diff) | |
download | kubernetes-kafka-e6a7aec8bd4db6cb75617e05dd451f77f9a0cd54.tar.gz kubernetes-kafka-e6a7aec8bd4db6cb75617e05dd451f77f9a0cd54.tar.bz2 kubernetes-kafka-e6a7aec8bd4db6cb75617e05dd451f77f9a0cd54.zip |
The first two tasks under Partition Management in the Kafka book
Diffstat (limited to 'maintenance')
-rw-r--r-- | maintenance/README.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/maintenance/README.md b/maintenance/README.md new file mode 100644 index 0000000..efe1d81 --- /dev/null +++ b/maintenance/README.md @@ -0,0 +1,22 @@ + +## Re-assign Leadership + +This is one of the cases where this repo begs to differ from traditional Kafka setups. +In Kubernetes the restart of a pod, and subsequent start on a different node, should be a non-event. + +> ”when a broker is stopped and restarted, it does not resume leadership of any partitions automatically” + +_-- Neha Narkhede, Gwen Shapira, and Todd Palino. ”Kafka: The Definitive Guide”_ + +Create the `preferred-replica-election-job.yml` resource, after deleting any previous one. + +## Change a Partition's Replicas + +> ”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: +> * If a topic’s partitions are not balanced across the cluster, causing uneven load on brokers +> * If a broker is taken offline and the partition is under-replicated +> * If a new broker is added and needs to receive a share of the cluster load” + +_-- Neha Narkhede, Gwen Shapira, and Todd Palino. ”Kafka: The Definitive Guide”_ + +Use the `reassign-paritions-job.yml`, after editing `TOPICS` and `BROKERS`. |