(replies inline) On Fri, 16 Aug 2019, Shane Knapp wrote:
> i kicked apache, and the number of active connections dropped from ~500 to > ~100... things are much snappier now. Hiya! I maintain ci.jenkins.io for the Jenkins project (among other things) and have some snippets of code you can use to help reduce load on the Jenkins instance, which can lead to performance issues. Snippets usch as these which we run in Apache: https://github.com/jenkins-infra/jenkins-infra/blob/staging/dist/profile/manifests/buildmaster.pp#L386-L410 Basically we had found that a number of automated requests would access /api/* paths, which can access Jenkins' tree-based data (this is okay) with an arbitrarily deep level of the tree (not okay). We would see thousands of request per day from bots requesting a 100+ depth view on our data model, which Jenkins would spend many CPU cycles trying to service. We just bocked a bunch of anonymous request and that solved many of our load issues not directly related to running Jenkins Pipelines. I can be found in #jenkins-infra on Freenode as "rtyler" if you have more questions on how to improve Jenkins performance :) -- GitHub: https://github.com/rtyler GPG Key ID: 0F2298A980EE31ACCA0A7825E5C92681BEF6CEA2
signature.asc
Description: OpenPGP digital signature