Investigate: Latency p95 of npm endpoints for the Package Registry
Topic to Evaluate
We recently started measuring the latency p95 scores of the various API endpoints for the GitLab Package Registry. As we looked at the charts there are a few endpoints that stood out and warrant an investigation to find any issues and determine if any optimizations can be made.
The npm upload and metadata endpoints could have better numbers. The npm upload is slow and that’s explained by the fact that the upload is not accelerated by workhorse so that rails has to do all the heavy lifting.
However, it's not clear why the metadata is slow.
Tasks to Evaluate
Investigate the npm get metadata event and see if it can be optimized to perform better.
- View the Kibana chart here