Commit 3a368cdb authored by Daniel Baur's avatar Daniel Baur

last test...

parent 726c5ed6
......@@ -261,26 +261,36 @@ outputs:
ip_address: { get_attribute: [ frontend_floatingip, floating_ip_address ] }
port: 80
policy_types:
my_threshold:
source: policies/threshold.clj
properties:
service:
description: >
service name
threshold:
description: >
threshold
groups:
nodejs:
# adding the some_vm node template that was previously configured
members: [nodejs_host]
policies:
cpu_threshold:
# using the 'host_failure' policy type
type: cloudify.policies.types.threshold
# using the 'threshold' policy type
type: my_threshold
# policy specific configuration
properties:
# Configure it
service: cpu_percent
threshold: 35
upper_bound: true
# Name of the service we want to shortlist (using regular expressions) and
# watch - every Diamond event has the service field set to some value.
# In our case, the ExampleCollector sends events with this value set to "example".
# service:
# - system
service:
- cpu_percent
triggers:
scale_trigger:
......
(where (service #"{{service}}")
(where (>= metric {{threshold}})
process-policy-triggers))
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment