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
MINOR: Improve the KIP-853 documentation (apache#17598)
In docs/ops.html, add a section discussion the difference between static and dynamic quorums. This section also discusses how to find out which quorum type you have. Also discuss the current limitations, such as the inability to transition from static quorums to dynamic.
Add a brief section to docs/upgrade.html discussing controller membership change.
Co-authored-by: Federico Valeri <[email protected]>, Colin P. McCabe <[email protected]>
Reviewers: Justine Olshan <[email protected]>
The static versus dynamic nature of the quorum is determined at the time of formatting.
3867
+
Specifically, the quorum will be formatted as dynamic if <code>controller.quorum.voters</code> is
3868
+
<b>not</b> present, and if the software version is Apache Kafka 3.9 or newer. If you have
3869
+
followed the instructions earlier in this document, you will get a dynamic quorum.<p>
3870
+
3871
+
If you would like the formatting process to fail if a dynamic quorum cannot be achieved, format your
3872
+
controllers using the <code>--feature kraft.version=1</code>. (Note that you should not supply
3873
+
this flag when formatting brokers -- only when formatting controllers.)<p>
3874
+
3875
+
<pre><code class="language-bash">
3876
+
$ bin/kafka-storage.sh format -t KAFKA_CLUSTER_ID --feature kraft.version=1 -c controller_static.properties
3877
+
Cannot set kraft.version to 1 unless KIP-853 configuration is present. Try removing the --feature flag for kraft.version.
3878
+
</code></pre><p>
3879
+
3880
+
Note: Currently it is <b>not</b> possible to convert clusters using a static controller quorum to
3881
+
use a dynamic controller quorum. This function will be supported in the future release.
3882
+
3827
3883
<h5 class="anchor-heading"><a id="kraft_reconfig_add" class="anchor-link"></a><a href="#kraft_reconfig_add">Add New Controller</a></h5>
3828
-
If the KRaft Controller cluster already exists, the cluster can be expanded by first provisioning a new controller using the <a href="#kraft_storage_observers">kafka-storage tool</a> and starting the controller.
3884
+
If a dynamic controller cluster already exists, it can be expanded by first provisioning a new controller using the <a href="#kraft_storage_observers">kafka-storage.sh tool</a> and starting the controller.
3829
3885
3830
3886
After starting the controller, the replication to the new controller can be monitored using the <code>kafka-metadata-quorum describe --replication</code> command. Once the new controller has caught up to the active controller, it can be added to the cluster using the <code>kafka-metadata-quorum add-controller</code> command.
If the KRaft Controller cluster already exists, the cluster can be shrunk using the <code>kafka-metadata-quorum remove-controller</code> command. Until KIP-996: Pre-vote has been implemented and released, it is recommended to shutdown the controller that will be removed before running the remove-controller command.
3895
+
If the dynamic controller cluster already exists, it can be shrunk using the <code>bin/kafka-metadata-quorum.sh remove-controller</code> command. Until KIP-996: Pre-vote has been implemented and released, it is recommended to shutdown the controller that will be removed before running the remove-controller command.
3840
3896
3841
3897
When using broker endpoints use the --bootstrap-server flag:
<p><b>If you are upgrading from a version prior to 2.1.x, please see the note in step 5 below about the change to the schema used to store consumer offsets.
52
+
Once you have changed the inter.broker.protocol.version to the latest version, it will not be possible to downgrade to a version prior to 2.1.</b></p>
53
+
54
+
<p><b>For a rolling upgrade:</b></p>
55
+
56
+
<ol>
57
+
<li>Update server.properties on all brokers and add the following properties. CURRENT_KAFKA_VERSION refers to the version you
58
+
are upgrading from. CURRENT_MESSAGE_FORMAT_VERSION refers to the message format version currently in use. If you have previously
59
+
overridden the message format version, you should keep its current value. Alternatively, if you are upgrading from a version prior
60
+
to 0.11.0.x, then CURRENT_MESSAGE_FORMAT_VERSION should be set to match CURRENT_KAFKA_VERSION.
<p><b>If you are upgrading from a version prior to 3.3.0, please see the note in step 3 below. Once you have changed the metadata.version to the latest version, it will not be possible to downgrade to a version prior to 3.3-IV0.</b></p>
93
+
94
+
<p><b>For a rolling upgrade:</b></p>
95
+
96
+
<ol>
97
+
<li>Upgrade the brokers one at a time: shut down the broker, update the code, and restart it. Once you have done so, the
98
+
brokers will be running the latest version and you can verify that the cluster's behavior and performance meets expectations.
99
+
</li>
100
+
<li>Once the cluster's behavior and performance has been verified, bump the metadata.version by running
101
+
<code>
102
+
bin/kafka-features.sh upgrade --metadata 3.8
103
+
</code>
104
+
</li>
105
+
<li>Note that cluster metadata downgrade is not supported in this version since it has metadata changes.
106
+
Every <a href="https://github.com/apache/kafka/blob/trunk/server-common/src/main/java/org/apache/kafka/server/common/MetadataVersion.java">MetadataVersion</a>
107
+
after 3.2.x has a boolean parameter that indicates if there are metadata changes (i.e. <code>IBP_3_3_IV3(7, "3.3", "IV3", true)</code> means this version has metadata changes).
108
+
Given your current and target versions, a downgrade is only possible if there are no metadata changes in the versions between.</li>
109
+
</ol>
110
+
111
+
<h5><a id="upgrade_381_notable" href="#upgrade_381_notable">Notable changes in 3.8.1</a></h5>
112
+
<ul>
113
+
<li>In case you run your Kafka clusters with no execution permission for the <code>/tmp</code> partition, Kafka will not work properly. It might either refuse to start or fail
114
+
when producing and consuming messages. This is due to the compression libraries <code>zstd-jni</code> and <code>snappy</code>.
115
+
To remediate this problem you need to pass the following JVM flags to Kafka <code>ZstdTempFolder</code> and <code>org.xerial.snappy.tempdir</code> pointing to a directory with execution permissions.
116
+
For example, this could be done via the <code>KAFKA_OPTS</code> environment variable like follows: <code>export KAFKA_OPTS="-DZstdTempFolder=/opt/kafka/tmp -Dorg.xerial.snappy.tempdir=/opt/kafka/tmp"</code>.
117
+
This is a known issue for version 3.8.0.
118
+
</li>
44
119
<li>In 3.8.0 the <code>kafka.utils.Thottler</code> metric was accidentally renamed to <code>org.apache.kafka.storage.internals.utils.Throttler</code>.
45
120
This change has been reverted and the metric is now named <code>kafka.utils.Thottler</code> again.
0 commit comments