Files
elasticsearch-js/docs/doc_examples/8582e918a6275472d2eba2e95f1dbe77.asciidoc
2024-07-29 17:10:05 -05:00

30 lines
1.0 KiB
Plaintext

// This file is autogenerated, DO NOT EDIT
// Use `node scripts/generate-docs-examples.js` to generate the docs examples
[source, js]
----
const response = await client.cluster.putSettings({
persistent: {
"cluster.routing.allocation.disk.watermark.low": "90%",
"cluster.routing.allocation.disk.watermark.low.max_headroom": "100GB",
"cluster.routing.allocation.disk.watermark.high": "95%",
"cluster.routing.allocation.disk.watermark.high.max_headroom": "20GB",
"cluster.routing.allocation.disk.watermark.flood_stage": "97%",
"cluster.routing.allocation.disk.watermark.flood_stage.max_headroom": "5GB",
"cluster.routing.allocation.disk.watermark.flood_stage.frozen": "97%",
"cluster.routing.allocation.disk.watermark.flood_stage.frozen.max_headroom":
"5GB",
},
});
console.log(response);
const response1 = await client.indices.putSettings({
index: "*",
expand_wildcards: "all",
settings: {
"index.blocks.read_only_allow_delete": null,
},
});
console.log(response1);
----