Skip to content

Commit

Permalink
[stable2409] Backport #7116 (#7136)
Browse files Browse the repository at this point in the history
Backport #7116 into `stable2409` from alexggh.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Co-authored-by: Alexandru Gheorghe <[email protected]>
  • Loading branch information
1 parent 798f58b commit fd5b21c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
11 changes: 3 additions & 8 deletions polkadot/node/service/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,14 +960,9 @@ pub fn new_full<
secure_validator_mode,
prep_worker_path,
exec_worker_path,
pvf_execute_workers_max_num: execute_workers_max_num.unwrap_or_else(
|| match config.chain_spec.identify_chain() {
// The intention is to use this logic for gradual increasing from 2 to 4
// of this configuration chain by chain until it reaches production chain.
Chain::Polkadot | Chain::Kusama => 2,
Chain::Rococo | Chain::Westend | Chain::Unknown => 4,
},
),
// Default execution workers is 4 because we have 8 cores on the reference hardware,
// and this accounts for 50% of that cpu capacity.
pvf_execute_workers_max_num: execute_workers_max_num.unwrap_or(4),
pvf_prepare_workers_soft_max_num: prepare_workers_soft_max_num.unwrap_or(1),
pvf_prepare_workers_hard_max_num: prepare_workers_hard_max_num.unwrap_or(2),
})
Expand Down
8 changes: 8 additions & 0 deletions prdoc/pr_7116.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: Increase the number of pvf execution workers from 2 to 4
doc:
- audience: Node Dev
description: |-
Increase the number of pvf execution workers from 2 to 4.
crates:
- name: polkadot-service
bump: patch

0 comments on commit fd5b21c

Please sign in to comment.