mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
docker adjust cronjob schedule, add volume.balance job
This commit is contained in:
parent
3ff92037cc
commit
89f97777d9
|
@ -46,8 +46,10 @@ case "$1" in
|
||||||
|
|
||||||
'cronjob')
|
'cronjob')
|
||||||
MASTER=${WEED_MASTER-localhost:9333}
|
MASTER=${WEED_MASTER-localhost:9333}
|
||||||
CRON_SCHEDULE=${CRON_SCHEDULE-*/5 * * * * *}
|
FIX_REPLICATION_CRON_SCHEDULE=${CRON_SCHEDULE-*/7 * * * * *}
|
||||||
echo "$CRON_SCHEDULE" 'echo "volume.fix.replication" | weed shell -master='$MASTER > /crontab
|
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:"
|
echo "Running Crontab:"
|
||||||
cat /crontab
|
cat /crontab
|
||||||
exec supercronic /crontab
|
exec supercronic /crontab
|
||||||
|
|
Loading…
Reference in a new issue