McCache / McCache-for-Python

MIT License
0 stars 1 forks source link

Collect metrics on the cache usage #4

Open McCache opened 9 months ago

McCache commented 9 months ago

Have metrics of the cache usage can help right size the cache and also provide a feedback on how your app is used in your environment.

Capture the following:

  1. Lookups
  2. Updates )(include inserts)
  3. Deletes

Nice to have metrics are during the usage spikes. A spike by definition is a heavy load around a short duration. For McCache, capture only the elapsed time that are less than 5 minutes between calls. Use this number to estimate the load on the cache.

McCache commented 9 months ago

Pending testing.