Reorg sample policies dir
This is an initial step of reorganizing the sample specs of policies. Change-Id: I6b67088c21bc0dfe3ddc0cdb3d2dfac0819a10d0
This commit is contained in:
19
examples/policies/deletion_policy.yaml
Normal file
19
examples/policies/deletion_policy.yaml
Normal 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
|
||||
Reference in New Issue
Block a user