Skip to content

Various Node Types Support

Mich edited this page Apr 30, 2015 · 1 revision

The vanilla improvements version support various instance types for nodes. Here is a simple example of the configuration format to use with it.

[cluster mycluster]
KEYNAME = starclusterKey
CLUSTER_SIZE = 1
CLUSTER_SHELL = bash
NODE_INSTANCE_ARRAY = m1,micro
                           
[node m1]
INSTANCE_TYPE = m1.small
SPOT_BID = 0.01
SELECTION_FACTOR = 1
IMAGE_ID = ami-3393a444
                           
[node micro]
INSTANCE_TYPE = t1.micro
SPOT_BID = 0.01
SELECTION_FACTOR = 0.5
IMAGE_ID = ami-3393a444
  • "NODE_INSTANCE_ARRAY" is a new field which takes a comma separated list of keys referring to "node" templates.

  • Fields "NODE_INSTANCE_TYPE", "NODE_IMAGE_ID" and "SPOT_BID" are gone from the cluster template. This is because they are redefined for each node.

  • "SELECTION_FACTOR" is a node template field whose value will be used as a multiplicator to the lowest marked price of the associated instance type when making comparisons to select the type to use. To select "type A", the following relation must be true.

    type_a_lowest_price * type_a_selection_factor <= type_b_lowest_price * type_b_selection_factor

One more thing to consider, the first node in the array will be used as default. (Eg.: If MASTER_INSTANCE_TYPE is not defined, INSTANCE_TYPE of the first node will be used.)

Clone this wiki locally