# Aerospike how to do cache analysis

**URL:** <https://discuss.aerospike.com/t/aerospike-how-to-do-cache-analysis/9664>\
**Category:** Tuning\
**Tags:** query\
**Created:** [August 9, 2022, 6:54am UTC](https://discuss.aerospike.com/t/aerospike-how-to-do-cache-analysis/9664 "2022-08-09T06:54:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![totola](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@totola](https://discuss.aerospike.com/u/totola)\
**Post date:** [August 9, 2022, 6:54am UTC](https://discuss.aerospike.com/t/aerospike-how-to-do-cache-analysis/9664/1 "2022-08-09T06:54:34Z")

</div>

how to do cache analysis , like redis there are tools for analysis from dump file , does aerospike have this tools ?

---

<div class="post-metadata">

**Author:** ![aanderson](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/aanderson/32/2064_2.png) [@aanderson](https://discuss.aerospike.com/u/aanderson)\
**Post date:** [August 10, 2022, 7:39pm UTC](https://discuss.aerospike.com/t/aerospike-how-to-do-cache-analysis/9664/2 "2022-08-10T19:39:43Z")

</div>

Hi @totola, I’m not totally sure what it is you’re looking for, could you clarify a bit what you are doing?

To get started though, these metrics may have some information that you find useful.

[`client_read_not_found`](https://docs.aerospike.com/reference/metrics#client_read_not_found)

[`cache_read_pct`](https://docs.aerospike.com/reference/metrics#cache_read_pct)

---

<div class="post-metadata">

**Author:** ![totola](https://avatars.discourse-cdn.com/v4/letter/t/3be4f8/32.png) [@totola](https://discuss.aerospike.com/u/totola)\
**Post date:** [August 15, 2022, 6:07am UTC](https://discuss.aerospike.com/t/aerospike-how-to-do-cache-analysis/9664/3 "2022-08-15T06:07:46Z")

</div>

we want to know the bigest key , hot key , each prefix key count does aerospike support audit log , we also need to know the qps precent on each prefix key

we can already get the hit rate from amc , client\_read\_not\_found cache\_read\_pct not is what we want

---

<div class="post-metadata">

**Author:** ![meher](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/meher/32/1644_2.png) [@meher](https://discuss.aerospike.com/u/meher)\
**Post date:** [August 16, 2022, 12:24am UTC](https://discuss.aerospike.com/t/aerospike-how-to-do-cache-analysis/9664/4 "2022-08-16T00:24:13Z")

</div>

If you are looking for stats on a ‘per key’ basis, the only thing I can think of is to turn on the extra logging for the `rw-client` context. That will potentially overwhelm the logs as it will have a single log line per transaction logged and you can then script against it… so it will likely not help you but that is all I can think of (I believe there are some features in the backlog to keep track on the server about top most requested keys and things like that but nothing available at this time). Some details on the `rw-client` context on this article: [How To identify read hotkeys](https://discuss.aerospike.com/t/how-to-identify-read-hotkeys/4193).

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/system/32/2274_2.png) [@system](https://discuss.aerospike.com/u/system)\
**Post date:** [November 8, 2022, 12:25am UTC](https://discuss.aerospike.com/t/aerospike-how-to-do-cache-analysis/9664/5 "2022-11-08T00:25:04Z")

</div>

Closed on November 8, 2022, 12:25am UTC

This topic was automatically closed 84 days after the last reply. New replies are no longer allowed.
