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

Implement prune only stagnant check mode #5761

Merged
merged 11 commits into from
Jul 9, 2022

Conversation

vstakhov
Copy link
Contributor

@vstakhov vstakhov commented Jul 6, 2022

As discussed, we are not sure about interaction between finality lag and stagnant checks. This PR tries to introduce a trade-off where stagnant entries are just cleaned after some long period of time (25 hours) without the actual checks of stagnant blocks. This allows to keep database clean from stagnant entries that are otherwise kept indefinitely when stagnant checks are disabled. On the other hand, this mode does not interfere with finality and has quite a large margin to prevent active entries to be removed.

@vstakhov vstakhov added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Jul 6, 2022
@vstakhov vstakhov requested review from ordian and rphmeier July 6, 2022 15:48
node/service/src/lib.rs Show resolved Hide resolved
node/core/chain-selection/src/tree.rs Outdated Show resolved Hide resolved
Co-authored-by: Andronik <write@reusable.software>
node/core/chain-selection/src/lib.rs Outdated Show resolved Hide resolved
node/core/chain-selection/src/lib.rs Outdated Show resolved Hide resolved
Co-authored-by: Andronik <write@reusable.software>
@rphmeier
Copy link
Contributor

rphmeier commented Jul 9, 2022

bot merge

@paritytech-processbot
Copy link

Waiting for commit status.

@paritytech-processbot paritytech-processbot bot merged commit 3b2b067 into master Jul 9, 2022
@paritytech-processbot paritytech-processbot bot deleted the vstakhov-stagnant-prune branch July 9, 2022 08:36
ordian added a commit that referenced this pull request Jul 12, 2022
…systems

* master: (39 commits)
  Implement prune only stagnant check mode (#5761)
  Bump chevdor/srtool-actions from 0.4.0 to 0.5.0 (#5769)
  Update release-99_bot.yml (#5764)
  Version bump to v0.9.26/9260 (#5755)
  Rename `extra_constant` (#5749)
  Bump wasmtime from 0.38.0 to 0.38.1 (#5741)
  Several small fixes to the templates of the release notes (#5756)
  Backports from 0.9.25 (#5754)
  Remove bridges subtree (#5752)
  [Zombienet] test deregister validator (#5718)
  Fix regexp to find the repo name (#5751)
  Limit stagnant checks to a certain amount of entries (#5742)
  fix(staking miner): check latest state in solution (#5744)
  staking-miner: CLI flag delay solution x secs (#5734)
  backport minimum weight to fee to master (#5739)
  Bump quote from 1.0.19 to 1.0.20 (#5736)
  zombienet: try to fix parachains upgrade test (#5724)
  Update dependencies (companion for substrate#11722) (#5731)
  Update metric name and doc (#5716)
  Bump reqwest from 0.11.10 to 0.11.11 (#5732)
  ...
al3mart pushed a commit that referenced this pull request Jul 14, 2022
* Limit number of elements loaded from the stagnant key

This will likely be required if we enable stagnant prunning as currently database has way
too many entries to be prunned in a single iteration

* Fmt run

* Slightly improve logging

* Some more debug nits

* Fmt pass

* Add stagnant prunning delay

* Enable stagnant check worker

* Implement stagnant pruning without stagnant checks

* Update node/core/chain-selection/src/tree.rs

Co-authored-by: Andronik <write@reusable.software>

* Apply suggestions from code review

Co-authored-by: Andronik <write@reusable.software>

Co-authored-by: Andronik <write@reusable.software>
ordian added a commit that referenced this pull request Jul 22, 2022
* master:
  westend xcm: collectives parachain is trusted teleporter (#5798)
  Cleanup light client leftovers (#5794)
  Fix benchmarking tests (#5791)
  allow re-use and avoid compiling kusama parachain code (#5792)
  Introduce async runtime calling trait for runtime-api subsystem (#5782)
  add `Extrinsic Ordering` check that runs against a local reference node (#5790)
  Co #11456: Expose `benchmark extrinsic` command (#5620)
  `staking-miner`:  Add handling of `SIGTERM`, `SIGKILL`, `SIGQUIT` and `SIGINT` (#5780)
  Zombienet: paritydb test (#5310)
  Fix Typo (#5766)
  Fix Core Version display in the release notes (#5781)
  companion for new pools reward scheme (#5757)
  fix disable-runtime-api feature flag (#5773)
  split NetworkBridge into two subsystems (#5616)
  Implement prune only stagnant check mode (#5761)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants