debian-forge-composer/distribution
Tom Gundersen 6002a128b8 osbuild-worker: don't flush cache between jobs
Until osbuild-14, the images were unconditionally kept in the cache,
meaning the cache could grow very large. Now only the downloaded RPMs
are saved, which greatly limits how big it can grow.

Having the RPMs cached should speed up all but the first image build a
lot, so we should take advantage of that by not flushing the cache
between each build.

The cache is still flushed when the worker is stopped / restarted.

This moves the cache from /var/tmp/osbulid-worker* to
/var/cache/osbulid-worker/osbulid-worker-*. This means that each worker
gets a dedicated cache, in case there are several on one machine. In the
future we may want to combine them and only ever have one cache, but for
that we need improvements in parallel access and cache-cleanup.

Signed-off-by: Tom Gundersen <teg@jklm.no>
2020-06-07 19:22:52 +02:00
..
osbuild-composer.conf distribution: set permissions on api sockets 2020-05-20 01:55:26 +02:00
osbuild-composer.service osbuild-composer: don't use hardcoded state directory 2020-03-16 21:05:39 +01:00
osbuild-composer.socket distribution: set permissions on api sockets 2020-05-20 01:55:26 +02:00
osbuild-rcm.socket distribution: socket unit for RCM API 2020-02-24 12:03:25 +01:00
osbuild-remote-worker.socket Add tcp and tls support for worker and job API 2020-02-20 13:47:59 +01:00
osbuild-remote-worker@.service osbuild-worker: don't flush cache between jobs 2020-06-07 19:22:52 +02:00
osbuild-worker@.service osbuild-worker: don't flush cache between jobs 2020-06-07 19:22:52 +02:00