You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/modules/kafka/pages/usage-guide/kraft-controller.adoc
+9-10Lines changed: 9 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
-
= KRaft
1
+
= KRaft mode
2
2
:description: Apache Kafka KRaft mode with the Stackable Operator for Apache Kafka
3
3
4
-
Apache Kafka's KRaft mode (Kafka Raft Metadata mode) replaces Apache ZooKeeper with Kafka’s own built-in consensus mechanism based on the Raft protocol.
4
+
Apache Kafka's KRaft mode replaces Apache ZooKeeper with Kafka’s own built-in consensus mechanism based on the Raft protocol.
5
5
This simplifies Kafka’s architecture, reducing operational complexity by consolidating cluster metadata management into Kafka itself.
6
6
7
7
WARNING: The Stackable Operator for Apache Kafka currently does not support automatic cluster upgrades from Apache ZooKeeper to KRaft.
@@ -38,7 +38,7 @@ spec:
38
38
replicas: 3
39
39
----
40
40
41
-
NOTE: This is mutally exclusive with `spec.clusterConfig.zookeeperConfigMapName`.
41
+
NOTE: Using `spec.controllers` is mutally exclusive with `spec.clusterConfig.zookeeperConfigMapName`.
42
42
43
43
=== Recommendations
44
44
@@ -70,19 +70,17 @@ controllers:
70
70
capacity: 2Gi
71
71
----
72
72
73
-
=== Affinities
74
-
75
-
=== PDBs
76
-
77
73
=== Overrides
78
74
75
+
The configuration of overrides, JVM arguments etc. is similar to the Broker and documented on the xref:concepts:overrides.adoc[concepts page].
76
+
79
77
== Internal operator details
80
78
81
79
KRaft mode requires major configuration changes compared to ZooKeeper:
82
80
83
81
* `cluster-id`: This is set to the `metadata.uid` of the KafkaCluster resource during initial formatting
84
-
* `node.id`: This is a calculated integer, hashed from the `role` and `rolegroup` and `replica` id.
85
-
* `process.roles`: Will always only be `broker` or `controller`. Mixed `broker,controller` servers are not possible.
82
+
* `node.id`: This is a calculated integer, hashed from the `role` and `rolegroup` and added `replica` id.
83
+
* `process.roles`: Will always only be `broker` or `controller`. Mixed `broker,controller` servers are not supported.
86
84
87
85
== Troubleshooting
88
86
@@ -96,7 +94,8 @@ Likely caused by controller resource starvation or unstable Kubernetes schedulin
96
94
97
95
=== Migration issues (ZooKeeper to KRaft)
98
96
99
-
Ensure Kafka version 3.9.x and higher and follow the official migration documentation.
97
+
Ensure Kafka version 3.9.x and higher and follow the official migration documentation.
98
+
The Stackable Kafka operator currently does not support the migration.
For example, if you want to set the `auto.create.topics.enable` to disable automatic topic creation, it can be configured in the KafkaCluster resource like so:
0 commit comments