deploykit icon indicating copy to clipboard operation
deploykit copied to clipboard

Mitigate the risk of creating a LOT of instances or deleting instances that we don't manage?

Open dgageot opened this issue 8 years ago • 1 comments

If there is a bug in an Infrakit plugin or a misconfiguration in the templates, Infrakit could create too many instances or it could delete instances it doesn't manage or from another group.

How could be mitigate this kind of behaviour with some kind of cross cutting checks/quotas/protection/...?

dgageot avatar Feb 22 '17 16:02 dgageot

It's certainly a concern, i've had occasions where the instances I'm provisioning haven't reported complete in time. This results in the group plugin attempting to deploy more instances, then having to delete the excess when they've all finished deploying.

To mitigate this, i've added in logic into the instance plugin so that it will keep track of what is "being" provisioned and allows the plugin to have more control over the actual state. Allowing the plugin to report back to the group plugin that whilst the instances aren't ready, they're being provisioned.

thebsdbox avatar Feb 22 '17 20:02 thebsdbox