Skip to content

Commit 55aaa7a

Browse files
[8.17] Update "Download and deploy ELSER" snippet with adaptive allocations (backport #2878) (#2879)
* Update "Download and deploy ELSER" snippet with adaptive allocations (#2878) (cherry picked from commit 5740148) # Conflicts: # docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc * Update docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc * Update docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc --------- Co-authored-by: Liam Thompson <[email protected]>
1 parent 1b1c486 commit 55aaa7a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/en/stack/ml/nlp/ml-nlp-elser.asciidoc

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,13 +124,18 @@ PUT _inference/sparse_embedding/my-elser-model
124124
{
125125
"service": "elser",
126126
"service_settings": {
127-
"num_allocations": 1,
128-
"num_threads": 1
127+
"adaptive_allocations": {
128+
"enabled": true,
129+
"min_number_of_allocations": 1,
130+
"max_number_of_allocations": 10
131+
},
132+
"num_threads": 1,
129133
}
130134
}
131135
----------------------------------
132136
--
133137
The API request automatically initiates the model download and then deploy the model.
138+
This example uses <<ml-nlp-auto-scale,autoscaling>> through adaptive allocation.
134139

135140
Refer to the {ref}/infer-service-elser.html[ELSER {infer} service documentation] to learn more about the available settings.
136141

0 commit comments

Comments
 (0)