File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,15 @@ log_rsync "END elasticsearch rsync" 1>&3
54
54
# Set up a trap to re-enable flushing on exit and remove temp file
55
55
cleanup () {
56
56
ghe_verbose " * Enabling ES index flushing ..."
57
- echo ' {"transient ":{"index. translog.flush_threshold_size":null }}' |
57
+ echo ' {"index ":{"translog.flush_threshold_size":"512MB" }}' |
58
58
ghe-ssh " $host " -- curl -s -XPUT " localhost:9200/_settings" -d @- > /dev/null
59
59
}
60
60
trap ' cleanup' EXIT
61
61
trap ' exit $?' INT # ^C always terminate
62
62
63
63
# Disable ES flushing and force a flush right now
64
64
ghe_verbose " * Disabling ES index flushing ..."
65
- echo ' {"transient ":{"index. translog.flush_threshold_size":"1PB"}}' |
65
+ echo ' {"index ":{"translog.flush_threshold_size":"1PB"}}' |
66
66
ghe-ssh " $host " -- curl -s -XPUT " localhost:9200/_settings" -d @- > /dev/null
67
67
ghe-ssh " $host " -- curl -s -XPOST " localhost:9200/_flush" > /dev/null
68
68
You can’t perform that action at this time.
0 commit comments