feat(k8s/archmirror): run sync once daily at 3AM, reduce timeouts

This commit is contained in:
2026-03-23 22:37:19 +02:00
parent a3ccd0c430
commit 8b8fe5f314
2 changed files with 3 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ data:
for i in $(seq 1 $MAX_RETRIES); do
log "Sync attempt $i/$MAX_RETRIES from $MIRROR_URL"
if rsync --timeout=7200 \
if rsync --timeout=600 \
-rlptH --safe-links --delete-delay --delay-updates \
-v --info=progress2 \
"$MIRROR_URL/" "$TARGET_DIR/"; then

View File

@@ -7,14 +7,14 @@ metadata:
labels:
app: archmirror-sync
spec:
schedule: "0 */6 * * *"
schedule: "0 3 * * *"
concurrencyPolicy: Forbid
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 3
jobTemplate:
spec:
backoffLimit: 1
activeDeadlineSeconds: 14400
activeDeadlineSeconds: 3600
template:
metadata:
labels: