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

last test...

parent 726c5ed6
...@@ -261,26 +261,36 @@ outputs: ...@@ -261,26 +261,36 @@ outputs:
ip_address: { get_attribute: [ frontend_floatingip, floating_ip_address ] } ip_address: { get_attribute: [ frontend_floatingip, floating_ip_address ] }
port: 80 port: 80
policy_types:
my_threshold:
source: policies/threshold.clj
properties:
service:
description: >
service name
threshold:
description: >
threshold
groups: groups:
nodejs: nodejs:
# adding the some_vm node template that was previously configured # adding the some_vm node template that was previously configured
members: [nodejs_host] members: [nodejs_host]
policies: policies:
cpu_threshold: cpu_threshold:
# using the 'host_failure' policy type # using the 'threshold' policy type
type: cloudify.policies.types.threshold type: my_threshold
# policy specific configuration # policy specific configuration
properties: properties:
# Configure it # Configure it
service: cpu_percent service: cpu_percent
threshold: 35 threshold: 35
upper_bound: true
# Name of the service we want to shortlist (using regular expressions) and # Name of the service we want to shortlist (using regular expressions) and
# watch - every Diamond event has the service field set to some value. # 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". # In our case, the ExampleCollector sends events with this value set to "example".
# service: service:
# - system - cpu_percent
triggers: triggers:
scale_trigger: 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