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

Blockprocessor stall workaround #4240

Merged

Conversation

pwojcikdev
Copy link
Contributor

@pwojcikdev pwojcikdev commented May 30, 2023

There is a reported problem with node, where it will hang inside block_processor::add_blocking function. There might be a few different causes for that, however the aim of this PR is to provide a workaround that ensures the node will be able to recover when that problem happens. There are two main changes:

  • Added a timeout when waiting for a future inside block_processor::add_blocking. The timeout after which an error will be reported can be controlled by block_process_timeout configuration variable. By default it is set to 15 seconds.
  • Added a new background_threads configuration variable. It controls how many background threads to spawn for handling long running node RPC commands (including the "process" rpc). By default it is equal to the number of CPU cores, but can be increased by node operators that need additional resiliency.

@pwojcikdev pwojcikdev merged commit b2ab8cf into nanocurrency:develop May 31, 2023
thsfs added a commit to thsfs/nano-node that referenced this pull request May 31, 2023
* Moving from CentOS namig to RHEL compatible

* Remove unused build_prep scripts

* Update to use RockyLinux 8 as RHEL 8 compatible base

Also applies changes to build C++20 (Starting on V25.0)

* Add a workflow for beta RPM builds

Also fixes the old nanocurrency-beta to build on RockyLinux 8.

* Fix nano_node binary name for beta RPM service installation

* Blockprocessor stall workaround (nanocurrency#4240)

* Remove assert for null block deserialization (nanocurrency#4241)

* Bump Qt dep version for Windows build

---------

Co-authored-by: Piotr Wójcik <3044353+pwojcikdev@users.noreply.github.com>
@thsfs thsfs added the bug label May 31, 2023
clemahieu pushed a commit that referenced this pull request Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants