-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using chunked_fifo
in heartbeat_manager
#10915
Conversation
Using `chunked_fifo` allows to reduce large allocations in heartbeat manager. Fixes: redpanda-data#10751 Signed-off-by: Michal Maslanka <michal@redpanda.com>
Signed-off-by: Michal Maslanka <michal@redpanda.com>
absl::btree_map<raft::group_id, follower_request_meta> groups, | ||
const absl::node_hash_map<raft::group_id, follower_request_meta>& groups, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whats this change for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i just wanted to accommodate to what we agreed previously in slack that the node_hash_map
is better suited in the cases when we do not need ordering as it provides enough prevention from memory fragmentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm.
ci failure: #10497 |
/backport v23.1.x |
Using
ss::chunked_fifo
in heartbeats manager when collecting node heartbeat requests.Fixes: #10751
Backports Required
Release Notes