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

Revert concurrency flag change #1215

Merged
merged 1 commit into from
Sep 12, 2023
Merged

Revert concurrency flag change #1215

merged 1 commit into from
Sep 12, 2023

Conversation

joshklop
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.11% 🎉

Comparison is base (1e4e484) 73.60% compared to head (759b51b) 73.71%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1215      +/-   ##
==========================================
+ Coverage   73.60%   73.71%   +0.11%     
==========================================
  Files          70       70              
  Lines        7498     7499       +1     
==========================================
+ Hits         5519     5528       +9     
+ Misses       1522     1518       -4     
+ Partials      457      453       -4     
Files Changed Coverage Δ
cmd/juno/juno.go 57.31% <ø> (-0.52%) ⬇️
node/node.go 46.61% <100.00%> (+0.81%) ⬆️

... and 3 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@omerfirmak
Copy link
Contributor

This is not only for batches. Concurrency limit is shared between all requests.

@joshklop
Copy link
Contributor Author

This is not only for batches. Concurrency limit is shared between all requests.

Do you mean it is shared between all batch requests or all requests (batch or stand-alone)? Based on my understanding, it appears to be the former. I can adjust the docs to clarify that.

@omerfirmak
Copy link
Contributor

all requests (batch or stand-alone)?

This.

There is only a single pool per jsonrpc.Server. So a batch with N individual requests in it will consume N workers from the pool and each standalone request will consume 1. Since we use a single jsonrpc.Server, the pool is shared between HTTP/WS transports as well.

@joshklop
Copy link
Contributor Author

each standalone request will consume 1

Does it? Standalone requests are handled in the current goroutine, so we don't take a goroutine from the pool.

@omerfirmak
Copy link
Contributor

each standalone request will consume 1

Does it? Standalone requests are handled in the current goroutine, so we don't take a goroutine from the pool.

Ah, you are absolutely right. I got it all wrong then. Then my assumption about the broken pipe issue was wrong as well. We can lower the default 1024 to something reasonable too. Do you mind doing it in this PR?

@joshklop joshklop force-pushed the joshklop/config-docs branch 2 times, most recently from 9fadd74 to 759b51b Compare September 12, 2023 15:16
@joshklop joshklop changed the title Fix docs for new flag Revert concurrency flag change Sep 12, 2023
@joshklop joshklop merged commit 7372436 into main Sep 12, 2023
10 checks passed
@joshklop joshklop deleted the joshklop/config-docs branch September 12, 2023 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants