-
Notifications
You must be signed in to change notification settings - Fork 66
[Performance] Check if Jenkins is updating plugins at startup #2350
Comments
@rupalibehera please update this issue with your finding, /cc @pbergene |
please add |
Already discussed with @rupalibehera but pasting her for posterity. The only "official" way, that I am aware of, to stop plugins from upgrading is to pin them. https://jenkins.io/doc/book/managing/plugins/#pinned-plugins |
I could not see anywhere in the logs where the jenkins plugins get udpated, any ideas where is this @rupalibehera ? |
@chmouel, Yes Jenkins plugins don't get updated for sure but they might checking for updates |
@rupalibehera It was reported that it was at boot time but i could not see it in the logs (which is part of the perf issues), is it a periodic tasks? I don't see any documentations anywhere about it, |
@rupalibehera @lordofthejars can you ack on this please if that happen or not and cause slowdown ? |
I can check this by just starting and Jenkins and checking or it is something more specific to our Jenkins instance? Can I just run this locally in my Docker instance https://github.com/fabric8-jenkins/jenkins-openshift-base and see? |
I believe we just need a ack Should we care? If it does (as reported) we need to figure a way to make it more robust, |
@lordofthejars , you can run it locally only if it is running inside kubernetes/openshift cluster. |
@chmouel , I am not able to assign the issue to @lordofthejars |
@maxandersen just added him to openshiftio org, I think @lordofthejars may need to accept the invite |
I have already invited |
@lordofthejars We run https://github.com/fabric8io/openshift-jenkins-s2i-config, derived from the base image you mentioned. |
@jfchevrette I have started reviewing this issue. Regarding if plugins are updated during start up, I have not noticed anything related to this in my pod. I have been putting in IDLE jenkins pod and restarting again and I have not seen anything that suggests that the plugins are updated. Of course this means nothing since maybe it happens every X time and I have been barley unlucky to not see that. So if you have a log when this happens, can you send it to me so I can continue the investigation? Maybe not related to this but also a performance issue I have opened this issue to understand what is this process that takes so much time: |
@jfchevrette news about metadata https://twitter.com/alecharp/status/971684446192709632 so it seems that plugins are not updated by default and requires some kind of script. Other thing to think about is if our jenkins installation bundles this script. |
@lordofthejars it may be good to figure out why this file takes 40s as well https://updates.jenkins-ci.org/current/update-center.json (takes less than a second on my laptop), or is it actually doing something else too ? |
This time is for downloading the |
I don't think it's the latency for that file, trying this from inside the containers :
Not saying that the slowness we have seen is not because of the update process (and as you said it's not worth to have it) but i would imagine that there is something going on that takes time after or before the file download. |
notice that the time is printed when say |
@lordofthejars would you have an update for us here? |
About this no idea, now I am just working on updating plugins for Jenkins since after we removed some of them, then we have some failures at boot up, so checking what's happening there. This is going to be hard to know why it takes so many time on this. |
I guess we can close this issue (since it's an investigation story) then and come back to it if needed. So to recap:
|
There is some report that jenkins is updating its plugins and then cause some slowness,
The text was updated successfully, but these errors were encountered: