-
Notifications
You must be signed in to change notification settings - Fork 66
Optimise plugin disk space in Jenkins #4568
Comments
More discussions and investigation here: https://chat.openshift.io/developers/pl/sm4bacg41iye3bwn3cau4hwr7r patch to symlink the hpi/jpi instead of copying fabric8-jenkins/jenkins-openshift-base#49 saves around 187mb |
Symlink directory into the image saves us 358MB in total, |
"In total" is confusing... Is it 358 MB per user or per cluster? How will symlink handle various versions of Jenkins? |
there is no global plugins 'folder' in our infrastructure so it is per user,
I am not sure i understand your question, did you read the patch? |
Some observations for the sym link patch Plugin management:
First boot
First boot (without restarting jenkins)
After the first boot but jenkins process restarted in running pod
after second boot (scaling jenkins pod down and up) without
with
Basic test
|
Thanks for all of those tests @hrishin, is there any chances you can try another scenario if that's not too hard to test : boot with a version of a plugin and reboot with an updated version of a plugin and see if it pickups the new version? |
Yes @chmouel we have tested by deploying a new version of I was not able to run pipelines, as jenkins is behaving wiredly due to idler issue. Rest of behavior stays same as per previous observation. |
In order to reduce the plugins storage space, this patch switches to new base image. Fixes - openshiftio/openshift.io#4568
As for doing the proper way when we merge the image with upstream here is some thought out of this discussion from https://chat.openshift.io/developers/pl/n3z1jyxh93b33cw1zdgayp5oce : |
This patch reduces the plugins storage space required for each tenant jenkins Fixes - openshiftio/openshift.io#4568
This patch reduces the plugins storage space required for each tenant jenkins Fixes - openshiftio/openshift.io#4568
This patch reduces the plugins storage space required for each tenant jenkins Fixes - openshiftio/openshift.io#4568
…n plugin (vaaf8961) This patch - updates jenkins configuration to reduces the plugins storage space required for each tenant jenkins. (fix#1) - update bayesian jenkins plugin to 0.3.3 which has enhancements to support osio-pipeline. (fix#2) Updates f8-tenant image: vaaf8961 Fixes - openshiftio/openshift.io#4568 - https://openshift.io/openshiftio/Openshift_io/plan/detail/1216
…n plugin (vb355188) This patch - updates jenkins configuration to reduces the plugins storage space required for each tenant jenkins. (fix#1) - update bayesian jenkins plugin to 0.3.3 which has enhancements to support osio-pipeline. (fix#2) Updates f8-tenant image: vb355188 Fixes - openshiftio/openshift.io#4568 - https://openshift.io/openshiftio/Openshift_io/plan/detail/1216
Tenant update has been done. Closing this, |
@pbergene could we confirm if this issue has fixed with recent tenant update? It should drop the gluster storage usage(Not able to make grasp looking at Zabbix). If not feel free to reopen this issue. Thank you |
Really nice! 😍 Great work 💪 |
Good job indeed! We have a couple of graphs which show it even more dramatically. The device space also contains snapshots and is not a direct measure of space used by PVs, but we can clearly see the updates go in with this one :) |
Thanks @pbergene ! for giving confimation. |
@hrishin We need to plan for merging a better looking (i.e: not hack) patch to jenkins upstream, since they are affected as well and we want to consume their images asap, /cc @arilivigni |
Yes @chmouel. |
The plugins directory consume over 383Mb out of 478mb and is copied over and over everywhere which cause a scale issue on the gluster volumes,
Longer discussion here :
https://chat.openshift.io/developers/pl/ic6z8bppkbf8jb78z8bhsoispe
The text was updated successfully, but these errors were encountered: