Lootii
Lootii

Reputation: 3

how to use cloudify to auto-heal/scale docker containers

In my project, I'm using cloudify to start and configure the docker containers. Now I'm wondering how to write YAML files to auto-heal/scale those containers.

My topology is like this: a Compute node contains a Docker-Container node, and in the latter runs several containers.

I've noticed cloudify does the job of auto-healing on the base of the Compute node. So can't I trigger an auto-heal workflow by containers' statuses?

And for auto-scale, I installed the monitor agent and configured the basic collectors. The CPU use percent seems not able to trigger the workflow. cloudify docs about diamond plugin mentions some built-in collectors. Unfortunately, I failed to figure out how to config the collectors.

In hope of some inspirations. Any opinions are appreciated. Thanks~

Upvotes: 0

Views: 214

Answers (1)

Jonathan Abramsohn
Jonathan Abramsohn

Reputation: 429

The docker nodes should be in the right groups for scale and heal. You can look at this example scale-heal example

It does exactly what you are looking for

Upvotes: 1

Related Questions