индекса задать количество шардов. В Кибане в Index settings добавляю:
{
"index": {
"lifecycle": {
"name": "logz"
},
"number_of_shards": "4",
"number_of_replicas": "1"
}
}
В Dev Tools делаю запрос GET /loggi-2023.08.29-00001/_settings и вижу там "number_of_shards" : "1"
Как правильно?
Static index settings Below is a list of all static index settings that are not associated with any specific index module: index.number_of_shards The number of primary shards that an index should have. Defaults to 1. This setting can only be set at index creation time. It cannot be changed on a closed index.
Можно вот этим воспользоваться https://www.elastic.co/guide/en/elasticsearch/reference/8.9/indices-shrink-index.html
Обсуждают сегодня