mirror of
https://github.com/cirruslabs/orchard.git
synced 2026-09-30 12:01:15 +02:00
* Resources support * Ability to provide VM and worker resources via the CLI * orchard dev: always listen on :6120 * orchard dev: support --resources * REST API: provide resource defaults when creating VM * OpenAPI: document "resources" field * orchard dev: serve Swagger API documentation on /v1/ * Integration guide
770 B
770 B
Integrating with Orchard
Orchard has a REST API that follows OpenAPI specification and is described in api/openapi.yaml.
You can run orchard dev locally and navigate to http://127.0.0.1:6120/v1/ for interactive documentation.
Resource management
Some resources, such as Worker and VM, have a resource field which is a dictionary that maps between resource names and their amounts (amount requested or amount provided, depending on the resource) and is useful for scheduling.
Well-known resources:
org.cirruslabs.tart-vms— number of Tart VM slots available on the machine or requested by the VM- this number is
2for workers and1for VMs by default
- this number is
