blob: d5092ad0dbc7530b4b68ae435003abb1200eb742 [file] [log] [blame]
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
---
# Cost: The cost of crossing this layer.
# The value should be positive integer or 0. This field is optional.
# When it's not defined, it's value is default "1".
cost: 1
# The prefix of this layer.
# If the prefix is "dc", then every name in this layer should start with "dc",
# such as "dc1", "dc2".
# Note that unlike XML schema, the prefix must be specified explicitly if the type is InnerNode.
prefix: /
# Layer type, optional field, default value InnerNode.
# Current value range : {ROOT, INNER_NODE, LEAF_NODE}
type: ROOT
# Layer name
defaultName: root
# The sub layer of current layer. We use list
sublayer:
-
cost: 1
prefix: dc
defaultName: datacenter
type: INNER_NODE
sublayer:
-
cost: 1
prefix: rack
defaultName: rack
type: INNER_NODE
sublayer:
-
cost: 1
prefix: ng
defaultName: nodegroup
type: INNER_NODE
sublayer:
-
defaultName: node
type: LEAF_NODE
prefix: node
...