Reorg sample policies dir

This is an initial step of reorganizing the sample specs of policies.

Change-Id: I6b67088c21bc0dfe3ddc0cdb3d2dfac0819a10d0
This commit is contained in:
tengqm
2015-08-29 09:01:05 -04:00
parent 362a5fe2c9
commit e05cded6fc
21 changed files with 203 additions and 231 deletions

View File

@@ -0,0 +1,19 @@
# Sample deletion policy that can be attached to a cluster.
type: senlin.policy.deletion
version: 1.0
description: A policy for choosing victim node(s) from a cluster for deletion.
properties:
# The valid values include:
# OLDEST_FIRST, OLDEST_PROFILE_FIRST, YOUNGEST_FIRST, RANDOM
criteria: OLDEST_FIRST
# Whether deleted node should be destroyed
destroy_after_deletion: True
# Length in number of seconds before the actual deletion happens
# This param buys an instance some time before deletion
grace_period: 60
# Whether the deletion will reduce the desired capability of
# the cluster as well.
reduce_desired_capacity: False