-
Notifications
You must be signed in to change notification settings - Fork 105
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
Avoid http.Client recreation on every relay #1484
Labels
proposal
Pocket Core client proposal
Comments
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Oct 12, 2022
…mption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Nov 18, 2022
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Nov 23, 2022
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Mar 22, 2023
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Jun 8, 2023
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Jun 21, 2023
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Jul 10, 2023
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Jul 10, 2023
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Jul 10, 2023
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Jul 10, 2023
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Jul 10, 2023
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Jul 10, 2023
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
nodiesBlade
pushed a commit
to pokt-scan/pocket-core
that referenced
this issue
Jul 16, 2023
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Jan 22, 2024
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Jan 30, 2024
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Mar 6, 2024
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Mar 8, 2024
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Mar 8, 2024
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
May 2, 2024
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
jorgecuesta
added a commit
to pokt-scan/pocket-core
that referenced
this issue
Oct 9, 2024
Fix a high memory consumption that also is part of the issue pokt-network#1457. Under high load of requests (1000/rps or more) the RAM got crazy and scale up to 40GB or close to that. Now after the fix of pokt-network#1457 with the worker pool, the node remains under 14gb of ram in my local tests.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please explain your change in detail.
Create a single HTTP client that will be used to call chains, using the best tunning performance settings for it based on a bit of research (google it) about how to speed up and reduce open files in Golang http.Client
Please provide a justification for your change.
Every time a relay is received on the background of that process, a new http.Client creates and this is not the best way to do, it because it will not reuse connections, it will open more and more file descriptors and that could reach system limits or even grows up the needed RAM to process bigger relay bursts.
The text was updated successfully, but these errors were encountered: