-
Notifications
You must be signed in to change notification settings - Fork 1.4k
feat: Report number of lookups to the AsyncDataCache #15430
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
base: main
Are you sure you want to change the base?
feat: Report number of lookups to the AsyncDataCache #15430
Conversation
✅ Deploy Preview for meta-velox canceled.
|
…or#15430) Add runtime stats for number of lookups to the AsyncDataCache.
8ccd37d to
48add28
Compare
…or#15430) Add runtime stats for number of lookups to the AsyncDataCache.
48add28 to
4c7a587
Compare
…or#15430) Add runtime stats for number of lookups to the AsyncDataCache.
4c7a587 to
f74ac9f
Compare
…or#15430) Add runtime stats for number of lookups to the AsyncDataCache.
f74ac9f to
0f3df76
Compare
|
@ethanyzhang imported this issue as lakehouse/velox #15430 |
|
curious why is this needed? |
|
@zacw7 This is needed for the tracking and calculation of the hit ratio % of the AsyncDataCache. Hit ratio = number of hits / number of lookups to the AsyncDataCache |
memory cache hit rate can be calculated by: memory_cache_num_hits / (memory_cache_num_hits + memory_cache_num_new) |
|
@zacw7 Thanks for the equations! I have tried those equations before and they indeed would work for calculating the hit rate. However, I would also like to track the total number of lookups to the memory cache. (memory_cache_num_hits + memory_cache_num_new) would not accurately track this due to memory_cache_num_hits only being incremented after the first entry access. https://github.com/facebookincubator/velox/blob/main/velox/docs/monitoring/metrics.rst?plain=1#L335 |
makes sense. thanks for the clarification. |
zacw7
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for adding this.
Add runtime stats for number of lookups to the AsyncDataCache.