Here is a story in three charts:
Two weeks ago, we launched a new search tool at work with 200,000+ results pages.
A few days ago, the CPU usage for the database powering the search started to look like this:
(eg. spiky, dangerous levels of high usage)
We spent a few days tuning performance, adding indexes, tweaking queries etc. No difference. We looked at the logs – lots of Googlebot traffic. We checked our Google Search Console.
Googlebot was very, very hungry. And we'd just given it almost half a million new pages.
We realised that each of the pages it was crawling made a call to a "related" endpoint which was slow/expensive to render. We quickly disabled this.
Here's the almost immediate impact on CPU: