api-guide: better explain scheduler hints.
This patch explains what scheduler hints are, gives an example request, then links to the api-ref for details. Co-Authored-By: Artom Lifshitz <alifshit@redhat.com> Change-Id: I1c55b9a17e9d9f57d9ec1383680cccb6ae7fcfaf
This commit is contained in:
Artom Lifshitz
committed by
Matt Riedemann
parent
0919ea6390
commit
9e8ba1f3b6
1 changed files with 27 additions and 1 deletions
@@ -740,8 +740,34 @@ in this case since we are creating a volume-backed server.
Scheduler Hints
~~~~~~~~~~~~~~~
Refer to `this document`_ for information on scheduler hints.
Scheduler hints are a way for the user to influence on which host the scheduler
places a server. They are pre-determined key-value pairs specified as a
dictionary separate from the main ``server`` dictionary in the server create
request. Available scheduler hints vary from cloud to cloud, depending on the
`cloud's configuration`_.
.. code-block:: json
{
"server": {
"name": "server-in-group",
"imageRef": "52415800-8b69-11e0-9b19-734f6f006e54",
"flavorRef": "52415800-8b69-11e0-9b19-734f1195ff37"
},
"os:scheduler_hints": {
"group": "05a81485-010f-4df1-bbec-7821c85686e8"
}
}
For more information on how to specify scheduler hints refer to
`the create-server-detail Request section`_ in the Compute API reference.
For more information on how scheduler hints are different from flavor extra
specs, refer to `this document`_.
.. _cloud's configuration: https://docs.openstack.org/nova/latest/admin/configuration/schedulers.html
.. _the create-server-detail Request section: https://developer.openstack.org/api-ref/compute/?expanded=create-server-detail#create-server
.. _this document: https://docs.openstack.org/nova/latest/reference/scheduler-hints-vs-flavor-extra-specs.html#scheduler-hints
Server Consoles
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.