forked from strimzi/strimzi-kafka-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(kraft): kraft-based upgrade and downgrade instructions (strimzi#…
…9435) Signed-off-by: prmellor <pmellor@redhat.com>
- Loading branch information
1 parent
33e12f9
commit 7b0cdd8
Showing
23 changed files
with
496 additions
and
239 deletions.
There are no files selected for viewing
13 changes: 0 additions & 13 deletions
13
documentation/assemblies/upgrading/assembly-downgrade-kafka-versions.adoc
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
documentation/assemblies/upgrading/assembly-downgrade-zookeeper.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// This assembly is included in the following assemblies: | ||
// | ||
// assembly-downgrade.adoc | ||
|
||
[id='assembly-downgrade-kafka-versions-{context}'] | ||
= Downgrading Kafka when using ZooKeeper | ||
|
||
If you are using Kafka in ZooKeeper mode, the downgrade process involves changing the Kafka version and the related `log.message.format.version` and `inter.broker.protocol.version` properties. | ||
|
||
//Version constraints on the downgrade | ||
include::../../modules/upgrading/con-downgrade-target-version.adoc[leveloffset=+1] | ||
//procedure to downgrade Kafka | ||
include::../../modules/upgrading/proc-downgrade-kafka-zookeeper.adoc[leveloffset=+1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 0 additions & 49 deletions
49
documentation/assemblies/upgrading/assembly-upgrade-kafka-versions.adoc
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
documentation/assemblies/upgrading/assembly-upgrade-zookeeper.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// This assembly is included in the following assemblies: | ||
// | ||
// assembly-upgrade.adoc | ||
|
||
[id='assembly-upgrade-zookeeper-{context}'] | ||
= Upgrading Kafka when using ZooKeeper | ||
|
||
[role="_abstract"] | ||
If you are using a ZooKeeper-based Kafka cluster, an upgrade requires an update to the Kafka version and the inter-broker protocol version. | ||
|
||
include::../../modules/upgrading/ref-upgrade-kafka-versions.adoc[leveloffset=+1] | ||
include::../../modules/upgrading/con-upgrade-older-clients.adoc[leveloffset=+1] | ||
|
||
include::../../modules/upgrading/proc-upgrade-kafka-zookeeper.adoc[leveloffset=+1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
documentation/modules/upgrading/con-upgrade-older-clients.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Module included in the following assemblies: | ||
// | ||
// assembly-upgrade-zookeeper.adoc | ||
|
||
[id='con-upgrade-older-clients-{context}'] | ||
= Upgrading clients with older message formats | ||
|
||
[role="_abstract"] | ||
Before Kafka 3.0, you could configure a specific message format for brokers using the `log.message.format.version` property (or the `message.format.version` property at the topic level). | ||
This allowed brokers to accommodate older Kafka clients that were using an outdated message format. | ||
Though Kafka inherently supports older clients without explicitly setting this property, brokers would then need to convert the messages from the older clients, which came with a significant performance cost. | ||
|
||
Apache Kafka Java clients have supported the latest message format version since version 0.11. | ||
If all of your clients are using the latest message version, you can remove the `log.message.format.version` or `message.format.version` overrides when upgrading your brokers. | ||
|
||
However, if you still have clients that are using an older message format version, we recommend upgrading your clients first. | ||
Start with the consumers, then upgrade the producers before removing the `log.message.format.version` or `message.format.version` overrides when upgrading your brokers. | ||
This will ensure that all of your clients can support the latest message format version and that the upgrade process goes smoothly. | ||
|
||
You can track Kafka client names and versions using this metric: | ||
|
||
* `kafka.server:type=socket-server-metrics,clientSoftwareName=<name>,clientSoftwareVersion=<version>,listener=<listener>,networkProcessor=<processor>` | ||
|
||
[TIP] | ||
==== | ||
The following Kafka broker metrics help monitor the performance of message down-conversion: | ||
* `kafka.network:type=RequestMetrics,name=MessageConversionsTimeMs,request={Produce|Fetch}` provides metrics on the time taken to perform message conversion. | ||
* `kafka.server:type=BrokerTopicMetrics,name={Produce|Fetch}MessageConversionsPerSec,topic=([-.\w]+)` provides metrics on the number of messages converted over a period of time. | ||
==== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.