feat(k8s/archmirror): run sync once daily at 3AM, reduce timeouts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user