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

feat: Change default shard trie cache size to 500MB #10373

Merged
merged 1 commit into from
Jan 2, 2024

Conversation

pugachAG
Copy link
Contributor

Current value is 50MB which might not be enough when the shard is overloaded. One example when this can be an issue is when delayed receipts queue grows to 20k+ items, which already happened during NEAT inscription load. Insufficient cache size results in increased number of disk reads to State rocksdb column. That increases chunk application time which results in more missed chunks.
This only applies to shards 0,1,2 since we have an overwrite for shard 3. So overall expected RAM increase is 3 * (500 - 50) = 1350MB.

@pugachAG pugachAG requested a review from a team as a code owner December 29, 2023 17:31
Copy link

codecov bot commented Dec 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4942ba2) 71.92% compared to head (498fefa) 71.92%.
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #10373   +/-   ##
=======================================
  Coverage   71.92%   71.92%           
=======================================
  Files         717      717           
  Lines      143542   143542           
  Branches   143542   143542           
=======================================
+ Hits       103243   103249    +6     
+ Misses      35555    35545   -10     
- Partials     4744     4748    +4     
Flag Coverage Δ
backward-compatibility 0.08% <ø> (ø)
db-migration 0.08% <ø> (ø)
genesis-check 1.25% <ø> (ø)
integration-tests 36.49% <ø> (-0.05%) ⬇️
linux 71.48% <ø> (+<0.01%) ⬆️
linux-nightly 71.52% <ø> (+0.03%) ⬆️
macos 54.11% <ø> (-0.67%) ⬇️
pytests 1.48% <ø> (ø)
sanity-checks 1.28% <ø> (ø)
unittests 68.19% <ø> (+<0.01%) ⬆️
upgradability 0.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@pugachAG pugachAG added the A-storage Area: storage and databases label Jan 2, 2024
@pugachAG pugachAG added this pull request to the merge queue Jan 2, 2024
Merged via the queue into near:master with commit afa5d00 Jan 2, 2024
21 checks passed
@pugachAG pugachAG deleted the increase-default-shard-cache-size branch January 2, 2024 16:44
github-merge-queue bot pushed a commit that referenced this pull request Jan 12, 2024
* Do not apply default size increase introduced in #10373 to
`view_trie_cache` since view calls are not latency-sensitive
* Opt out shard 1 from the increase since it only contains aurora
account and based on the current metrics has very low cache miss rate
even with a size of 50MB
* Configure shard 3 override of 3GB to also apply after resharding
posvyatokum pushed a commit that referenced this pull request Jan 22, 2024
* Do not apply default size increase introduced in #10373 to
`view_trie_cache` since view calls are not latency-sensitive
* Opt out shard 1 from the increase since it only contains aurora
account and based on the current metrics has very low cache miss rate
even with a size of 50MB
* Configure shard 3 override of 3GB to also apply after resharding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-storage Area: storage and databases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants