Skip to content

Multithreaded request aggregator#4469

Merged
dsiganos merged 5 commits intonanocurrency:developfrom
RickiNano:threaded-aggregator
Mar 11, 2024
Merged

Multithreaded request aggregator#4469
dsiganos merged 5 commits intonanocurrency:developfrom
RickiNano:threaded-aggregator

Conversation

@RickiNano
Copy link
Copy Markdown
Contributor

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

@pwojcikdev
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

I have changed it to use max 4 threads as default

@dsiganos
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
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
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Merged / V27.0

Development

Successfully merging this pull request may close these issues.

4 participants