{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/213","labels_url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/213/comments","events_url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/213/events","html_url":"https://github.com/jenkinsci/git-plugin/pull/213","id":29833020,"number":213,"title":"Do polling using a shared repository with a single fetch","user":{"login":"gloeglm","id":2007505,"avatar_url":"https://avatars.githubusercontent.com/u/2007505?v=3","gravatar_id":"","url":"https://api.github.com/users/gloeglm","html_url":"https://github.com/gloeglm","followers_url":"https://api.github.com/users/gloeglm/followers","following_url":"https://api.github.com/users/gloeglm/following{/other_user}","gists_url":"https://api.github.com/users/gloeglm/gists{/gist_id}","starred_url":"https://api.github.com/users/gloeglm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gloeglm/subscriptions","organizations_url":"https://api.github.com/users/gloeglm/orgs","repos_url":"https://api.github.com/users/gloeglm/repos","events_url":"https://api.github.com/users/gloeglm/events{/privacy}","received_events_url":"https://api.github.com/users/gloeglm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jenkinsci/git-plugin/labels/polling","name":"polling","color":"bfd4f2"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2014-03-20T16:16:12Z","updated_at":"2015-09-22T13:22:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/git-plugin/pulls/213","html_url":"https://github.com/jenkinsci/git-plugin/pull/213","diff_url":"https://github.com/jenkinsci/git-plugin/pull/213.diff","patch_url":"https://github.com/jenkinsci/git-plugin/pull/213.patch"},"body":"Okay so this is a fairly experimental change we are running on our local jenkins installation currently. It changes the git polling mechanism to no longer do a fetch on the workspace repository and do a check for changes on that, but to do only a single fetch on a central, shared clone of the remote and use that for change detection.\r\n\r\nThe motivation for this is that due to past decissions we are currently maintaining a jenkins setup with over 200 build jobs all building from the same git repo. So every push to the repo triggered polling for all those jobs, meaning 200+ concurrent git fetch commands. This caused huge IO load on our build servers, which lead to it sometimes taking 15+ minutes between a push and a project starting to build.\r\n\r\nSo with this change, there is only a single fetch being done, on a central repository (one per git url) that can then be used by all projects for detecting changes. For us this cut the time to check all projects for changes down to ~10 sec, obviously a huge improvement.\r\n\r\nSo this is all a little bit unknown territory for us, so we would appreciate any advice on how to improve this and feedback if this is something that would be possible to get merged. We would be more than happy to work on getting this to a merged state."},"comment":{"url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/comments/142288106","html_url":"https://github.com/jenkinsci/git-plugin/pull/213#issuecomment-142288106","issue_url":"https://api.github.com/repos/jenkinsci/git-plugin/issues/213","id":142288106,"user":{"login":"KostyaSha","id":231611,"avatar_url":"https://avatars.githubusercontent.com/u/231611?v=3","gravatar_id":"","url":"https://api.github.com/users/KostyaSha","html_url":"https://github.com/KostyaSha","followers_url":"https://api.github.com/users/KostyaSha/followers","following_url":"https://api.github.com/users/KostyaSha/following{/other_user}","gists_url":"https://api.github.com/users/KostyaSha/gists{/gist_id}","starred_url":"https://api.github.com/users/KostyaSha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KostyaSha/subscriptions","organizations_url":"https://api.github.com/users/KostyaSha/orgs","repos_url":"https://api.github.com/users/KostyaSha/repos","events_url":"https://api.github.com/users/KostyaSha/events{/privacy}","received_events_url":"https://api.github.com/users/KostyaSha/received_events","type":"User","site_admin":false},"created_at":"2015-09-22T13:22:02Z","updated_at":"2015-09-22T13:22:02Z","body":"@MarkEWaite you can introduce some label like 'delayed' :)"}}