Skip to content

feat(apollo_monitoring_endpoint): add getting mempool snapshot from the monitoring #5088

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

lev-starkware
Copy link
Contributor

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

Copy link
Contributor Author

lev-starkware commented Mar 19, 2025

@lev-starkware lev-starkware requested a review from alonh5 March 19, 2025 15:37
@lev-starkware lev-starkware marked this pull request as ready for review March 19, 2025 15:37
@lev-starkware lev-starkware force-pushed the lev/impl_mempool_snap branch from e8afdb8 to df68ca3 Compare March 19, 2025 15:59
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from 89ff773 to 4d97923 Compare March 19, 2025 15:59
@lev-starkware lev-starkware force-pushed the lev/impl_mempool_snap branch from df68ca3 to 7d7e403 Compare March 19, 2025 16:36
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch 3 times, most recently from b247906 to 9c25709 Compare March 19, 2025 16:54
@lev-starkware lev-starkware changed the base branch from lev/impl_mempool_snap to graphite-base/5088 March 20, 2025 08:47
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from 9c25709 to 4c3230a Compare March 20, 2025 08:47
@lev-starkware lev-starkware changed the base branch from graphite-base/5088 to main March 20, 2025 08:47
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from 4c3230a to c72b0b4 Compare March 20, 2025 14:31
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from c72b0b4 to 57d4e32 Compare March 20, 2025 16:40
@lev-starkware lev-starkware changed the base branch from main to graphite-base/5088 March 23, 2025 16:22
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from 57d4e32 to 4fe1c7a Compare March 23, 2025 16:22
@lev-starkware lev-starkware changed the base branch from graphite-base/5088 to 03-23-chore_papyrus_proc_macros_fixing_dev_dependencies March 23, 2025 16:22
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch 2 times, most recently from 1a9ed8b to e4c2aca Compare March 23, 2025 18:41
@lev-starkware lev-starkware force-pushed the 03-23-chore_papyrus_proc_macros_fixing_dev_dependencies branch from f125330 to a17174c Compare March 27, 2025 12:57
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from e4c2aca to cea46eb Compare March 27, 2025 12:57
@lev-starkware lev-starkware force-pushed the 03-23-chore_papyrus_proc_macros_fixing_dev_dependencies branch from a17174c to ee502a0 Compare March 30, 2025 06:58
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from cea46eb to 8e60985 Compare March 30, 2025 06:58
Copy link
Collaborator

@alonh5 alonh5 left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 4 files at r3, 1 of 3 files at r4, 2 of 2 files at r5, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @lev-starkware)


crates/starknet_monitoring_endpoint/src/monitoring_endpoint.rs line 136 at r5 (raw file):

// Returns Mempool snapshot
async fn mempool_snapshot(

Please insrument this function and also error log the error returned from the mempool client.


crates/starknet_sequencer_node/src/components.rs line 184 at r5 (raw file):

    let monitoring_endpoint = match config.components.monitoring_endpoint.execution_mode {
        ActiveComponentExecutionMode::Enabled => {
            let mempool_client = if mempool.is_some() {

Does this mean it will work only if the monitoring server and the mempool are in the same pod?

Copy link

Benchmark movements:
full_committer_flow performance improved 😺
full_committer_flow time: [30.510 ms 30.549 ms 30.590 ms]
change: [-2.4918% -1.8295% -1.3132%] (p = 0.00 < 0.05)
Performance has improved.
Found 3 outliers among 100 measurements (3.00%)
3 (3.00%) high mild

Copy link
Contributor Author

@lev-starkware lev-starkware left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @alonh5)


crates/starknet_monitoring_endpoint/src/monitoring_endpoint.rs line 136 at r5 (raw file):

Previously, alonh5 (Alon Haramati) wrote…

Please insrument this function and also error log the error returned from the mempool client.

Done.


crates/starknet_sequencer_node/src/components.rs line 184 at r5 (raw file):

Previously, alonh5 (Alon Haramati) wrote…

Does this mean it will work only if the monitoring server and the mempool are in the same pod?

We have a monitoring endpoint in every pod. So we could always obtain the mempool dump.

@lev-starkware lev-starkware changed the base branch from 03-23-chore_papyrus_proc_macros_fixing_dev_dependencies to graphite-base/5088 March 31, 2025 08:22
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from 8e60985 to c699f9b Compare March 31, 2025 08:22
@lev-starkware lev-starkware changed the base branch from graphite-base/5088 to main March 31, 2025 08:22
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from c699f9b to b8abc79 Compare March 31, 2025 09:02
Copy link

Benchmark movements:
tree_computation_flow performance regressed!
tree_computation_flow time: [35.120 ms 35.603 ms 36.176 ms]
change: [+1.4200% +2.8597% +4.4914%] (p = 0.00 < 0.05)
Performance has regressed.
Found 12 outliers among 100 measurements (12.00%)
4 (4.00%) high mild
8 (8.00%) high severe

@lev-starkware lev-starkware changed the title feat(starknet_monitoring_endpoint): add getting mempool snapshot from the monitoring feat(apollo_monitoring_endpoint): add getting mempool snapshot from the monitoring Mar 31, 2025
@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from b8abc79 to 165e454 Compare March 31, 2025 10:24
Copy link
Collaborator

@alonh5 alonh5 left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 9 of 9 files at r6, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @lev-starkware)

@lev-starkware lev-starkware force-pushed the lev/monitor_mempool_snap branch from 165e454 to 4abeceb Compare March 31, 2025 15:09
Copy link
Contributor Author

@lev-starkware lev-starkware left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r8, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @lev-starkware)

@lev-starkware lev-starkware added this pull request to the merge queue Apr 1, 2025
Merged via the queue into main with commit ed4df10 Apr 1, 2025
23 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 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.

3 participants