Skip to content

Commit

Permalink
Increase max client task / outgoing call concurrency to 500K in Bound…
Browse files Browse the repository at this point in the history
…edExecutor (MystenLabs/narwhal#1033)

Before we make a decision on whether and how to remove the BoundedExecutor, it seems useful to increase the max concurrency limit significantly so we are not running into it as often. Blocking on BoundedExecutor is potentially one source of deadlock we have observed.
  • Loading branch information
mwtian authored Sep 28, 2022
1 parent a0fe7cd commit d80aa0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion narwhal/network/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ impl<T> std::future::Future for CancelOnDropHandler<T> {
//
// The exact number here probably isn't important, the key things is that it should be finite so
// that we don't create unbounded numbers of tasks.
pub const MAX_TASK_CONCURRENCY: usize = 500;
pub const MAX_TASK_CONCURRENCY: usize = 500_000;

pub fn multiaddr_to_address(
multiaddr: &multiaddr::Multiaddr,
Expand Down

0 comments on commit d80aa0e

Please sign in to comment.