[JIRA] (JENKINS-56483) Limit local storage utilization

5 views
Skip to first unread message

pablo.gomezjimenez@dhl.com (JIRA)

unread,
Mar 8, 2019, 9:59:02 AM3/8/19
to jenkinsc...@googlegroups.com
Pablo Gomez created an issue
 
Jenkins / Improvement JENKINS-56483
Limit local storage utilization
Issue Type: Improvement Improvement
Assignee: Carlos Sanchez
Components: kubernetes-plugin
Created: 2019-03-08 14:58
Environment: Jenkins 2.105
Labels: plugin
Priority: Minor Minor
Reporter: Pablo Gomez

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jglick@cloudbees.com (JIRA)

unread,
Jul 16, 2019, 3:43:17 PM7/16/19
to jenkinsc...@googlegroups.com
Jesse Glick assigned an issue to Unassigned
Change By: Jesse Glick
Assignee: Carlos Sanchez

jenkins-ci.org@meneguello.com (JIRA)

unread,
Aug 9, 2019, 8:07:01 AM8/9/19
to jenkinsc...@googlegroups.com
Bruno Meneguello commented on Improvement JENKINS-56483
 
Re: Limit local storage utilization

It's possible to use "Raw yaml for the Pod" with "Yaml merge strategy" = "Merge" and something like:

spec:
  containers:
    - name: jnlp
        resources:
          limits:
            ephemeral-storage: "90Gi"

 

pablo.gomezjimenez@dhl.com (JIRA)

unread,
Aug 9, 2019, 8:17:02 AM8/9/19
to jenkinsc...@googlegroups.com

Bruno Meneguello and what will happen when the max ephemeral storage is reached?

jenkins-ci.org@meneguello.com (JIRA)

unread,
Aug 9, 2019, 11:30:03 AM8/9/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages