在备份亿级数据时,会报错误
<title>Error</title>
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
If you are the system administrator of this resource then you should check the error log for details.
Faithfully yours, nginx.
备份脚本
#全量数据备份
curl -u $ES_USER:$ES_PASS -XPOST ''$ES_IP'/_reindex?slices=auto&refresh' -H 'Content-Type: application/json' -d '{"source":{"index":"customer_current","query":{"bool":{"must":[{"terms":{"data_type":["1","2"]}}]}},"size":5000},"dest":{"index":"customer_back"}}'
在数据量较少的情况下可以正常执行