Last active
October 26, 2017 21:50
-
-
Save stillalex/d0c9668360337ed53031 to your computer and use it in GitHub Desktop.
Offline Compaction 1.0 loop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
count=${1:-100} | |
delay=${2:-1} # defaults to 1 second | |
ts=$(date +"%Y%m%d%H%M") | |
while [ $count -gt 0 ]; do | |
printf "==== Compaction run $count ====\n" | |
printf "Start: $(date)\n" >> compaction.$ts.$count.log | |
java -Dtar.memoryMapped=true -Dupdate.limit=5000000 -Dcompaction-progress-log=1500000 -Dcompress-interval=10000000 -Dlogback.configurationFile=logback-compaction.xml -Xmx10g -jar oak-run-1.0*.jar compact segmentstore >> compaction.$ts.$count.log 2>&1 | |
printf "\nEnd: $(date)\n" >> compaction.$ts.$count.log | |
sleep $delay | |
let count-- | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
logback-compaction.xml: