Skip to content

Conversation

@sirandreww-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

sirandreww-starkware commented Sep 29, 2025

@sirandreww-starkware sirandreww-starkware changed the base branch from 25-sep-17-broadcast-network-stress-test-1 to graphite-base/9461 September 29, 2025 13:31
@sirandreww-starkware sirandreww-starkware changed the base branch from graphite-base/9461 to 25-sep-17-broadcast-network-stress-test-1 September 29, 2025 13:47
Copy link
Contributor Author

@sirandreww-starkware sirandreww-starkware left a comment

Choose a reason for hiding this comment

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

This PR adds metrics that are collected by the stress test.
it add a dependency on sysinfo and thus requires approval from some other team lead, who should I add?

Reviewable status: 0 of 5 files reviewed, all discussions resolved (waiting on @ShahakShama)

@github-actions
Copy link

github-actions bot commented Sep 29, 2025

Benchmark movements: No major performance changes detected.

@sirandreww-starkware sirandreww-starkware changed the base branch from 25-sep-17-broadcast-network-stress-test-1 to graphite-base/9461 September 30, 2025 05:07
@sirandreww-starkware sirandreww-starkware changed the base branch from graphite-base/9461 to main September 30, 2025 05:07
Copy link
Collaborator

@ShahakShama ShahakShama left a comment

Choose a reason for hiding this comment

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

@ShahakShama reviewed 4 of 5 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: all files reviewed, 8 unresolved discussions (waiting on @sirandreww-starkware)


crates/apollo_network/Cargo.toml line 42 at r2 (raw file):

strum.workspace = true
strum_macros.workspace = true
sysinfo.workspace = true

Add this as bin dependencies
Alternatively, move all the stress test code to a different crate


Cargo.toml line 323 at r2 (raw file):

strum_macros = "0.25.2"
syn = "2.0.39"
sysinfo = "0.37.1"

Following the 3rd party discussion, @dan-starkware should approve this


crates/apollo_network/src/bin/broadcast_network_stress_test_node/main.rs line 98 at r2 (raw file):

        broadcast_topic_client.broadcast_message(message.clone()).await.unwrap();
        trace!("Sent message {i}: {:?}", message);
        // counter!("sent_messages").increment(1);

Delete instead of commenting out


crates/apollo_network/src/bin/broadcast_network_stress_test_node/main.rs line 117 at r2 (raw file):

    let _delay_seconds = duration.as_secs_f64();
    // let delay_micros = duration.as_micros().try_into().unwrap();

Same here


crates/apollo_network/src/bin/broadcast_network_stress_test_node/metrics.rs line 27 at r2 (raw file):

define_metrics!(
    Infra => {
        MetricGauge { BROADCAST_MESSAGE_HEARTBEAT_MILLIS, "broadcast_message_theoretical_heartbeat_millis", "The number of ms we sleep between each two consecutive broadcasts" },

Consider adding some word that makes it clear these are the setup/config of the scenario
(If broadcast was supposed to be that word then it's not a good word)


crates/apollo_network/src/bin/broadcast_network_stress_test_node/metrics.rs line 83 at r2 (raw file):

    };

    // Use apollo_metrics for all metrics including labeled ones

This comment feels redundant


crates/apollo_network/src/bin/broadcast_network_stress_test_node/metrics.rs line 90 at r2 (raw file):

    );

    // Use apollo_metrics histograms for latency measurements

This comment feels redundant


crates/apollo_network/src/bin/broadcast_network_stress_test_node/metrics.rs line 155 at r2 (raw file):

        interval.tick().await;

        // Refresh only the specific data we need

Remove commented out code

Copy link
Collaborator

@dan-starkware dan-starkware left a comment

Choose a reason for hiding this comment

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

@dan-starkware reviewed 1 of 5 files at r1.
Reviewable status: all files reviewed, 8 unresolved discussions (waiting on @sirandreww-starkware)

@github-actions github-actions bot locked and limited conversation to collaborators Dec 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants