Reputation: 93
DEA's in CloudFoundry have a self healing infrastructure. Using the health monitor CF ensures that if a DEA crashes than a substitute should be spawned with the required runtime artifacts.
But how about service nodes? Do they have a self healing infrastructure as well? What if the VM having my MySQL instance crash? What will happen in this case - I can think of following options which one (if any) is correct?
Health Monitor detects that the MySql node is down. So it creates a new MySQL node and restores the data on this new VM
It is the responsibility of the MySQL node/provioner to monitor the node health and take necessary actions if the VM goes down
No self healing infrastructure - The app to which this MySQL node was serving will not work
Regards, Ankit
Upvotes: 0
Views: 220
Reputation: 1083
There are no self healing services in Cloud Foundry, that is handled in the layer below Cloud Foundry - BOSH. However, broken services can't be self-healed the same way an app can, they require human intervention (inspection). If the service process has just crashed, it will be automatically restarted, but if you have a database corruption a human is needed to solve it.
The healing of services is dependent on the service itself, e.g. in MySQL you need to use a HA setup, and in Redis you have to use replication.
Upvotes: 1