A benchmark of LRU cache for storing upgrade risks responses.
I'm caching a response per cluster with N alerts and M focs, being N and M a random value between 0 and 10.
Below you can see a plot of the memory usage given the number of clusters in cache.
It's also possible to use mprof and run:
N_CLUSTERS=35000 mprof run python test.py
mprof plot