[ 
https://ovirt-jira.atlassian.net/browse/OVIRT-921?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Barak Korren updated OVIRT-921:
-------------------------------
    Component/s:     (was: oVirt CI)
                 mock_runner

> Smarter cache handling for mock_runner.sh
> -----------------------------------------
>
>                 Key: OVIRT-921
>                 URL: https://ovirt-jira.atlassian.net/browse/OVIRT-921
>             Project: oVirt - virtualization made easy
>          Issue Type: Improvement
>          Components: mock_runner
>            Reporter: Barak Korren
>            Assignee: infra
>              Labels: mock, mock_runner.sh, performance, standard-ci
>
> We've improved our handing of mock caches in OVIRT-902, but it could be 
> better.
> Right now we're just deleting everything from {{mock_cleanup.sh}} every two 
> days, but we could do things in a smarter and more refined way:
> * Mock actually has two separate caches that could be handled separately:
> *# The yum cache - Caches package that are installed in the chroot 
> *# The root cache - Keeps an archive of the whole chroot
> * We can make the yum cache shared by all the chroots that use the same repos
> * We can keep the yum cache for much longer since 'yum' will refresh it 
> automatically. We can tune this from mock root config file:
> ** {{config_opts\['plugin_conf']\['yum_cache_opts']\['max_age_days']}}
> ** 
> {{config_opts\['plugin_conf']\['yum_cache_opts']\['max_metadata_age_days']}}
> * We can also control the chroot cache from the mock config file, this will 
> allow us greated flexibility, like deciding that some chroots live longer:
> ** {{config_opts\['plugin_conf']\['root_cache_opts']\['max_age_days']}}
> * We can use a different compression algorithm for the chroot acche, this may 
> yield better performance.
> * We still need some cleanup in {{moch_cleanup.sh}} but only for chroot 
> caches that ahvn't been in use for a long time.



--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100087)
_______________________________________________
Infra mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/7SNP6ZQDS2P7XFYSC6XHONAQ73YIGZO4/

Reply via email to