mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
adjust script parameter
This commit is contained in:
parent
ede876cfdb
commit
784141c5e6
|
@ -49,7 +49,7 @@ case "$1" in
|
||||||
FIX_REPLICATION_CRON_SCHEDULE=${CRON_SCHEDULE-*/7 * * * * *}
|
FIX_REPLICATION_CRON_SCHEDULE=${CRON_SCHEDULE-*/7 * * * * *}
|
||||||
echo "$FIX_REPLICATION_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 * * * * *}
|
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:"
|
echo "Running Crontab:"
|
||||||
cat /crontab
|
cat /crontab
|
||||||
exec supercronic /crontab
|
exec supercronic /crontab
|
||||||
|
|
|
@ -321,6 +321,7 @@ key = ""
|
||||||
# this file is read by master
|
# this file is read by master
|
||||||
|
|
||||||
[master.maintenance]
|
[master.maintenance]
|
||||||
|
# periodically run these scripts are the same as running them from 'weed shell'
|
||||||
scripts = """
|
scripts = """
|
||||||
ec.encode -fullPercent=95 -quietFor=1h
|
ec.encode -fullPercent=95 -quietFor=1h
|
||||||
ec.rebuild -force
|
ec.rebuild -force
|
||||||
|
|
Loading…
Reference in a new issue