Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mkcloud: improve image cache usage #3428

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 14, 2019

  1. mkcloud: improve image cache usage

    In order to prevent the image cache directory to fill up
    the disk the cache should share its images with all jobs.
    A 'per' job cache does not make sense for an image thats
    just used once.
    
    So the value of $cache_dir_default is now a shared directory
    and no longer contains the cloud name.
    To not break running deployments rsync needs to drop the
    'inplace' parameter, so that it first syncs the new image
    and then does a rename at the end.
    This guarantees that
    1) there is always one consistent image to deploy from,
    2) no running jobs read from currupt files,
    3) the cache really caches for all jobs on the host.
    
    The compress parameter can also be dropped because the image
    files are already compressed. So we can save CPU cycles.
    jdsn committed May 14, 2019
    Configuration menu
    Copy the full SHA
    9e622d3 View commit details
    Browse the repository at this point in the history