AutoMQ ensures seamless data distribution with automatic partition reassignment during cluster changes, leveraging cloud-native scalability and Kafka compatibility.
This document presents the Kafka CLI tools for verifying automatic partition reassignment and data balancing while scaling an AutoMQ cluster. The Kafka CLI tools run via a Docker image offered by AutoMQ.
Create a topic with 16 partitions and distribute a balanced load.
As you start and stop brokers, check to see if partitions automatically reassign themselves across different brokers.
This automatic data balancing is an intrinsic feature of AutoMQ, ensuring that data is distributed automatically and evenly throughout the cluster. By observing the distribution of partitions and broker load, you can confirm whether automatic partition balancing functions as anticipated.
Prerequisites
Before conducting automated partition data rebalance tests, the following conditions must be met:Complete the installation and deployment of the AutoMQ cluster. You can refer to the following methods for installing and deploying AutoMQ:
Additionally, the host running the test program needs to meet the following conditions:
Linux/Mac/Windows Subsystem for Linux
Docker
Experience Partition Reassignment Triggered by Cluster Node Changes.
If the previous AutoMQ cluster was deployed by following the guide Deploy Multi-Nodes Test Cluster on Docker▸, the cluster bootstrap address you would have acquired might look like “server1:9092,server2:9092,server3:9092”, and the AutoMQ cluster would be in the “automq_net” Docker network.
Please replace the bootstrap-server address below with the actual address of the cluster based on your deployment configuration.
Stop a server, causing its partitions to be reassigned to other nodes. After stopping, you can observe how producers and consumers recover.
docker stop automq-server3
After stopping, the producer logs will appear as follows:
[2024-04-29 05:00:03,436] WARN [Producer clientId=perf-producer-client] Got error produce response with correlation id 49732 on topic-partition self-balancing-topic-7, retrying (2147483641 attempts left). Error: NOT_LEADER_OR_FOLLOWER (org.apache.kafka.clients.producer.internals.Sender)[2024-04-29 05:00:03,438] WARN [Producer clientId=perf-producer-client] Received invalid metadata error in produce request on partition self-balancing-topic-7 due to org.apache.kafka.common.errors.NotLeaderOrFollowerException: For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.. Going to request metadata update now (org.apache.kafka.clients.producer.internals.Sender)
After waiting a few seconds, you will see that production and consumption return to normal.
2024-05-07 11:56:08,920] WARN [Producer clientId=perf-producer-client] Received invalid metadata error in produce request on partition self-balancing-topic-3 due to org.apache.kafka.common.errors.NotLeaderOrFollowerException: For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.. Going to request metadata update now (org.apache.kafka.clients.producer.internals.Sender)[2024-05-07 11:56:08,920] WARN [Producer clientId=perf-producer-client] Got error produce response with correlation id 42141 on topic-partition self-balancing-topic-3, retrying (2147483646 attempts left). Error: NOT_LEADER_OR_FOLLOWER (org.apache.kafka.clients.producer.internals.Sender)[2024-05-07 11:56:08,920] WARN [Producer clientId=perf-producer-client] Received invalid metadata error in produce request on partition self-balancing-topic-3 due to org.apache.kafka.common.errors.NotLeaderOrFollowerException: For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.. Going to request metadata update now (org.apache.kafka.clients.producer.internals.Sender)[2024-05-07 11:56:08,588] 25693 records sent, 5138.6 records/sec (5.02 MB/sec), 8.9 ms avg latency, 1246.0 ms max latency.[2024-05-07 11:56:13,589] 25607 records sent, 5120.4 records/sec (5.00 MB/sec), 1.8 ms avg latency, 44.0 ms max latency.[2024-05-07 11:56:18,591] 25621 records sent, 5121.1 records/sec (5.00 MB/sec), 1.6 ms avg latency, 10.0 ms max latency.
Review Partition Distribution Again
After the producer resumes writing, we examine the partition distribution once more and observe that all partitions are located on broker1. AutoMQ efficiently and quickly completes the reassignment of partitions and rebalancing of traffic from the stopped node.
Restart automq-server3 to trigger the automatic reassignment of partitions. After several seconds of retrying, the producer and consumer can resume operations.
docker start automq-server3
At this stage, if we review the partition distribution again, we can confirm that the partitions have been automatically reassigned.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AutoMQ Documentation","colors":{"primary":"#2449D4","light":"#2449D4","dark":"#2449D4"},"logo":{"light":"https://mintcdn.com/automq/s9vNxeyMGZ1r1DRV/logo/automq-black.svg?fit=max\u0026auto=format\u0026n=s9vNxeyMGZ1r1DRV\u0026q=85\u0026s=bcc93ae74a4143ae2b7602497b7b354b","dark":"https://mintcdn.com/automq/s9vNxeyMGZ1r1DRV/logo/automq-white.svg?fit=max\u0026auto=format\u0026n=s9vNxeyMGZ1r1DRV\u0026q=85\u0026s=209c336f52b4021f2e991e10d07613ae"},"favicon":"https://mintcdn.com/automq/s9vNxeyMGZ1r1DRV/logo/favicon.svg?fit=max\u0026auto=format\u0026n=s9vNxeyMGZ1r1DRV\u0026q=85\u0026s=d736b0934a674250c9dbe95a5f642fb9","appearance":{"default":"light","strict":true},"navbar":{"links":[{"icon":"github","href":"https://github.com/automq/automq","label":"Github"}],"primary":{"type":"button","label":"automq.com","href":"https://www.automq.com"}},"footer":{"socials":{"slack":"https://go.automq.com/slack","telegram":"https://t.me/+VgqhN9wqBGIzYmU1","x":"https://x.com/AutoMQ_Lab","github":"https://github.com/automq/automq","linkedin":"https://linkedin.com/company/automq"}},"icons":{"library":"lucide"},"integrations":{"ga4":{"measurementId":"G-4F3BX9DFG9"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Github","icon":"github","href":"https://github.com/automq/automq"},{"anchor":"Slack","icon":"slack","href":"https://go.automq.com/slack"},{"anchor":"Telegram","icon":"Telegram","href":"https://t.me/+VgqhN9wqBGIzYmU1"},{"anchor":"Blog","icon":"newspaper","href":"https://www.automq.com/blog"}]},"languages":[{"language":"en","href":""},{"language":"cn","href":"zh/automq/what-is-automq/overview"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"automq","hasAudioNarration":false,"actualSubdomain":"automq","customDomains":["docs.automq.com"],"gitSource":{"type":"github","owner":"automq","repo":"sitebox","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6affcd905a6167f7fab52b11","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"cn","tag":"AutoMQ BYOC","count":127},{"language":"en","tag":"AutoMQ BYOC","count":116},{"language":"en","tag":"AutoMQ Open Source","count":61},{"language":"cn","tag":"AutoMQ Open Source","count":57},{"language":"en","tag":"Kafka Connect","count":48},{"language":"cn","tag":"Kafka Connect","count":48},{"language":"en","tag":"Sink Connectors","count":26},{"language":"cn","tag":"Sink Connectors","count":26},{"language":"en","tag":"Source Connectors","count":19},{"language":"cn","tag":"Source Connectors","count":19},{"language":"cn","tag":"快速开始","count":16},{"language":"en","tag":"Integrations","count":14},{"language":"en","tag":"Getting Started","count":12},{"language":"cn","tag":"生态集成","count":12},{"language":"en","tag":"Architecture","count":11},{"language":"cn","tag":"管理环境","count":11},{"language":"cn","tag":"技术架构","count":11},{"language":"cn","tag":"安装 BYOC 环境","count":9},{"language":"en","tag":"Appendix","count":8},{"language":"en","tag":"Eliminate Inter-Zone Traffics","count":8}]},"assistantConfig":{"deflection":{"enabled":true,"email":"support@automq.com"}},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"static/style.css","content":"#content-area{word-break:keep-all;white-space:normal;overflow-wrap:normal}header div:nth-child(2) p{display:none}.emphasize-placeholder{background-color:#e0f2ff;border:1px solid #2d64eb;padding:2px 6px;border-radius:4px;font-family:monospace;cursor:pointer;display:inline-flex;align-items:center}.emoji-flip{display:inline-block;transform:scaleX(-1);font-size:0.8em;margin-left:4px}"}]}
{"page":{"pagePath":"automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change","slug":"/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change","pageMetadata":{"title":"Example: Self-Balancing when Cluster Nodes Change","description":"AutoMQ ensures seamless data distribution with automatic partition reassignment during cluster changes, leveraging cloud-native scalability and Kafka compatibility.","href":"/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"AutoMQ ensures seamless data distribution with automatic partition reassignment during cluster changes, leveraging cloud-native scalability and Kafka compatibility.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This document presents the Kafka CLI tools for verifying automatic partition reassignment and data balancing while scaling an AutoMQ cluster. The Kafka CLI tools run via a Docker image offered by AutoMQ.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Create a topic with 16 partitions and distribute a balanced load.`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`As you start and stop brokers, check to see if partitions automatically reassign themselves across different brokers.`}),`\n`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`This automatic data balancing is an intrinsic feature of AutoMQ, ensuring that data is distributed automatically and evenly throughout the cluster. By observing the distribution of partitions and broker load, you can confirm whether automatic partition balancing functions as anticipated.`}),`\n`,_jsx(Heading,{level:`3`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsx(_components.p,{children:`Before conducting automated partition data rebalance tests, the following conditions must be met:`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Complete the installation and deployment of the AutoMQ cluster`}),`. You can refer to the following methods for installing and deploying AutoMQ:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/automq/getting-started/deploy-multi-nodes-test-cluster-on-docker`,children:`Deploy Multi-Nodes Test Cluster on Docker▸`})}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`If deploying the cluster through `,_jsx(_components.a,{href:`/automq/deployment/deploy-multi-nodes-cluster-on-linux`,children:`Deploy Multi-Nodes Cluster on Linux▸`}),` or `,_jsx(_components.a,{href:`/automq/deployment/deploy-multi-nodes-cluster-on-kubernetes`,children:`Deploy Multi-Nodes Cluster on Kubernetes▸`}),`, you need to ensure that when starting the Controller, autobalancer.controller.enable is set to true to enable automatic data rebalancing.`]})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Additionally, the host running the test program`}),` needs to meet the following conditions:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Linux/Mac/Windows Subsystem for Linux`}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Docker`}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`experience-partition-reassignment-triggered-by-cluster-node-changes`,children:`Experience Partition Reassignment Triggered by Cluster Node Changes.`}),`\n`,_jsxs(_components.p,{children:[`If the previous AutoMQ cluster was deployed by following the guide `,_jsx(_components.a,{href:`/automq/getting-started/deploy-multi-nodes-test-cluster-on-docker`,children:`Deploy Multi-Nodes Test Cluster on Docker▸`}),`, the cluster bootstrap address you would have acquired might look like “`,_jsx(_components.strong,{children:`server1:9092,server2:9092,server3:9092`}),`”, and the AutoMQ cluster would be in the “`,_jsx(_components.strong,{children:`automq_net`}),`” Docker network.`]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`Please replace the bootstrap-server address below with the actual address of the cluster based on your deployment configuration.`})}),`\n`,_jsx(Heading,{level:`4`,id:`create-topic`,children:`Create Topic`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --network`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automq_net`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automqinc/automq:1.5.5`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /bin/bash`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/opt/kafka/kafka/bin/kafka-topics.sh --partitions 16 --create --topic self-balancing-topic --bootstrap-server server1:9092,server2:9092,server3:9092\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`view-partition-distribution`,children:`View Partition Distribution`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --network`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automq_net`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automqinc/automq:1.5.5`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /bin/bash`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/opt/kafka/kafka/bin/kafka-topics.sh --topic self-balancing-topic --describe --bootstrap-server server1:9092,server2:9092,server3:9092\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Topic: self-balancing-topic TopicId: AjoAB22YRRq7w6MdtZ4hDA PartitionCount: 16 ReplicationFactor: 1 Configs: min.insync.replicas=1,elasticstream.replication.factor=1,segment.bytes=1073741824`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 0 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 1 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 2 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 3 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 4 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 5 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 6 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 7 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 8 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 9 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 10 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 11 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 12 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 13 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 14 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 15 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`4`,id:`launch-producer`,children:`Launch Producer`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --network`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automq_net`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automqinc/automq:1.5.5`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /bin/bash`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/opt/kafka/kafka/bin/kafka-producer-perf-test.sh --topic self-balancing-topic --num-records=1024000 --throughput 5120 --record-size 1024 --producer-props bootstrap.servers=server1:9092,server2:9092,server3:9092 linger.ms=100 batch.size=524288 buffer.memory=134217728 max.request.size=67108864\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`start-the-consumer`,children:`Start the Consumer`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --network`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automq_net`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automqinc/automq:1.5.5`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /bin/bash`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/opt/kafka/kafka/bin/kafka-consumer-perf-test.sh --topic self-balancing-topic --show-detailed-stats --timeout 300000 --messages=1024000 --reporting-interval 1000 --bootstrap-server=server1:9092,server2:9092,server3:9092\"`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`stop-the-broker`,children:`Stop the Broker`}),`\n`,_jsx(_components.p,{children:`Stop a server, causing its partitions to be reassigned to other nodes. After stopping, you can observe how producers and consumers recover.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` stop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automq-server3`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`After stopping, the producer logs will appear as follows:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`5`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[2024-04-29 05:00:03,436] WARN [Producer clientId=perf-producer-client] Got error produce response with correlation id 49732 on topic-partition self-balancing-topic-7, retrying (2147483641 attempts left). Error: NOT_LEADER_OR_FOLLOWER (org.apache.kafka.clients.producer.internals.Sender)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[2024-04-29 05:00:03,438] WARN [Producer clientId=perf-producer-client] Received invalid metadata error in produce request on partition self-balancing-topic-7 due to org.apache.kafka.common.errors.NotLeaderOrFollowerException: For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.. Going to request metadata update now (org.apache.kafka.clients.producer.internals.Sender)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`After waiting a few seconds, you will see that production and consumption return to normal.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`2024-05-07 11:56:08,920] WARN [Producer clientId=perf-producer-client] Received invalid metadata error in produce request on partition self-balancing-topic-3 due to org.apache.kafka.common.errors.NotLeaderOrFollowerException: For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.. Going to request metadata update now (org.apache.kafka.clients.producer.internals.Sender)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[2024-05-07 11:56:08,920] WARN [Producer clientId=perf-producer-client] Got error produce response with correlation id 42141 on topic-partition self-balancing-topic-3, retrying (2147483646 attempts left). Error: NOT_LEADER_OR_FOLLOWER (org.apache.kafka.clients.producer.internals.Sender)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[2024-05-07 11:56:08,920] WARN [Producer clientId=perf-producer-client] Received invalid metadata error in produce request on partition self-balancing-topic-3 due to org.apache.kafka.common.errors.NotLeaderOrFollowerException: For requests intended only for the leader, this error indicates that the broker is not the current leader. For requests intended for any replica, this error indicates that the broker is not a replica of the topic partition.. Going to request metadata update now (org.apache.kafka.clients.producer.internals.Sender)`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[2024-05-07 11:56:08,588] 25693 records sent, 5138.6 records/sec (5.02 MB/sec), 8.9 ms avg latency, 1246.0 ms max latency.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[2024-05-07 11:56:13,589] 25607 records sent, 5120.4 records/sec (5.00 MB/sec), 1.8 ms avg latency, 44.0 ms max latency.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`[2024-05-07 11:56:18,591] 25621 records sent, 5121.1 records/sec (5.00 MB/sec), 1.6 ms avg latency, 10.0 ms max latency.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`4`,id:`review-partition-distribution-again`,children:`Review Partition Distribution Again`}),`\n`,_jsx(_components.p,{children:`After the producer resumes writing, we examine the partition distribution once more and observe that all partitions are located on broker1. AutoMQ efficiently and quickly completes the reassignment of partitions and rebalancing of traffic from the stopped node.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` run`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --network`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automq_net`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automqinc/automq:1.5.0`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /bin/bash`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"/opt/kafka/kafka/bin/kafka-topics.sh --topic self-balancing-topic --describe --bootstrap-server server1:9092,server2:9092,server3:9092\"`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Topic: self-balancing-topic TopicId: AjoAB22YRRq7w6MdtZ4hDA PartitionCount: 16 ReplicationFactor: 1 Configs: min.insync.replicas=1,elasticstream.replication.factor=1,segment.bytes=1073741824`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 0 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 1 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 2 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 3 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 4 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 5 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 6 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 7 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 8 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 9 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 10 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 11 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 12 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 13 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 14 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 15 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`4`,id:`restart-the-broker`,children:`Restart the Broker`}),`\n`,_jsx(_components.p,{children:`Restart automq-server3 to trigger the automatic reassignment of partitions. After several seconds of retrying, the producer and consumer can resume operations.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`docker`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` start`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` automq-server3`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`At this stage, if we review the partition distribution again, we can confirm that the partitions have been automatically reassigned.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`Topic: self-balancing-topic TopicId: AjoAB22YRRq7w6MdtZ4hDA PartitionCount: 16 ReplicationFactor: 1 Configs: min.insync.replicas=1,elasticstream.replication.factor=1,segment.bytes=1073741824`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 0 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 1 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 2 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 3 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 4 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 5 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 6 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 7 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 8 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 9 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 10 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 11 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 12 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 13 Leader: 2 Replicas: 2 Isr: 2`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 14 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:` Topic: self-balancing-topic Partition: 15 Leader: 1 Replicas: 1 Isr: 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Example: Self-Balancing when Cluster Nodes Change","description":"AutoMQ ensures seamless data distribution with automatic partition reassignment during cluster changes, leveraging cloud-native scalability and Kafka compatibility.","href":"/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Prerequisites","slug":"prerequisites","depth":3,"children":[]},{"title":"Experience Partition Reassignment Triggered by Cluster Node Changes.","slug":"experience-partition-reassignment-triggered-by-cluster-node-changes","depth":3,"children":[]},{"title":"Create Topic","slug":"create-topic","depth":4,"children":[]},{"title":"View Partition Distribution","slug":"view-partition-distribution","depth":4,"children":[]},{"title":"Launch Producer","slug":"launch-producer","depth":4,"children":[]},{"title":"Start the Consumer","slug":"start-the-consumer","depth":4,"children":[]},{"title":"Stop the Broker","slug":"stop-the-broker","depth":4,"children":[]},{"title":"Review Partition Distribution Again","slug":"review-partition-distribution-again","depth":4,"children":[]},{"title":"Restart the Broker","slug":"restart-the-broker","depth":4,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/automq/48fec8bab1afa455/content/monitor.js","/_mintlify/custom/automq/c09aa9839083e17a/content/hubspot.js","/_mintlify/custom/automq/786ace9ed17adbd7/content/luckyorange-tracking.js"],"subdomain":"automq","siteName":"AutoMQ Documentation","title":"Example: Self-Balancing when Cluster Nodes Change - AutoMQ Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change","matchLevel":0},"cn":{"href":"/zh/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change","matchLevel":1}}},"lastModified":"2026-02-26T05:26:46.914Z","originalFileLocation":"automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"AutoMQ ensures seamless data distribution with automatic partition reassignment during cluster changes, leveraging cloud-native scalability and Kafka compatibility.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AutoMQ Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Example: Self-Balancing when Cluster Nodes Change - AutoMQ Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"AutoMQ ensures seamless data distribution with automatic partition reassignment during cluster changes, leveraging cloud-native scalability and Kafka compatibility.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AutoMQ Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://automq.mintlify.site/_mintlify/api/og/v2?division=Explore+AutoMQ\u0026amp;title=Example%3A+Self-Balancing+when+Cluster+Nodes+Change\u0026amp;description=AutoMQ+ensures+seamless+data+distribution+with+automatic+partition+reassignment+during+cluster+changes%2C+leveraging+cloud-native+scalability+and+Kafka+compatibil\u0026amp;theme=a9c70ef017645a82054ccd60\u0026amp;signature=c67d206834c23f7b4cc77a19087e7466e106ce744625f16448b8535d1aa73efe\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Example: Self-Balancing when Cluster Nodes Change - AutoMQ Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"AutoMQ ensures seamless data distribution with automatic partition reassignment during cluster changes, leveraging cloud-native scalability and Kafka compatibility.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://automq.mintlify.site/_mintlify/api/og/v2?division=Explore+AutoMQ\u0026amp;title=Example%3A+Self-Balancing+when+Cluster+Nodes+Change\u0026amp;description=AutoMQ+ensures+seamless+data+distribution+with+automatic+partition+reassignment+during+cluster+changes%2C+leveraging+cloud-native+scalability+and+Kafka+compatibil\u0026amp;theme=a9c70ef017645a82054ccd60\u0026amp;signature=c67d206834c23f7b4cc77a19087e7466e106ce744625f16448b8535d1aa73efe\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/automq/ZRmM16tNeY4WJ6hO/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AutoMQ Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2449D4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.automq.com/zh/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.automq.com/#organization\",\"name\":\"AutoMQ Documentation\",\"url\":\"https://docs.automq.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/automq/s9vNxeyMGZ1r1DRV/logo/automq-black.svg?fit=max\u0026auto=format\u0026n=s9vNxeyMGZ1r1DRV\u0026q=85\u0026s=bcc93ae74a4143ae2b7602497b7b354b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.automq.com#website\",\"name\":\"AutoMQ Documentation\",\"url\":\"https://docs.automq.com\",\"publisher\":{\"@id\":\"https://docs.automq.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change#webpage\",\"url\":\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change\",\"name\":\"Example: Self-Balancing when Cluster Nodes Change\",\"description\":\"AutoMQ ensures seamless data distribution with automatic partition reassignment during cluster changes, leveraging cloud-native scalability and Kafka compatibility.\",\"dateModified\":\"2026-02-26T05:26:46.914Z\",\"isPartOf\":{\"@id\":\"https://docs.automq.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Getting Started\",\"item\":\"https://docs.automq.com/automq/getting-started/deploy-multi-nodes-test-cluster-on-docker\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Explore AutoMQ\",\"item\":\"https://docs.automq.com/automq/getting-started/explore-automq/example-partition-reassignment-in-seconds\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Example: Self-Balancing when Cluster Nodes Change\",\"item\":\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change#article\",\"headline\":\"Example: Self-Balancing when Cluster Nodes Change\",\"name\":\"Example: Self-Balancing when Cluster Nodes Change\",\"description\":\"AutoMQ ensures seamless data distribution with automatic partition reassignment during cluster changes, leveraging cloud-native scalability and Kafka compatibility.\",\"url\":\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change\",\"mainEntityOfPage\":{\"@id\":\"https://docs.automq.com/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change#webpage\"},\"dateModified\":\"2026-02-26T05:26:46.914Z\",\"publisher\":{\"@id\":\"https://docs.automq.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.automq.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AutoMQ Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AutoMQ Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change.md","siteName":"AutoMQ Documentation","nav":{"global":{"anchors":[{"anchor":"Github","icon":"github","href":"https://github.com/automq/automq"},{"anchor":"Slack","icon":"slack","href":"https://go.automq.com/slack"},{"anchor":"Telegram","icon":"Telegram","href":"https://t.me/+VgqhN9wqBGIzYmU1"},{"anchor":"Blog","icon":"newspaper","href":"https://www.automq.com/blog"}]},"languages":[{"language":"en","tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":""}]},{"tab":"AutoMQ Open Source","icon":"github","groups":[{"group":"What is AutoMQ?","icon":"book","pages":[{"title":"Overview","href":"/automq/what-is-automq/overview"},{"title":"Difference with Apache Kafka","href":"/automq/what-is-automq/difference-with-apache-kafka"},{"title":"Difference with Tiered Storage","href":"/automq/what-is-automq/difference-with-tiered-storage"},{"title":"Compatibility with Apache Kafka","href":"/automq/what-is-automq/compatibility-with-apache-kafka"},{"title":"Licensing and Enterprise Features","href":"/automq/what-is-automq/licensing-and-enterprise-features"}]},{"group":"Getting Started","icon":"play","pages":[{"title":"Deploy Multi-Nodes Test Cluster on Docker","href":"/automq/getting-started/deploy-multi-nodes-test-cluster-on-docker"},{"group":"Explore AutoMQ","pages":[{"title":"Example: Partition Reassignment in Seconds","href":"/automq/getting-started/explore-automq/example-partition-reassignment-in-seconds"},{"title":"Example: Continuous Data Self-Balancing","description":"Experience the power of AutoMQ's continuous data rebalance for seamless load distribution and enhanced cloud-native scalability, all while maintaining Kafka compatibility.","href":"/automq/getting-started/explore-automq/example-continuous-data-self-balancing"},{"title":"Example: Self-Balancing when Cluster Nodes Change","href":"/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change"}]}]},{"group":"Deployment","icon":"wrench","pages":[{"title":"Overview","description":"AutoMQ offers cloud-native scalability and 100% Kafka compatibility on AWS, Azure, GCP, and more. It supports both public and private clouds.","href":"/automq/deployment/overview"},{"title":"Deploy Multi-Nodes Cluster on Linux","href":"/automq/deployment/deploy-multi-nodes-cluster-on-linux"},{"title":"Deploy Multi-Nodes Cluster on Kubernetes","href":"/automq/deployment/deploy-multi-nodes-cluster-on-kubernetes"},{"title":"Deploy Multi-Nodes Cluster on Kubernetes with Strimzi","href":"/automq/deployment/multi-nodes-cluster-with-strimzi"},{"title":"Introduction and Deployment Recommendations for AutoMQ Open Source Image","href":"/automq/deployment/deployment-recommendations"},{"title":"Performance Tuning for Broker","href":"/automq/deployment/performance-tuning-for-broker"},{"title":"Performance Tuning for Client","href":"/automq/configuration/performance-tuning-for-client"},{"title":"AutoMQ Benchmark","href":"/automq/deployment/automq-benchmark"}]},{"group":"Migration","icon":"arrow-left-right","pages":[{"title":"Overview","href":"/automq/migration/overview"},{"title":"Migrating from Apache Kafka to AutoMQ","href":"/automq/migration/migrating-from-apache-kafka-to-automq"}]},{"group":"Observability","icon":"telescope","pages":[{"title":"Overview","href":"/automq/observability/overview"},{"title":"Integrating Metrics with Prometheus","href":"/automq/observability/integrating-metrics-with-prometheus"},{"title":"Dashboard Configuration","href":"/automq/observability/dashboard-configuration"},{"title":"Prometheus Metrics","href":"/automq/observability/prometheus-metrics"}]},{"group":"Architecture","icon":"landmark","pages":[{"title":"Overview","href":"/automq/architecture/overview"},{"group":"S3Stream Shared Streaming Storage","pages":[{"title":"Overview","href":"/automq/architecture/s3stream-shared-streaming-storage/overview"},{"title":"S3 Storage","href":"/automq/architecture/s3stream-shared-streaming-storage/s3-storage"},{"title":"WAL Storage","href":"/automq/architecture/s3stream-shared-streaming-storage/wal-storage"}]},{"group":"Technical Advantage","icon":"atom","pages":[{"title":"Overview","href":"/automq/architecture/technical-advantage/overview"},{"title":"5x Catch-up Read Efficiency","href":"/automq/architecture/technical-advantage/5x-catch-up-read-efficiency"},{"title":"Continuous Self-Balancing","href":"/automq/architecture/technical-advantage/continuous-self-balancing"},{"title":"Native Compatible with Apache Kafka","href":"/automq/architecture/technical-advantage/native-compatible-with-apache-kafka"},{"title":"Partition Reassignment in Seconds","href":"/automq/architecture/technical-advantage/partition-reassignment-in-seconds"},{"title":"Scale-out/in in Seconds","href":"/automq/architecture/technical-advantage/scale-outin-in-seconds"},{"title":"Stateless Broker","href":"/automq/architecture/technical-advantage/stateless-broker"}]}]},{"group":"Table Topic","icon":"text-search","pages":[{"title":"Overview","href":"/automq/table-topic/overview"},{"title":"Table Topic Quick Start","href":"/automq/table-topic/table-topic-quick-start"},{"title":"Table Topic Configuration","href":"/automq/table-topic/table-topic-configuration"}]},{"group":"Eliminate Inter-Zone Traffics","icon":"audio-lines","pages":[{"title":"Overview","href":"/automq/eliminate-inter-zone-traffics/overview"},{"title":"Broker Configuration","href":"/automq/eliminate-inter-zone-traffics/broker-configuration"},{"title":"Client Configuration","href":"/automq/eliminate-inter-zone-traffics/client-configuration"},{"title":"Monitor Inter Zone Traffic","href":"/automq/eliminate-inter-zone-traffics/monitor-inter-zone-traffic"}]},{"group":"Integrations","icon":"blocks","pages":[{"group":"Data Analysis","pages":[{"title":"Apache Doris","href":"/automq/integrations/data-analysis/apache-doris"},{"title":"Databend","href":"/automq/integrations/data-analysis/databend"},{"title":"Flink","href":"/automq/integrations/data-analysis/flink"},{"title":"RisingWave","href":"/automq/integrations/data-analysis/risingwave"},{"title":"StarRocks","href":"/automq/integrations/data-analysis/starrocks"}]},{"group":"Data Integration","pages":[{"title":"Airbyte","href":"/automq/integrations/data-integration/airbyte"},{"title":"Debezium","href":"/automq/integrations/data-integration/debezium"}]},{"group":"Kafka UI","pages":[{"title":"Kafdrop","href":"/automq/integrations/kafka-ui/kafdrop"},{"title":"Redpanda Console","href":"/automq/integrations/kafka-ui/redpanda-console"}]},{"group":"Observability","pages":[{"title":"Flashcat","href":"/automq/integrations/observability/flashcat"},{"title":"Guance Cloud","href":"/automq/integrations/observability/guance-cloud"},{"title":"Prometheus/VictoriaMetrics","href":"/automq/integrations/observability/prometheus"}]},{"group":"Storage","pages":[{"title":"RustFS","href":"/automq/integrations/storage/rustfs"},{"title":"Tigris","href":"/automq/integrations/storage/tigris"}]}]},{"group":"Configuration","icon":"settings","pages":[{"title":"Broker and Controller Configuration","href":"/automq/configuration/broker-and-controller-configuration"},{"title":"Object Storage Configuration","href":"/automq/configuration/object-storage-configuration"}]},{"group":"Releases","icon":"git-merge","pages":[{"title":"Software Artifact","href":"/automq/releases/software-artifact"},{"url":"https://github.com/AutoMQ/automq/releases/","title":null,"href":"/automq/releases/release-notes"}]},{"group":"Benchmarks","icon":"chart-spline","pages":[{"title":"AutoMQ vs. Apache Kafka Benchmarks and Cost","href":"/automq/benchmarks/automq-vs-apache-kafka-benchmarks-and-cost"}]},{"group":"Reference","icon":"book-marked","pages":[{"title":"Glossary","href":"/automq/reference/glossary"}]}]},{"tab":"AutoMQ BYOC","icon":"cloud","pages":[{"title":"AutoMQ BYOC","href":"/automq-cloud/overview/what-is-automq-cloud"}]}]},{"language":"cn","pages":[{"title":"cn","href":"/zh/automq/getting-started/explore-automq/example-self-balancing-when-cluster-nodes-change"}]}]},"basePath":"","title":"Example: Self-Balancing when Cluster Nodes Change - AutoMQ Documentation","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":[],"chunks":[]}