Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-56483

Limit local storage utilization

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor Minor
    • kubernetes-plugin
    • Jenkins 2.105

      Hi, I am using kubernetes plugin to provision dynamically Jenkins slaves in our Openshift cluster. We configured our pods to use a persistent storage to store Jenkins tools and caches (i.e. maven local repository). Workspaces are stored in EmptyDir volume. We also configured the plugin to destroy pods after 30 minutes idle. We are having problems because there are jobs the generate big binaries, so when a pod runs several jobs it may take a lot of ephemeral storage in the Openshift node and our Openshift administrators are complaining.

      Is it possible to limit the local storage that a pod can take ? I suggest as an improvement that, after each build, the plugin checks storage consumption of the pod. If it is higher than certain threshold, then the slave will be deleted.

            Unassigned Unassigned
            pgomez Pablo Gomez
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: