Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Multithreaded request aggregator #4469

Merged
merged 5 commits into from
Mar 11, 2024

Conversation

RickiNano
Copy link
Contributor

Made by Colin. I just made it configurable in the config file

@pwojcikdev
Copy link
Contributor

Defaults to half the number of CPU threads, and at least 2.

This seems a bit excessive, especially since this is an auxiliary mechanism. We've seen good results even with 2-4 threads allocated.

@RickiNano
Copy link
Contributor Author

I have changed it to use max 4 threads as default

@dsiganos
Copy link
Contributor

dsiganos commented Mar 8, 2024

You also need to fix the test case "toml.daemon_config_deserialize_defaults" and "daemon_config_deserialize_no_defaults"

@dsiganos
Copy link
Contributor

dsiganos commented Mar 8, 2024

Ideally, we want these tests to fail when we forget them, as they are, they not very good.

@RickiNano
Copy link
Contributor Author

You also need to fix the test case "toml.daemon_config_deserialize_defaults" and "daemon_config_deserialize_no_defaults"

It's included now

pwojcikdev
pwojcikdev previously approved these changes Mar 11, 2024
nano/node/nodeconfig.cpp Outdated Show resolved Hide resolved
dsiganos
dsiganos previously approved these changes Mar 11, 2024
@dsiganos dsiganos dismissed stale reviews from pwojcikdev and themself via 990054a March 11, 2024 12:48
@dsiganos dsiganos merged commit d595655 into nanocurrency:develop Mar 11, 2024
23 of 27 checks passed
RickiNano added a commit to RickiNano/nano-node that referenced this pull request May 28, 2024
* Run aggregator threaded

* Configurable number of aggregator threads

* Default to max 4 threads

* Added unit test for request_aggregator_threads toml

* Improve the description of request_aggregator_threads

---------

Co-authored-by: Dimitrios Siganos <dimitris@siganos.org>
RickiNano added a commit to RickiNano/nano-node that referenced this pull request May 30, 2024
* Run aggregator threaded

* Configurable number of aggregator threads

* Default to max 4 threads

* Added unit test for request_aggregator_threads toml

* Improve the description of request_aggregator_threads

---------

Co-authored-by: Dimitrios Siganos <dimitris@siganos.org>
RickiNano added a commit to RickiNano/nano-node that referenced this pull request May 30, 2024
* Run aggregator threaded

* Configurable number of aggregator threads

* Default to max 4 threads

* Added unit test for request_aggregator_threads toml

* Improve the description of request_aggregator_threads

---------

Co-authored-by: Dimitrios Siganos <dimitris@siganos.org>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: Merged / V27.0
Development

Successfully merging this pull request may close these issues.

4 participants