【发布时间】:2020-12-05 18:37:12
【问题描述】:
AWS ElasticSearch 的 AWS Docs 中有一个关于收缩 API 的部分:
示例展示了如何缩小:
{
"settings": {
"index.routing.allocation.require._name": "name-of-the-node-to-shrink-to",
"index.blocks.read_only": true
}
}
PUT https://domain.region.es.amazonaws.com/source-index/_settings
{
"settings": {
"index.routing.allocation.require._name": null,
"index.blocks.read_only": false
}
}
PUT https://domain.region.es.amazonaws.com/shrunken-index/_settings
{
"settings": {
"index.routing.allocation.require._name": null,
"index.blocks.read_only": false
}
}
我在哪里可以获得name-of-the-node-to-shrink-to、source-index 和shrunken-index?
【问题讨论】: