To scale a cluster up or down, use the Cluster API. The Cluster API provide flexup and flex down capability the changes the size of one or more instances in a cluster. The instance size is a profile parameter that is a predefined value of zero, small, medium, and large. These predefined values are specified in the Myriad configuration file (myriad-config-default.yml
). To specify the number of instances for a service, use the Service API. Services are configured in the Myriad configuration file (myriad-config-default.yml
). To retrieve the Myriad configuration and the Myriad Scheduler state, use the Configuration API and State API.
...
API | HTTP Method | URI | Description |
---|---|---|---|
Cluster | PUT | /api/cluster/flexup | Expands the cluster size. |
Cluster | PUT | /api/cluster/flexdown | Shrinks the cluster size. |
Service | PUT | /api/cluster/flexupservice | Increases the number of instances for a service. |
Service | PUT | /api/cluster/flexdownservice | Shrinks the number of instances for a service. |
Configuration | GET | /api/stateconfig | Retrieves the Myriad configuration. |
State | GET | /api/state | Retrieves a snapshot of the Myriad Scheduler state. |
Framework | GET | /api/framework/shutdown/framework | Destroys the Myriad framework. |