Help Center/ Distributed Message Service for RocketMQ/ FAQs/ Instance FAQs/ Does Configuring Only One Broker Group Impact a RocketMQ 4.8.0 Instance?
Updated on 2025-07-29 GMT+08:00

Does Configuring Only One Broker Group Impact a RocketMQ 4.8.0 Instance?

For a RocketMQ 4.8.0 instance using only one group of brokers or whose topic is associated with only one group of brokers, a master/slave switchover is triggered when a broker is faulty. The switchover takes about 30s. If multiple groups are associated, production traffic can be automatically switched to an available group.

To address this issue in scenarios where only one group of brokers is configured:

  • Scale out the instance to associate two or more groups of brokers.
  • Migrate to a 5.x instance. Each 5.x instance flavor has multiple groups of brokers.

When multiple groups of brokers are configured, you can enable the producer detection mechanism (available only on a Java 5.1.4 or later client) by adding the following code to shorten the failover time:

producer.setSendLatencyFaultEnable(true)