17
17
* under the License.
18
18
*/
19
19
20
+ import { IndexSettings } from '@indices/_types/IndexSettings'
20
21
import { RequestBase } from '@_types/Base'
21
- import { IndexName , WaitForActiveShards } from '@_types/common'
22
- import { long } from '@_types/Numeric'
22
+ import { ByteSize , IndexName , WaitForActiveShards } from '@_types/common'
23
+ import { integer , long } from '@_types/Numeric'
23
24
import { Duration } from '@_types/Time'
24
25
25
26
/**
@@ -29,23 +30,81 @@ import { Duration } from '@_types/Time'
29
30
*/
30
31
export interface Request extends RequestBase {
31
32
path_parts : {
33
+ /**
34
+ * The name of the follower index.
35
+ */
32
36
index : IndexName
33
37
}
34
38
query_parameters : {
39
+ /**
40
+ * Specifies the number of shards to wait on being active before responding. This defaults to waiting on none of the shards to be
41
+ * active.
42
+ * A shard must be restored from the leader index before being active. Restoring a follower shard requires transferring all the
43
+ * remote Lucene segment files to the follower index.
44
+ */
35
45
wait_for_active_shards ?: WaitForActiveShards
36
46
}
37
47
body : {
38
- leader_index ?: IndexName
48
+ /**
49
+ * If the leader index is part of a data stream, the name to which the local data stream for the followed index should be renamed.
50
+ */
51
+ data_stream_name ?: string
52
+ /**
53
+ * The name of the index in the leader cluster to follow.
54
+ */
55
+ leader_index : IndexName
56
+ /**
57
+ * The maximum number of outstanding reads requests from the remote cluster.
58
+ */
39
59
max_outstanding_read_requests ?: long
40
- max_outstanding_write_requests ?: long
41
- max_read_request_operation_count ?: long
42
- max_read_request_size ?: string
60
+ /**
61
+ * The maximum number of outstanding write requests on the follower.
62
+ */
63
+ max_outstanding_write_requests ?: integer
64
+ /**
65
+ * The maximum number of operations to pull per read from the remote cluster.
66
+ */
67
+ max_read_request_operation_count ?: integer
68
+ /**
69
+ * The maximum size in bytes of per read of a batch of operations pulled from the remote cluster.
70
+ */
71
+ max_read_request_size ?: ByteSize
72
+ /**
73
+ * The maximum time to wait before retrying an operation that failed exceptionally. An exponential backoff strategy is employed when
74
+ * retrying.
75
+ */
43
76
max_retry_delay ?: Duration
44
- max_write_buffer_count ?: long
45
- max_write_buffer_size ?: string
46
- max_write_request_operation_count ?: long
47
- max_write_request_size ?: string
77
+ /**
78
+ * The maximum number of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will be
79
+ * deferred until the number of queued operations goes below the limit.
80
+ */
81
+ max_write_buffer_count ?: integer
82
+ /**
83
+ * The maximum total bytes of operations that can be queued for writing. When this limit is reached, reads from the remote cluster will
84
+ * be deferred until the total bytes of queued operations goes below the limit.
85
+ */
86
+ max_write_buffer_size ?: ByteSize
87
+ /**
88
+ * The maximum number of operations per bulk write request executed on the follower.
89
+ */
90
+ max_write_request_operation_count ?: integer
91
+ /**
92
+ * The maximum total bytes of operations per bulk write request executed on the follower.
93
+ */
94
+ max_write_request_size ?: ByteSize
95
+ /**
96
+ * The maximum time to wait for new operations on the remote cluster when the follower index is synchronized with the leader index.
97
+ * When the timeout has elapsed, the poll for operations will return to the follower so that it can update some statistics.
98
+ * Then the follower will immediately attempt to read from the leader again.
99
+ */
48
100
read_poll_timeout ?: Duration
49
- remote_cluster ?: string
101
+ /**
102
+ * The remote cluster containing the leader index.
103
+ */
104
+ remote_cluster : string
105
+ /**
106
+ * Settings to override from the leader index.
107
+ */
108
+ settings ?: IndexSettings
50
109
}
51
110
}
0 commit comments