Best way to migrate Kafka cluster -
i have kafka cluster of 2 nodes. kafka version 0.8.1.
need migrate different set of servers.
whats best way migrate maintaining no downtime , no data loss?
assuming new servers , old servers live in same data center, easiest way add new ones replicas existing partitions have. kafka bring them in sync making them isrs. 1 in-sync should able safely shutdown old nodes.
this of course depends on how consumers configured (will automatically find new nodes?) , version of kafka you're on.
take at:
- https://kafka.apache.org/documentation.html#basic_ops_cluster_expansion
- https://kafka.apache.org/documentation.html#basic_ops_decommissioning_brokers
you need use kafka-reassign-partitions.sh tool make happen. test in non-production environment first.
Comments
Post a Comment