AWS Security ChangesHomeSearch

AWS msk documentation change

Service: msk · 2025-10-16 · Documentation low

File: msk/latest/developerguide/migration.md

Summary

Rewrote migration documentation to emphasize MSK Replicator for same-account migrations and MirrorMaker 2.0 for non-MSK/cross-account scenarios. Removed detailed MirrorMaker 1.0 best practices section.

Security assessment

The changes focus on migration tool recommendations and architectural guidance rather than addressing security vulnerabilities. While encryption and replication reliability are mentioned, these are standard operational considerations rather than responses to security issues.

Diff

diff --git a/msk/latest/developerguide/migration.md b/msk/latest/developerguide/migration.md
index 938a1e582..ea20404c3 100644
--- a//msk/latest/developerguide/migration.md
+++ b//msk/latest/developerguide/migration.md
@@ -5 +5 @@
-MirrorMaker 1.0 best practicesAdvantages of MirrorMaker 2.*
+# Migrate Kafka workloads to an Amazon MSK cluster
@@ -7,99 +7 @@ MirrorMaker 1.0 best practicesAdvantages of MirrorMaker 2.*
-# Migrate to an Amazon MSK Cluster
-
-Amazon MSK Replicator can be used for MSK cluster migration. See [What is Amazon MSK Replicator?](./msk-replicator.html). Alternatively, you can use Apache MirrorMaker 2.0 to migrate from a non-MSK cluster to an Amazon MSK cluster. For an example of how to do this, see [Migrate an on-premises Apache Kafka cluster to Amazon MSK by using MirrorMaker](https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/migrate-an-on-premises-apache-kafka-cluster-to-amazon-msk-by-using-mirrormaker.html). For information about how to use MirrorMaker, see [Mirroring data between clusters](https://kafka.apache.org/documentation/#basic_ops_mirror_maker) in the Apache Kafka documentation. We recommend setting up MirrorMaker in a highly available configuration.
-
-###### An outline of the steps to follow when using MirrorMaker to migrate to an MSK cluster
-
-  1. Create the destination MSK cluster
-
-  2. Start MirrorMaker from an Amazon EC2 instance within the same Amazon VPC as the destination cluster.
-
-  3. Inspect the MirrorMaker lag.
-
-  4. After MirrorMaker catches up, redirect producers and consumers to the new cluster using the MSK cluster bootstrap brokers.
-
-  5. Shut down MirrorMaker.
-
-
-
-
-## MirrorMaker 1.0 best practices
-
-This list of best practices applies to MirrorMaker 1.0.
-
-  * Run MirrorMaker on the destination cluster. This way, if a network problem happens, the messages are still available in the source cluster. If you run MirrorMaker on the source cluster and events are buffered in the producer and there is a network issue, events might be lost. 
-
-  * If encryption is required in transit, run it in the source cluster.
-
-  * For consumers, set auto.commit.enabled=false
-
-  * For producers, set 
-
-    * max.in.flight.requests.per.connection=1
-
-    * retries=Int.Max_Value
-
-    * acks=all
-
-    * max.block.ms = Long.Max_Value
-
-  * For a high producer throughput:
-
-    * Buffer messages and fill message batches — tune buffer.memory, batch.size, linger.ms
-
-    * Tune socket buffers — receive.buffer.bytes, send.buffer.bytes
-
-  * To avoid data loss, turn off auto commit at the source, so that MirrorMaker can control the commits, which it typically does after it receives the ack from the destination cluster. If the producer has acks=all and the destination cluster has min.insync.replicas set to more than 1, the messages are persisted on more than one broker at the destination before the MirrorMaker consumer commits the offset at the source.
-
-  * If order is important, you can set retries to 0. Alternatively, for a production environment, set max inflight connections to 1 to ensure that the batches sent out are not committed out of order if a batch fails in the middle. This way, each batch sent is retried until the next batch is sent out. If max.block.ms is not set to the maximum value, and if the producer buffer is full, there can be data loss (depending on some of the other settings). This can block and back-pressure the consumer.
-
-  * For high throughput
-
-    * Increase buffer.memory.
-
-    * Increase batch size.
-
-    * Tune linger.ms to allow the batches to fill. This also allows for better compression, less network bandwidth usage, and less storage on the cluster. This results in increased retention. 
-
-    * Monitor CPU and memory usage.
-
-  * For high consumer throughput
-
-    * Increase the number of threads/consumers per MirrorMaker process — num.streams.
-
-    * Increase the number of MirrorMaker processes across machines first before increasing threads to allow for high availability.
-
-    * Increase the number of MirrorMaker processes first on the same machine and then on different machines (with the same group ID).
-
-    * Isolate topics that have very high throughput and use separate MirrorMaker instances.
-
-  * For management and configuration
-
-    * Use AWS CloudFormation and configuration management tools like Chef and Ansible.
-
-    * Use Amazon EFS mounts to keep all configuration files accessible from all Amazon EC2 instances.
-
-    * Use containers for easy scaling and management of MirrorMaker instances.
-
-  * Typically, it takes more than one consumer to saturate a producer in MirrorMaker. So, set up multiple consumers. First, set them up on different machines to provide high availability. Then, scale individual machines up to having a consumer for each partition, with consumers equally distributed across machines.
-
-  * For high throughput ingestion and delivery, tune the receive and send buffers because their defaults might be too low. For maximum performance, ensure that the total number of streams (num.streams) matches all of the topic partitions that MirrorMaker is trying to copy to the destination cluster.
-
-
-
-
-## Advantages of MirrorMaker 2.*
-
-  * Makes use of the Apache Kafka Connect framework and ecosystem.
-
-  * Detects new topics and partitions.
-
-  * Automatically syncs topic configuration between clusters.
-
-  * Supports "active/active" cluster pairs, as well as any number of active clusters.
-
-  * Provides new metrics including end-to-end replication latency across multiple data centers and clusters.
-
-  * Emits offsets required to migrate consumers between clusters and provides tooling for offset translation.
-
-  * Supports a high-level configuration file for specifying multiple clusters and replication flows in one place, compared to low-level producer/consumer properties for each MirrorMaker 1.* process.
+Amazon MSK Replicator supports migrations between Amazon MSK clusters in the same AWS account. For migrations from non-MSK clusters, such as your Apache Kafka workloads, or between cross-account Amazon MSK clusters, you must use Apache MirrorMaker 2.0.
@@ -106,0 +9 @@ This list of best practices applies to MirrorMaker 1.0.
+[MSK Replicator](./msk-replicator.html) is a fully managed, serverless solution that automates data migration to Amazon MSK. MSK Replicator handles scaling, monitoring, and maintenance tasks without requiring infrastructure management. It also maintains topic configurations and consumer group offsets during migration, and integrates with other AWS services.
@@ -107,0 +11 @@ This list of best practices applies to MirrorMaker 1.0.
+[Apache MirrorMaker 2.0](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=27846330) is an open-source tool that requires manual setup and management, but provides detailed control over the migration process. You can define custom replication rules and migrate between any Apache Kafka clusters regardless of the hosting platform or across different AWS accounts. For information about using MirrorMaker to migrate your clusters, see [Geo-Replication (Cross-Cluster Data Mirroring)](https://kafka.apache.org/40/documentation.html#georeplication). We recommend setting up MirrorMaker in a highly available configuration.
@@ -108,0 +13 @@ This list of best practices applies to MirrorMaker 1.0.
+For more information about how to choose the right replication strategy for your workload, see [Amazon MSK Replicator and MirrorMaker2: Choosing the right replication strategy for Apache Kafka disaster recovery and migrations](https://aws.amazon.com/blogs/big-data/amazon-msk-replicator-and-mirrormaker2-choosing-the-right-replication-strategy-for-apache-kafka-disaster-recovery-and-migrations/).
@@ -118 +23 @@ Tag resources using API
-Migrate your Apache Kafka cluster to Amazon MSK
+Delete a cluster