Skip to content

[Feature🚀] Implement CommitLogSetReadAhead command in rocketmq-admin-core #6266

@mxsm

Description

@mxsm

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions