http://localhost:9200/test_index/_settings/
{
  "index": {
    "number_of_replicas": 0
  }
}http://localhost:9200/test_index/_settings/
{
  "index": {
    "refresh_interval": "-1"
  }
}http://localhost:9200/test_index/_settings/
{
  "index.translog.flush_threshold_size": "1024mb"
}http://localhost:9200/_cluster/settings/
{
  "persistent": {
    "indices.store.throttle.max_bytes_per_sec": "200mb"
  }
}
http://localhost:9200/_cluster/settings/
{
  "transient": {
    "indices.store.throttle.type": "none"
  }
}全量dump后,再恢复一下
http://localhost:9200/test_index/_settings/
{
  "index": {
    "number_of_replicas": 5
  }
}http://localhost:9200/test_index/_settings/
{
  "index": {
    "refresh_interval": "1s"
  }
}http://localhost:9200/test_index/_settings/
{
  "index.translog.flush_threshold_size": "512mb"
}当然应该使用bulk模式, elasticsearch单次提交数据尽量在15M以内。
原文:http://blog.51cto.com/12597095/2316433