@Override
        public int compareTo(@NotNull ProxyNode o) {
            int rst = Integer.compare(mainNodeIds.size(), o.mainNodeIds.size());
            if (rst != 0) {
                return rst;
            }
            return Integer.compare(node.id(), o.node.id());
        }
Try to move the traffic from controller to broker.
- Let main node(controller) proxied by proxy node(controller).
- Let proxy node(controller) proxy less main node if possible.
core/src/main/java/kafka/automq/zerozone/ProxyNodeMapping.java