Placement Rules¶
Overview¶
Zadara Cloud Services supports the creation of placement rules which determines how a VM Instance is placed on physical nodes.
Defining a rule is a 3-stage process:
Use the tags attached to the VM instances and nodes to choose the placement rule type and set its parameters. There are three placement rule types:
Same-tagged VM rule - VM instances with the same tag can be configured to be placed on either the same or different nodes.
Different-tagged VM rule - VM instances with a specific tag can be configured to be placed on either the same nodes or different nodes as VM instances with a different tag.
VM and Node tags - VM instances with a specific tag can be configured to be placed on a node with the same or different tag.
Note
The VM and Node tags rule can be created only by an Admin user.
Define the level of rule enforcement. There are two options:
Hard - VM instance placement will only be performed if the rule constraints can be satisfied.
Soft - If possible, VM instance placement will be performed according to the rules. If the rules cannot be satisfied, the placement will be done anyway.
Define the scope of this rule as either system-wide or for a specific project.
Note
The option to define a rule with a system-wide scope is limited to an admin user. For a regular user, the scope is that of the currently displayed project.
Placement Rule Main Window Display¶
Navigate to the Compute > Rules view. A list of all placement rules is displayed.
The following information is displayed for each rule:
Description of rule type.
Tags used within rule.
Enforcement level of rule (hard/soft).
Scope of rule (system/project).
Enabled
Creation Date
Add a Placement Rule¶
To add a Placement Rule:
Navigate to the Compute> Rules view and select Add Rule. The Create VM Placement Rule window is displayed.
Select the rule type (same-tagged, different-tagged, or VM and Node tagged).
Note
Select existing tags or create new tags in any of the Tag fields.
Note
VM and Node tagged rule type is available to admin user only.
Select Hard or Soft enforcement.
Select system or project scope.
Note
System scope is available to admin user only.
Select OK. The new VM Placement Rule will appear in the Rules view.
Simulating a Placement Rule¶
Navigate to the Compute> Rules view. A list of the placement rules is displayed.
Select the row of the desired placement rule. A Simulate Rule icon appears in the top menu bar.
Select Simulate Rule.
The Simulate Rule information window will appear showing a list of VM instances potentially affected by the rule.
Click OK.
Applying a Placement Rule¶
To apply a Placement Rule to a VM instance:
Navigate to the Compute> Rules view. A list of the placement rules is displayed.
Select the row of the desired placement rule. An Apply Rule icon appears in the top menu bar.
Select Apply Rule.
The Apply Rule confirmation window will appear showing a list of VM instances potentially affected by the rule.
For VM instances which are covered by the rule, but which cannot be placed accordingly, select one of the following options:
Stop the VM instance
Leave the VM instance running in its current placement
Click OK. A message confirming the application of the placement rule will pop-up in the upper right corner of the screen.
Note
Apply as many placement rules as needed, provided that the rule does not either duplicate, contradict or override any other rule, or that the rule itself is not overridden by any other rule.
Removing a Placement Rule¶
Navigate to the Compute> Rules view. A list of the placement rules is displayed.
Select the row of the placement rule to be removed. A Remove icon appears in the top menu bar.
Click Remove. The Remove Rule confirmation window appears.
Click OK. A message confirming the removal of the placement rule will pop-up in the upper right corner of the screen.