You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Myriad provides the capability for fine-grained scaling via the Myriad user interface (UI) or the Myriad REST API. Scaling allows is done by using the flexup and flexdown feature. Flexup expands the cluster and flexdown shrinks the cluster. While doing so, the number of instances and size of the scale are specified.  The instance size is a profile parameter that is a predefined value of zero, small, medium, and large. During initial startup, the profile parameter is set to zero, that is, the cluster is launched with zero (0) cpu and zero (0) memory. These predefined values are specified in the Myriad configuration file (myriad-config-default.yml).

Myriad launches the NodeManager instance with a profile of medium which is also set in the myriad-config-default.yml file.

Default:

"nmInstances": {
    "medium": 1
  },

Profile Defaults

  "profiles": {
    "zero": {
      "cpu": "0",
      "mem": "0"
    },
    "small": {
      "cpu": "1",
      "mem": "1100"
    },
    "medium": {
      "cpu": "2",
      "mem": "2048"
    },
    "large": {
      "cpu": "4",
      "mem": "4096"
    }
  },


User Interface

The myriad button is the main console which shows the API code for the flexup and flexdown feature. The Flex button directs you to the Flex panel where you can flexup and flex down instances. The Config button directs you to the Config panel where the Myriad configuration defaults display.

To flexup and flexdown instances via the Myriad UI, go to the Flex button on the top navigation bar.

 

Flex panel:

 

REST API

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. These predefined values are specified 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.

  • No labels