[JIRA] (JENKINS-60898) Contention on fingerprint files when using Docker steps

29 views
Skip to first unread message

jeremy@techorrect.com (JIRA)

unread,
Jan 28, 2020, 5:18:03 PM1/28/20
to jenkinsc...@googlegroups.com
Jeremy Lundy created an issue
 
Jenkins / Bug JENKINS-60898
Contention on fingerprint files when using Docker steps
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: JenkinsThreadDump.txt, Screen Shot 2020-01-28 at 5.11.44 PM.png
Components: docker-commons-plugin, docker-workflow-plugin
Created: 2020-01-28 22:17
Environment: Jenkins ver. 2.176.3
Labels: performance plugin docker
Priority: Minor Minor
Reporter: Jeremy Lundy

We have a jenkins master and slave running several docker based jobs every minute.

The execution times of each job is well under a minute, the longest one is 45 seconds.

Each job gets to https://github.com/jenkinsci/docker-workflow-plugin/blob/0540c1482c4b18beaa0f036491d5a732f0e024b0/src/main/java/org/jenkinsci/plugins/docker/workflow/WithContainerStep.java#L196 and hangs.

Looking at the thread dump (attached) threads are blocking on hudson.model.Fingerprint.save(Fingerprint.java:1244).

Further investigation yielded that these saves are writing to the jenkins fingerprint files.

Looking at the master server, the fingerprints directory is varying by hundreds of MBs every second.

There are several large xml files being created in the subdirectories containing ContainerRecords many for containers which are not currently returned by docker ps -a.

The number of build logs to keep is set to 25.

The disk used by the jenkins master is getting hammered more than several high usage production databases we have running in production (image attached).

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

jeremy@techorrect.com (JIRA)

unread,
Jan 28, 2020, 5:20:02 PM1/28/20
to jenkinsc...@googlegroups.com
Jeremy Lundy commented on Bug JENKINS-60898
 
Re: Contention on fingerprint files when using Docker steps

Similar issue was found in the credentials plugin

jeremy@techorrect.com (JIRA)

unread,
Jan 28, 2020, 5:22:03 PM1/28/20
to jenkinsc...@googlegroups.com
Jeremy Lundy updated an issue
 
Change By: Jeremy Lundy
Attachment: JenkinsThreadDump.txt

jeremy@techorrect.com (JIRA)

unread,
Jan 28, 2020, 5:23:03 PM1/28/20
to jenkinsc...@googlegroups.com

raihaan.shouhell@autodesk.com (JIRA)

unread,
Mar 24, 2020, 2:42:03 AM3/24/20
to jenkinsc...@googlegroups.com
Raihaan Shouhell commented on Bug JENKINS-60898
 
Re: Contention on fingerprint files when using Docker steps

Latest version of the docker-workflow plugin seems to have removed that fingerprinting

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

qmnonic@gmail.com (JIRA)

unread,
Mar 24, 2020, 11:18:02 AM3/24/20
to jenkinsc...@googlegroups.com

Raihaan Shouhell There is no `docker-workflow` plugin?  Not sure what to do to get this fix?

raihaan.shouhell@autodesk.com (JIRA)

unread,
Mar 24, 2020, 8:27:03 PM3/24/20
to jenkinsc...@googlegroups.com

Thats docker pipeline plugin its shortname is docker-workflow-plugin

Reply all
Reply to author
Forward
0 new messages