Skip to content

apollo_network_benchmark: added broadcast topic metrics#11545

Open
sirandreww-starkware wants to merge 1 commit into01-07-apollo_network_benchmark_added_network_metrics_to_network_managerfrom
01-07-apollo_network_benchmark_added_broadcast_topic_metrics
Open

apollo_network_benchmark: added broadcast topic metrics#11545
sirandreww-starkware wants to merge 1 commit into01-07-apollo_network_benchmark_added_network_metrics_to_network_managerfrom
01-07-apollo_network_benchmark_added_broadcast_topic_metrics

Conversation

@sirandreww-starkware
Copy link
Contributor

@sirandreww-starkware sirandreww-starkware commented Jan 8, 2026

Note

Low Risk
Low risk benchmark-only change that wires additional broadcast send/receive/drop counters into NetworkMetrics for the stress-test topic; main risk is metric label/mapping mistakes affecting observability, not runtime behavior.

Overview
Adds per-topic broadcast observability to the broadcast network stress test node by defining new counters for sent/received messages and a labeled counter for dropped broadcasts (using NETWORK_BROADCAST_DROP_LABELS).

Updates create_network_metrics() to populate NetworkMetrics.broadcast_metrics_by_topic with a BroadcastNetworkMetrics entry keyed by the stress-test TOPIC hash, so the network manager can record broadcast metrics for that topic.

Written by Cursor Bugbot for commit 5095a65. This will update automatically on new commits. Configure here.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

sirandreww-starkware commented Jan 8, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

This was referenced Jan 8, 2026
@sirandreww-starkware sirandreww-starkware marked this pull request as ready for review January 8, 2026 17:42
@sirandreww-starkware sirandreww-starkware self-assigned this Jan 8, 2026
Copy link
Contributor

@guy-starkware guy-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@guy-starkware reviewed 1 file and all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @noamsp-starkware).

@github-actions
Copy link

There hasn't been any activity on this pull request recently, and in order to prioritize active work, it has been marked as stale.
This PR will be closed and locked in 7 days if no further activity occurs.
Thank you for your contributions!

@github-actions github-actions bot added the stale label Feb 11, 2026
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_broadcast_topic_metrics branch from 1f0509d to ab1a950 Compare February 16, 2026 09:10
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_network_metrics_to_network_manager branch from 602db52 to 3731f9f Compare February 19, 2026 07:24
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_broadcast_topic_metrics branch from ab1a950 to 2d9dcd6 Compare February 19, 2026 07:24
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_broadcast_topic_metrics branch from 2d9dcd6 to 8214b79 Compare February 19, 2026 08:04
@github-actions github-actions bot removed the stale label Feb 24, 2026
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_network_metrics_to_network_manager branch from 15e099b to 9f2229a Compare March 16, 2026 15:13
@sirandreww-starkware sirandreww-starkware force-pushed the 01-07-apollo_network_benchmark_added_broadcast_topic_metrics branch from 8214b79 to 5095a65 Compare March 16, 2026 15:13
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

tps * message_size_bytes.into_f64()
}

/// Creates barebones network metrics
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New broadcast metrics are never registered

Medium Severity

The three newly added metrics — NETWORK_STRESS_TEST_SENT_MESSAGES, NETWORK_STRESS_TEST_RECEIVED_MESSAGES, and NETWORK_DROPPED_BROADCAST_MESSAGES — are defined in the define_metrics! macro and wired into BroadcastNetworkMetrics in create_network_metrics(), but register_metrics() was not updated to call .register() on any of them. Without registration, increments to these counters won't be reported by the metrics system, defeating the purpose of this PR.

Additional Locations (1)
Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants