McCache / McCache-for-Python

MIT License
0 stars 1 forks source link

Collect metrics on the cache usage #4

Closed McCache closed 2 weeks ago

McCache commented 1 year 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 1 year ago

Pending testing.

elau1004 commented 2 weeks ago

Implemented.