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

chore: increase lens object cache size #377

Merged
merged 1 commit into from
Feb 9, 2021
Merged

chore: increase lens object cache size #377

merged 1 commit into from
Feb 9, 2021

Conversation

iand
Copy link
Contributor

@iand iand commented Feb 1, 2021

Metrics show that we are continually fetching ~20k blocks per tipset which suggests that the LRU cache used is too small. Increasing it to 500k made a big difference in performance as shown in grafana screenshot below. This change bumps the LRU to 50k to balance memory consumption with performance.

Top-right: note number of requests being made to API drop off dramatically with a larger LRU
Mid-right: note processing times are lower
Bottom-left: memory consumption is up, but not greatly so

The spikes appear to be unrelated and are not present once visor has been running for a while.

Screenshot from 2021-02-01 17-40-31

@codecov-io
Copy link

Codecov Report

Merging #377 (9128b2d) into master (ad4a96a) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff           @@
##           master    #377   +/-   ##
======================================
  Coverage    43.1%   43.1%           
======================================
  Files          25      25           
  Lines        1932    1932           
======================================
  Hits          833     833           
  Misses        972     972           
  Partials      127     127           

Copy link
Contributor

@placer14 placer14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huge props on supporting data. Thank you!

@iand iand merged commit 6cffcec into master Feb 9, 2021
@iand iand deleted the chore/cache-size branch February 9, 2021 11:20
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.

4 participants