Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Limit the number of PVF workers #4273

Merged
merged 2 commits into from
Nov 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions node/core/pvf/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ impl Config {
cache_path,
prepare_worker_program_path: program_path.clone(),
prepare_worker_spawn_timeout: Duration::from_secs(3),
prepare_workers_soft_max_num: 8,
prepare_workers_hard_max_num: 5,
prepare_workers_soft_max_num: 1,
prepare_workers_hard_max_num: 1,
execute_worker_program_path: program_path,
execute_worker_spawn_timeout: Duration::from_secs(3),
execute_workers_max_num: 5,
execute_workers_max_num: 2,
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion node/core/pvf/tests/it/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ async fn parallel_execution() {
#[async_std::test]
async fn execute_queue_doesnt_stall_if_workers_died() {
let host = TestHost::new_with_config(|cfg| {
assert_eq!(cfg.execute_workers_max_num, 5);
cfg.execute_workers_max_num = 5;
});

// Here we spawn 8 validation jobs for the `halt` PVF and share those between 5 workers. The
Expand Down