Skip to content

Commit ce3231e

Browse files
author
Oliver Cervera
authored
Merge pull request #45 from tehniemer/master
Added ratio override for sync Add documentation about added to deleted threshold Added enable bit to scrub new blocks after sync. Updated message subjects for accurate alerts. Redefine SNAPSCRIPTVERSION for use in the script. Added date/time to scrub messages. chk_del() function was modified for cases when DEL_THRESHOLD is set to 0.
2 parents 7321d25 + 1124085 commit ce3231e

File tree

2 files changed

+88
-65
lines changed

2 files changed

+88
-65
lines changed

script-config.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,16 @@ ADD_DEL_THRESHOLD=0
7171
# manual sync if delete threshold is breached).
7272
SYNC_WARN_THRESHOLD=-1
7373

74-
# Set percentage of array to scrub if it is in sync. i.e. 0 to disable and 100
75-
# to scrub the full array in one go WARNING - depending on size of your array,
76-
# setting to 100 will take a very long time!
74+
# Set percentage and age, in days, of blocks in array to scrub if it is in sync.
75+
# i.e. 0 to disable and 100 to scrub the full array in one go.
76+
# WARNING - depending on size of your array, setting to 100 can take a long time!
7777
SCRUB_PERCENT=5
7878
SCRUB_AGE=10
7979

80+
# Scrub new blocks after sync that have yet to be scrubbed. 1 to enable and any
81+
# other value to disable.
82+
SCRUB_NEW=0
83+
8084
# Set number of script runs before running a scrub. Use this option if you
8185
# don't want to scrub the array every time.
8286
# Set to 0 to disable this option and run scrub every time.

0 commit comments

Comments
 (0)