Two weeks ago I was being drawn into the debug of artdb, the Replication hierarchy used by our Artifactory instance.
Artifactory overloaded the database. This was incident-handled by optimizing a number of slow queries using some covering index trickery, and by upgrading the hardware substantially.
Using the runway we bought, we found and partially fixed the following problems:
- Fixed: A number of very expensive reporting queries were sped up 16x to 20x using covering indexes, from 180s runtime to 8s-12s runtime.
- Fixed: We optimized our database and data size by completing the data lifecycle for several repo types, deleting old images.
- Fixed: Hardware upgrade lowered load even more, and sped up the queries even more.
- Fixed: …