Skip to content

Commit e4d1b2c

Browse files
committed
Revert unsupported transient and use per index setting
1 parent f834364 commit e4d1b2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/github-backup-utils/ghe-backup-es-rsync

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,15 @@ log_rsync "END elasticsearch rsync" 1>&3
5454
# Set up a trap to re-enable flushing on exit and remove temp file
5555
cleanup () {
5656
ghe_verbose "* Enabling ES index flushing ..."
57-
echo '{"transient":{"index.translog.flush_threshold_size":null}}' |
57+
echo '{"index":{"translog.flush_threshold_size":"512MB"}}' |
5858
ghe-ssh "$host" -- curl -s -XPUT "localhost:9200/_settings" -d @- >/dev/null
5959
}
6060
trap 'cleanup' EXIT
6161
trap 'exit $?' INT # ^C always terminate
6262

6363
# Disable ES flushing and force a flush right now
6464
ghe_verbose "* Disabling ES index flushing ..."
65-
echo '{"transient":{"index.translog.flush_threshold_size":"1PB"}}' |
65+
echo '{"index":{"translog.flush_threshold_size":"1PB"}}' |
6666
ghe-ssh "$host" -- curl -s -XPUT "localhost:9200/_settings" -d @- >/dev/null
6767
ghe-ssh "$host" -- curl -s -XPOST "localhost:9200/_flush" >/dev/null
6868

0 commit comments

Comments
 (0)