[Fleet] Create Fleet server indices with auto_expand_replicas (#95924)
This commit is contained in:
parent
589f49f442
commit
9e55b8b6c8
|
@ -116,6 +116,11 @@ async function createIndex(esClient: ElasticsearchClient, indexName: string, ind
|
|||
index: indexName,
|
||||
body: {
|
||||
...indexData,
|
||||
settings: {
|
||||
...(indexData.settings || {}),
|
||||
auto_expand_replicas: '0-1',
|
||||
},
|
||||
|
||||
mappings: Object.assign({
|
||||
...indexData.mappings,
|
||||
_meta: { ...(indexData.mappings._meta || {}), migrationHash },
|
||||
|
|
Loading…
Reference in a new issue