1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-05-29 14:50:09 +02:00

adjust script parameter

This commit is contained in:
Chris Lu 2019-06-05 01:48:03 -07:00
parent ede876cfdb
commit 784141c5e6
2 changed files with 2 additions and 1 deletions

View file

@ -49,7 +49,7 @@ case "$1" in
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 "$BALANCING_CRON_SCHEDULE" 'echo "volume.balance -c ALL -force" | weed shell -master='$MASTER >> /crontab
echo "Running Crontab:"
cat /crontab
exec supercronic /crontab

View file

@ -321,6 +321,7 @@ key = ""
# this file is read by master
[master.maintenance]
# periodically run these scripts are the same as running them from 'weed shell'
scripts = """
ec.encode -fullPercent=95 -quietFor=1h
ec.rebuild -force