qianye1001 opened a new issue, #11510: URL: https://github.com/apache/rocketmq/issues/11510
### Is Your Feature Request Related to a Problem? A broker currently starts the Fast Remoting endpoint (`listenPort - 2`, normally 10909) and the built-in HA acceptor (`haListenPort`, normally 10912) without independent listener switches. Standalone deployments that only need the main Remoting endpoint cannot disable these listeners through broker configuration. ### Describe the Solution You'd Like Add two independent startup options to `BrokerConfig`, both defaulting to `true` for backward compatibility: - `enableFastRemotingServer`: controls creation of the Fast Remoting server, including the per-broker sub-server in BrokerContainer mode. Processor registration and shutdown remain safe when disabled. - `enableHaListener`: controls whether the built-in HA acceptor binds its port and starts its accept thread. It does not change commit-log recovery, replication acknowledgement semantics, or the outbound HA client. The inherited behavior also applies to the controller-mode HA service. Setting both options to `false` leaves the normal Remoting endpoint available without opening either auxiliary listener. These are startup settings; changing them requires a broker restart. Deployments requiring inbound HA replication must keep the HA listener enabled. Clients using the Fast endpoint must switch to the main endpoint before the Fast server is disabled. ### Describe Alternatives You've Considered - The client-side VIP channel option changes the destination port; it does not stop the broker listener. - Setting `haListenPort=0` binds an ephemeral port rather than disabling the listener. - Enabling duplication or another replication mode changes storage/replication behavior and is not a listener switch. - Network filtering leaves the sockets and listener resources active. ### Additional Context Confirmed against `develop` at `164322b91`. The main endpoint and the existing default behavior remain unchanged. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
