Skip to content
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

[benchmark] Don't obliterate validators as much when wrapping up #3474

Conversation

ndr-ds
Copy link
Contributor

@ndr-ds ndr-ds commented Mar 4, 2025

Motivation

Right now if we have the --close-chains option on, we'll close all the chains in parallel. If we don't, we'll process all the inboxes in parallel also before saving the benchmark chains to the wallet.
This is not ideal because depending on how many chains we're using, this can pound the validators pretty hard, and drive latency up to the point of us getting a bunch of timeouts when wrapping things up.
Also, when latency spikes up too much, the validators take a while to recover.

Proposal

Introduce a --wrap-up-max-in-flight argument to limit the concurrency when wrapping things up

Test Plan

Tested locally, no timeouts anymore, and things actually go faster (if we timeout, we retry, and this can take a while until we actually eventually succeed within the timeout constraint)

Release Plan

  • Nothing to do / These changes follow the usual release cycle.

@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch 3 times, most recently from f1e337c to 25b99cc Compare March 4, 2025 21:17
@ndr-ds ndr-ds requested review from afck, jvff, ma2bd and Twey March 4, 2025 21:23
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch 2 times, most recently from 3c661dc to 4522a2d Compare March 4, 2025 21:54
@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch from 2666a06 to 25bb2d7 Compare March 4, 2025 21:54
Copy link
Contributor

@afck afck left a comment

Choose a reason for hiding this comment

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

(This might become unnecessary once #3453 is resolved. We could consider removing it again after that.)

@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch from 25bb2d7 to e14cf17 Compare March 5, 2025 14:01
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch from 4522a2d to 39d242f Compare March 5, 2025 14:01
@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch from e14cf17 to 8f5e1c6 Compare March 5, 2025 14:52
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch 2 times, most recently from fa6b1a6 to 6af0689 Compare March 5, 2025 16:15
@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch from 8f5e1c6 to 32b2bce Compare March 5, 2025 16:15
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch from 6af0689 to 4f147f4 Compare March 5, 2025 17:31
@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch 2 times, most recently from 26e8c6a to 5824eec Compare March 5, 2025 17:34
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch from 4f147f4 to 1138bb5 Compare March 5, 2025 17:34
@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch from 5824eec to 73e32e8 Compare March 5, 2025 17:43
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch from 1138bb5 to fdce5c3 Compare March 5, 2025 17:43
@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch from 73e32e8 to bb69877 Compare March 5, 2025 17:45
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch from fdce5c3 to 2f71e16 Compare March 5, 2025 17:45
@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch 2 times, most recently from 6caf011 to 76c77e7 Compare March 5, 2025 18:28
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch 2 times, most recently from 3f1bd6d to a1b0081 Compare March 5, 2025 20:28
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch from a1b0081 to 8c8f5f1 Compare March 5, 2025 22:52
@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch 3 times, most recently from 37b5af1 to 6508b5c Compare March 5, 2025 22:53
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch from 8c8f5f1 to ba2d316 Compare March 5, 2025 22:53
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch from ba2d316 to ea1a2f3 Compare March 6, 2025 01:34
@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch 2 times, most recently from 6651527 to 1e58768 Compare March 6, 2025 14:35
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch 2 times, most recently from 1e0167d to b77161d Compare March 6, 2025 14:37
@ndr-ds ndr-ds force-pushed the 02-24-query_prometheus_metrics_from_benchmark branch 2 times, most recently from e016dce to 65d1362 Compare March 6, 2025 15:07
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch from b77161d to c877d00 Compare March 6, 2025 15:07
Copy link
Contributor Author

ndr-ds commented Mar 6, 2025

Merge activity

  • Mar 6, 10:59 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Mar 6, 11:01 AM EST: Graphite rebased this pull request as part of a merge.
  • Mar 6, 11:03 AM EST: A user merged this pull request with Graphite.

@ndr-ds ndr-ds changed the base branch from 02-24-query_prometheus_metrics_from_benchmark to graphite-base/3474 March 6, 2025 15:59
@ndr-ds ndr-ds changed the base branch from graphite-base/3474 to main March 6, 2025 16:00
@ndr-ds ndr-ds force-pushed the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch from c877d00 to 1cc71a4 Compare March 6, 2025 16:01
@ndr-ds ndr-ds merged commit d32fb91 into main Mar 6, 2025
24 checks passed
@ndr-ds ndr-ds deleted the 03-04-_benchmark_don_t_obliterate_validators_as_much_when_wrapping_up branch March 6, 2025 16:03
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