Skip to content

Instantly share code, notes, and snippets.

@tamirko
Last active July 28, 2016 14:28
Show Gist options
  • Save tamirko/3bd75e5ca53ccae0512810b730920d90 to your computer and use it in GitHub Desktop.
Save tamirko/3bd75e5ca53ccae0512810b730920d90 to your computer and use it in GitHub Desktop.
How to scale a vm and a floating IP in cfy 3.4 ?
node_templates:
apache_vm:
type: cloudify.openstack.nodes.Server
capabilities:
scalable:
properties:
default_instances: 1
relationships:
- target: apache_ip
type: cloudify.openstack.server_connected_to_floating_ip
apache_ip:
type: cloudify.openstack.nodes.FloatingIP
groups:
apache:
members: [apache_vm, apache_ip]
scale_up_group:
members: [apache]
policies:
auto_scale_up:
type: scale_policy_type
properties:
default_instances: 1
policy_operates_on_group: true
...
...
...
triggers:
execute_scale_workflow:
type: cloudify.policies.triggers.execute_workflow
parameters:
workflow: scale
workflow_parameters:
delta: 1
node_id: my_app
scale_compute: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment