-
Notifications
You must be signed in to change notification settings - Fork 228
Description
Feature Description
Add support for CommitLogSetReadAhead command to configure read-ahead settings for commit log in the rocketmq-admin-core crate.
Problem/Motivation
Performance tuning of commit log read operations is critical for high-throughput scenarios. The read-ahead feature can significantly improve sequential read performance, but needs to be configurable based on workload patterns. This command allows administrators to dynamically adjust read-ahead settings without restarting the broker.
Proposed Solution
Implement the CommitLogSetReadAhead command in rocketmq-admin-core under the new broker_commands module, mirroring Java's CommitLogSetReadAheadSubCommand.
Key features to implement:
- Enable/disable read-ahead for commit log
- Configure read-ahead size
- Apply settings to specific broker or cluster-wide
- Display current read-ahead configuration
The implementation should be placed in:
rocketmq-tools/rocketmq-admin/rocketmq-admin-core/src/commands/broker_commands/
Alternatives
Could make this part of general broker configuration commands, but separate command provides focused performance tuning capability.
Additional Context
- Java Reference: https://github.com/apache/rocketmq/blob/develop/tools/src/main/java/org/apache/rocketmq/tools/command/broker/CommitLogSetReadAheadSubCommand.java
- Target crate:
rocketmq-admin-core - Related modules: broker_commands (new module to be created)