Closed 847850277 closed 2 months ago
This update enhances the functionality of the RocketMQ project by adding a new sysinfo
dependency for system information management. Key modifications include significant improvements to the BrokerRuntime
, the introduction of new methods in TransientStorePool
, and new metrics related to timer message handling. These changes aim to improve monitoring capabilities and resource management, paving the way for more robust system performance.
Files | Change Summary |
---|---|
Cargo.toml, rocketmq-broker/Cargo.toml | Added sysinfo crate as a dependency for system information access. |
rocketmq-broker/src/broker_runtime.rs | Modified initialize_message_store to support timer wheel feature, introducing mutable message_store . |
rocketmq-broker/src/processor/admin_broker_processor/broker_config_request_handler.rs | Enhanced metrics related to timer message store based on feature flags. |
rocketmq-common/src/common/mix_all.rs | Introduced human_readable_byte_count function for converting byte counts to readable strings. |
rocketmq-store/src/base/transient_store_pool.rs | Expanded TransientStorePool structure with new fields and methods for enhanced functionality. |
rocketmq-store/src/consume_queue/mapped_file_queue.rs | Added methods to MappedFileQueue for calculating data commitment and flush metrics. |
rocketmq-store/src/lib.rs | Changed visibility of utils module to public. |
rocketmq-store/src/log_file.rs | Added new methods to the RocketMQMessageStore trait to manage transient store buffers. |
rocketmq-store/src/log_file/commit_log.rs | Introduced methods for accessing data commitment and flush metrics in CommitLog . |
rocketmq-store/src/message_store/default_message_store.rs | Enhanced DefaultMessageStore with new fields and methods for transient storage management. |
rocketmq-store/src/timer/timer_message_store.rs | Expanded TimerMessageStore with new fields for state management and metrics. |
sequenceDiagram
participant Broker
participant MessageStore
participant TimerMessageStore
Broker->>MessageStore: Initialize message store
MessageStore->>TimerMessageStore: Check timer wheel feature
alt Timer wheel enabled
MessageStore->>TimerMessageStore: Create TimerMessageStore instance
end
Broker->>Broker: Monitor system performance
Objective | Addressed | Explanation |
---|---|---|
Support AdminBrokerProcessor get_broker_runtime_info part#2 ( #878 ) | ✅ |
🐰 In a world of bytes and data streams,
A rabbit hops with tech-filled dreams.
New tools to measure, to keep us aware,
With every change, we show we care.
So let’s cheer for progress, and system delight,
For a brighter tomorrow, all systems ignite! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
🚀Thanks for your contribution🎉. CodeRabbit(AI) will review your code first🔥
Attention: Patch coverage is 0%
with 217 lines
in your changes missing coverage. Please review.
Project coverage is 24.44%. Comparing base (
2c2f79c
) to head (ef45850
). Report is 6 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Which Issue(s) This PR Fixes(Closes)
Fixes #878
Brief Description
How Did You Test This Change?
Summary by CodeRabbit
New Features
TimerMessageStore
andTransientStorePool
structures with new fields and methods for improved functionality.Bug Fixes
BrokerConfigRequestHandler
to manage timer message store metrics more effectively.Documentation