mirror of https://github.com/apache/lucene.git
SOLR-13468: fix ref guide build failures
This commit is contained in:
parent
04b61e3dee
commit
c726ada1d9
|
@ -196,15 +196,9 @@ The API is available at `/admin/autoscaling/suggestions`. Here is an example out
|
||||||
|
|
||||||
The suggested `operation` is an API call that can be invoked to remedy the current violation.
|
The suggested `operation` is an API call that can be invoked to remedy the current violation.
|
||||||
|
|
||||||
=== Inline config
|
=== Inline Policy Configuration
|
||||||
|
|
||||||
If there is no autoscaling is configured or if you wish to use a configuration other than the standard one, it is possible to send the autoscaling config json as an inline payload as follows
|
If there is no autoscaling policy configured or if you wish to use a configuration other than the default, it is possible to send the autoscaling policy JSON as an inline payload as follows:
|
||||||
|
|
||||||
[.dynamic-tabs]
|
|
||||||
--
|
|
||||||
[example.tab-pane#v1getcomponent]
|
|
||||||
====
|
|
||||||
[.tab-label]*V1 API*
|
|
||||||
|
|
||||||
[source,bash]
|
[source,bash]
|
||||||
----
|
----
|
||||||
|
@ -214,25 +208,10 @@ curl -X POST -H 'Content-type:application/json' -d '{
|
||||||
]
|
]
|
||||||
}' http://localhost:8983/solr/admin/autoscaling/suggestions?omitHeader=true
|
}' http://localhost:8983/solr/admin/autoscaling/suggestions?omitHeader=true
|
||||||
----
|
----
|
||||||
====
|
|
||||||
|
|
||||||
[example.tab-pane#v2getcomponent]
|
|
||||||
====
|
|
||||||
[.tab-label]*V2 API*
|
|
||||||
|
|
||||||
[source,bash]
|
|
||||||
----
|
|
||||||
curl -X POST -H 'Content-type:application/json' -d '{
|
|
||||||
"cluster-policy": [
|
|
||||||
{"replica": 0, "port" : "7574"}
|
|
||||||
]
|
|
||||||
}' http://localhost:8983/api/cluster/autoscaling/suggestions?omitHeader=true
|
|
||||||
----
|
|
||||||
====
|
|
||||||
--
|
|
||||||
|
|
||||||
*Output*
|
*Output*
|
||||||
[source,json]
|
[source,json]
|
||||||
|
----
|
||||||
{
|
{
|
||||||
"suggestions":[{
|
"suggestions":[{
|
||||||
"type":"violation",
|
"type":"violation",
|
||||||
|
@ -277,12 +256,8 @@ curl -X POST -H 'Content-type:application/json' -d '{
|
||||||
"inPlaceMove":"true",
|
"inPlaceMove":"true",
|
||||||
"replica":"core_node5"}}}}],
|
"replica":"core_node5"}}}}],
|
||||||
"WARNING":"This response format is experimental. It is likely to change in the future."}
|
"WARNING":"This response format is experimental. It is likely to change in the future."}
|
||||||
|
|
||||||
----
|
----
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
== History API
|
== History API
|
||||||
|
|
||||||
The history of autoscaling events is available at `/admin/autoscaling/history`. It returns information
|
The history of autoscaling events is available at `/admin/autoscaling/history`. It returns information
|
||||||
|
|
Loading…
Reference in New Issue