From 89f97777d99833ee25c9fae45cbeac4e57db3090 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 5 May 2019 21:42:41 -0700 Subject: [PATCH] docker adjust cronjob schedule, add volume.balance job --- docker/entrypoint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index 4e0d659ae..0265a0cb3 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -46,8 +46,10 @@ case "$1" in 'cronjob') MASTER=${WEED_MASTER-localhost:9333} - CRON_SCHEDULE=${CRON_SCHEDULE-*/5 * * * * *} - echo "$CRON_SCHEDULE" 'echo "volume.fix.replication" | weed shell -master='$MASTER > /crontab + FIX_REPLICATION_CRON_SCHEDULE=${CRON_SCHEDULE-*/7 * * * * *} + echo "$FIX_REPLICATION_CRON_SCHEDULE" 'echo "volume.fix.replication" | weed shell -master='$MASTER > /crontab + BALANCING_CRON_SCHEDULE=${CRON_SCHEDULE-25 * * * * *} + echo "$BALANCING_CRON_SCHEDULE" 'echo "volume.balance -c ALL -f" | weed shell -master='$MASTER >> /crontab echo "Running Crontab:" cat /crontab exec supercronic /crontab