Merge lp:~cprov/core-image-publisher/fake-home into lp:core-image-publisher
Status: | Merged |
---|---|
Approved by: | Celso Providelo |
Approved revision: | 22 |
Merged at revision: | 21 |
Proposed branch: | lp:~cprov/core-image-publisher/fake-home |
Merge into: | lp:core-image-publisher |
Diff against target: |
38 lines (+10/-4) 2 files modified
core-service.conf (+3/-3) core_image_publisher/worker.py (+7/-1) |
To merge this branch: | bzr merge lp:~cprov/core-image-publisher/fake-home |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Francis Ginther | Approve | ||
Review via email: mp+254865@code.launchpad.net |
Commit message
Define a fake/temporary $HOME for our system user (core-worker) for calling u-d-f for downloading images.
Description of the change
Define a fake/temporary $HOME for our system user (core-worker) for calling u-d-f for downloading images. u-d-f fills '~/.cache/
{{{
571848 tmpg3m9bclk/
640252 tmpg3m9bclk/
4 tmpg3m9bclk/
4 tmpg3m9bclk/
12 tmpg3m9bclk/
16 tmpg3m9bclk/
20 tmpg3m9bclk/
4 tmpg3m9bclk/
4 tmpg3m9bclk/
4 tmpg3m9bclk/
4 tmpg3m9bclk/
20 tmpg3m9bclk/
43640 tmpg3m9bclk/
4 tmpg3m9bclk/
4 tmpg3m9bclk/
76792 tmpg3m9bclk/
120444 tmpg3m9bclk/
120488 tmpg3m9bclk/
120492 tmpg3m9bclk/.cache
1332596 tmpg3m9bclk/
}}}
For now we can throw it away since bandwidth is cheap inside the DC, but maybe we can explore this already present caching mechanism for operation with hot-cache workers on other image tests.
Since we do have short-living workers, development would have to slow down a lot before we can see any benefit. Also if we don't have any policy for periodically recycling workers, we might have to cleanup its $HOME. Anyway, let's not prematurely optimise
Approve