feat(pkg-cache): host package cache is opt-in (default OFF) + origin fallback health check
- /etc/pkgcache-host.conf setting (PKGCACHE_ENABLED, PKGCACHE_URL, PKGCACHE_CA); no cache host is built into the tool. sync/apply/revert/status; status shows mode. - pkgcache-host-health.sh + 5 min timer (installed only while ON): probes repomd.xml and .asc through the cache, 2 failures -> origin-only (reversible marker lines, atomic rename under flock), 3 successes -> cache-first. Both-down is not counted. - scripts/tests/pkgcache-host.test.sh Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
a971412243
commit
b28e561387
5 files changed
+361
-30
No files matched your search
@@ -0,0 +1,4 @@
|
||||
# /etc/pkgcache-host.conf — package cache for this host. OFF unless enabled here.
|
||||
PKGCACHE_ENABLED=0
|
||||
#PKGCACHE_URL=https://pkg-cache.example.net
|
||||
#PKGCACHE_CA=/root/pkgcache-host/pkg-cache-ca.crt
|
||||
Reference in new issue
Block a user