I'm looking at 500s on graphite hosts and noticed ExtensionDistributor querying graphite for 4w of data from all extensions multiple times a day (even every five minutes sometimes):
2021-10-25T07:55:42 6081006 10.192.0.102 uwsgi-handler/500 3076 GET http://graphite.wikimedia.org/render/?target=sortByMaxima%28groupByNode%28summarize%28MediaWiki.extdist.extensions.%2A.%2A.su m%2C%224w%22%2C%22sum%22%2Ctrue%29%2C3%2C%22sum%22%29%29&format=json&from=-4w&until=now - - - 2620:0:861:102:10:64:16:167, 10.64.48.101 www.mediawiki.org - ExtensionDistributor - Mediawiki Extension - - - - 10.192.0.102 5428d888-0d45-4e53-b7d6-4bd99d4e95fb 2620:0:861:102:10:64:16:167
The query times out (6s timeout) I believe due to a combination of the expression itself and the data to fetch (~1k metric files). The unquoted query is 'sortByMaxima(groupByNode(summarize(MediaWiki.extdist.extensions.*.*.sum,"4w","sum",true),3,"sum"))'
I'm going to try and bump the timeout a little first