File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 4
4
# /
5
5
# / Note: This command typically isn't called directly. It's invoked by
6
6
# / ghe-backup when the rsync strategy is used.
7
+ # shellcheck disable=SC2086
7
8
set -e
8
9
9
10
# Bring in the backup configuration
@@ -54,15 +55,15 @@ log_rsync "END elasticsearch rsync" 1>&3
54
55
# Set up a trap to re-enable flushing on exit and remove temp file
55
56
cleanup () {
56
57
ghe_verbose " * Enabling ES index flushing ..."
57
- echo ' {"index":{"translog.disable_flush":false }}' |
58
+ echo ' {"index":{"translog.flush_threshold_size":"512MB" }}' |
58
59
ghe-ssh " $host " -- curl -s -XPUT " localhost:9200/_settings" -d @- > /dev/null
59
60
}
60
61
trap ' cleanup' EXIT
61
62
trap ' exit $?' INT # ^C always terminate
62
63
63
64
# Disable ES flushing and force a flush right now
64
65
ghe_verbose " * Disabling ES index flushing ..."
65
- echo ' {"index":{"translog.disable_flush":true }}' |
66
+ echo ' {"index":{"translog.flush_threshold_size":"1PB" }}' |
66
67
ghe-ssh " $host " -- curl -s -XPUT " localhost:9200/_settings" -d @- > /dev/null
67
68
ghe-ssh " $host " -- curl -s -XPOST " localhost:9200/_flush" > /dev/null
68
69
You can’t perform that action at this time.
0 commit comments