"Fossies" - the Fresh Open Source Software Archive

Member "senlin-8.0.0/examples/policies/deletion_policy.yaml" (16 Oct 2019, 653 Bytes) of package /linux/misc/openstack/senlin-8.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # Sample deletion policy that can be attached to a cluster.
    2 type: senlin.policy.deletion
    3 version: 1.0
    4 description: A policy for choosing victim node(s) from a cluster for deletion.
    5 properties:
    6   # The valid values include:
    7   # OLDEST_FIRST, OLDEST_PROFILE_FIRST, YOUNGEST_FIRST, RANDOM
    8   criteria: OLDEST_FIRST
    9 
   10   # Whether deleted node should be destroyed 
   11   destroy_after_deletion: True
   12 
   13   # Length in number of seconds before the actual deletion happens
   14   # This param buys an instance some time before deletion
   15   grace_period: 60
   16 
   17   # Whether the deletion will reduce the desired capacity of
   18   # the cluster as well
   19   reduce_desired_capacity: False