At the top of every hour the cached rollup for a popular dashboard key expires, and the database falls over. incident.log shows the first seconds after expiry. dashboard.py shows how request handlers use the cache. The app server runs each request on a worker thread from a thread pool, and the loader is a blocking database call.
Fix LoadingCache.get_or_load in cache.py so that an expiring hot key no longer takes the database down.