senlin/examples/policies/placement_policy_weight.spec
2015-02-09 18:00:07 +08:00

24 lines
473 B
Ruby

# Spanning AZs with weights
availability_zones:
strategy:
# Valid values include:
# ROUND_ROBIN, WEIGHTED, SOURCE
type: WEIGHTED
options:
- zone: AZ1
weight: 100
- zone: AZ2
weight: 50
# Spanning regions with weights
regions:
strategy:
# Valid values include:
# ROUND_ROBIN, WEIGHTED, SOURCE
type: WEIGHTED
options:
- region: RegionOne
weight: 100
- region: RegionTwo
weight: 100