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
|
for i in $(seq 1 $MAX_RETRIES); do
|
||||||
log "Sync attempt $i/$MAX_RETRIES from $MIRROR_URL"
|
log "Sync attempt $i/$MAX_RETRIES from $MIRROR_URL"
|
||||||
|
|
||||||
if rsync --timeout=7200 \
|
if rsync --timeout=600 \
|
||||||
-rlptH --safe-links --delete-delay --delay-updates \
|
-rlptH --safe-links --delete-delay --delay-updates \
|
||||||
-v --info=progress2 \
|
-v --info=progress2 \
|
||||||
"$MIRROR_URL/" "$TARGET_DIR/"; then
|
"$MIRROR_URL/" "$TARGET_DIR/"; then
|
||||||
|
|||||||
@@ -7,14 +7,14 @@ metadata:
|
|||||||
labels:
|
labels:
|
||||||
app: archmirror-sync
|
app: archmirror-sync
|
||||||
spec:
|
spec:
|
||||||
schedule: "0 */6 * * *"
|
schedule: "0 3 * * *"
|
||||||
concurrencyPolicy: Forbid
|
concurrencyPolicy: Forbid
|
||||||
successfulJobsHistoryLimit: 3
|
successfulJobsHistoryLimit: 3
|
||||||
failedJobsHistoryLimit: 3
|
failedJobsHistoryLimit: 3
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
backoffLimit: 1
|
backoffLimit: 1
|
||||||
activeDeadlineSeconds: 14400
|
activeDeadlineSeconds: 3600
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
|
|||||||
Reference in New Issue
Block a user