Project

General

Custom queries

Profile

Actions

Feature #17813

closed

Cache docker-to-singularity image conversions

Added by Tom Clegg almost 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Assigned To:
Category:
Crunch
Target version:
Story points:
-
Release relationship:
Auto

Description

Currently, when crunch-run is in singularity mode, it converts the specified docker image to a .sif file before starting the container. The conversion is slow, and the .sif file is not saved anywhere, so the entire process is slow even when the same image is used for lots of steps in a workflow, sequential containers running on the same worker node, etc.

We can speed this up in most cases by saving the .sif file in Keep.
  • Before converting the docker image, check a project called "auto-generated singularity images" in a ".cache" project in the home project (runtime_user_uuid) for a collection named "singularity image for X" (where X is the docker image PDH) containing a single .sif file. If that exists, extend the trash_at time to now+2w, and use that .sif file instead of converting the docker image.
  • If that doesn't work out, convert the docker image as we do now.
  • After converting, save the .sif file in "singularity image for X" with trash_at=now+2w and properties {"type":"singularity image","docker_image_pdh":X}.

Subtasks 2 (0 open2 closed)

Task #17867: Review 17813-docker-to-singularityResolvedTom Clegg07/23/2021Actions
Task #17921: implementResolvedPeter Amstutz07/29/2021Actions

Related issues 1 (0 open1 closed)

Related to Arvados Epics - Idea #16305: Singularity supportResolved01/01/202109/30/2021Actions
#1

Updated by Tom Clegg almost 4 years ago

#2

Updated by Tom Clegg almost 4 years ago

  • Description updated (diff)
#3

Updated by Tom Clegg almost 4 years ago

  • Description updated (diff)
#4

Updated by Tom Clegg almost 4 years ago

  • Description updated (diff)
#5

Updated by Tom Clegg almost 4 years ago

  • Description updated (diff)
#6

Updated by Peter Amstutz almost 4 years ago

  • Target version deleted (Arvados Future Sprints)
#7

Updated by Peter Amstutz almost 4 years ago

  • Target version set to 2021-07-21 sprint
#8

Updated by Peter Amstutz almost 4 years ago

  • Assigned To set to Peter Amstutz
#9

Updated by Tom Clegg almost 4 years ago

  • Assigned To changed from Peter Amstutz to Tom Clegg
#10

Updated by Peter Amstutz almost 4 years ago

  • Assigned To changed from Tom Clegg to Peter Amstutz
#12

Updated by Peter Amstutz over 3 years ago

  • Status changed from New to In Progress
#13

Updated by Peter Amstutz over 3 years ago

  • Target version changed from 2021-07-21 sprint to 2021-08-04 sprint
#19

Updated by Tom Clegg over 3 years ago

  • Status changed from In Progress to Resolved
#20

Updated by Peter Amstutz over 3 years ago

  • Release set to 42
Actions

Also available in: Atom PDF