Added/updated snippets for docs (#2318)
This commit is contained in:
26
docs/doc_examples/90c087560ea6c0b7405f710971c86ef0.asciidoc
Normal file
26
docs/doc_examples/90c087560ea6c0b7405f710971c86ef0.asciidoc
Normal file
@ -0,0 +1,26 @@
|
||||
// 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.ccr.putAutoFollowPattern({
|
||||
name: "my_auto_follow_pattern",
|
||||
remote_cluster: "remote_cluster",
|
||||
leader_index_patterns: ["leader_index*"],
|
||||
follow_index_pattern: "{{leader_index}}-follower",
|
||||
settings: {
|
||||
"index.number_of_replicas": 0,
|
||||
},
|
||||
max_read_request_operation_count: 1024,
|
||||
max_outstanding_read_requests: 16,
|
||||
max_read_request_size: "1024k",
|
||||
max_write_request_operation_count: 32768,
|
||||
max_write_request_size: "16k",
|
||||
max_outstanding_write_requests: 8,
|
||||
max_write_buffer_count: 512,
|
||||
max_write_buffer_size: "512k",
|
||||
max_retry_delay: "10s",
|
||||
read_poll_timeout: "30s",
|
||||
});
|
||||
console.log(response);
|
||||
----
|
||||
Reference in New Issue
Block a user