File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -109,11 +109,15 @@ Client libraries using this protocol should try and strive to do
109
109
something similar on the client side, and reduce buffering as much as
110
110
possible.
111
111
112
- There is no "correct" number of actions to perform in a single bulk request.
113
- Experiment with different settings to find the optimal size for your particular workload.
114
-
115
- When using the HTTP API, make sure that the client does not send HTTP chunks,
116
- as this will slow things down.
112
+ There is no "correct" number of actions to perform in a single bulk request.
113
+ Experiment with different settings to find the optimal size for your particular
114
+ workload. Note that {es} limits the maximum size of a HTTP request to `100mb`
115
+ by default so clients must ensure that no request exceeds this size. It is not
116
+ possible to index a single document which exceeds the size limit, so you must
117
+ pre-process any such documents into smaller pieces before sending them to {es}.
118
+ For instance, split documents into pages or chapters before indexing them, or
119
+ store raw binary data in a system outside {es} and replacing the raw data with
120
+ a link to the external system in the documents that you send to {es}.
117
121
118
122
[discrete]
119
123
[[bulk-clients]]
Original file line number Diff line number Diff line change @@ -43,7 +43,14 @@ Configure this setting only if you need the publish port to be different from
43
43
44
44
`http.max_content_length`::
45
45
(<<static-cluster-setting,Static>>)
46
- Maximum size of an HTTP request body. Defaults to `100mb`.
46
+ Maximum size of an HTTP request body. Defaults to `100mb`. Configuring this
47
+ setting to greater than `100mb` can cause cluster instability and is not
48
+ recommended. If you hit this limit when sending a request to the <<docs-bulk>>
49
+ API, configure your client to send fewer documents in each bulk request. If you
50
+ wish to index individual documents that exceed `100mb`, pre-process them into
51
+ smaller documents before sending them to {es}. For instance, store the raw data
52
+ in a system outside {es} and include a link to the raw data in the documents
53
+ that {es} indexes.
47
54
48
55
`http.max_initial_line_length`::
49
56
(<<static-cluster-setting,Static>>)
You can’t perform that action at this time.
0 commit comments