这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

OpsWorks-aware Janitor monkey #185

Merged
merged 1 commit into from
Aug 11, 2015

Conversation

gnethercutt
Copy link
Contributor

Optionally consider membership in an OpsWorks stack when evaluating the orphaned instance rule for termination. When this option is enabled, membership in an OpsWorks stack prevents deletion just like ASG membership.

ie. OpsWorks loves you, little instance, you're not an orphan.

@cloudbees-pull-request-builder

NetflixOSS » SimianArmy » SimianArmy-pull-requests #1 SUCCESS
This pull request looks good

@cloudbees-pull-request-builder

SimianArmy-pull-requests #173 SUCCESS
This pull request looks good

@gorzell
Copy link
Contributor

gorzell commented Apr 22, 2015

Thanks for the PR. I was wondering if you would be willing to generalize it a little bit so that there isn't special case code. I was thinking you could have a property with a list of tags to check existence of. Or even more ambitious, tag/value pairs that you check. That way anyone could set tags for things they want janitor monkey to ignore and your OpsWorks case would also be solved. What do you think?

@gnethercutt
Copy link
Contributor Author

I thought about making the ASG and OpsWorks checks work that way, but some comments in the InstanceCrawlerJanitor gave me pause. It doesn't just use the presence of the tag aws:autoscaling:groupName to determine if an instance has an ASG, it falls back to the "AutoScaling service" mapping of idToASGInstance (see InstanceJanitorCrawler.java):

// At most times the aws:autoscaling:groupName tag has the ASG name, but there are cases
// that the instance is not correctly tagged and we can find the ASG name from AutoScaling
// service.

If this is an older concern and we can support everything by just tag checks, I'm game to refactor a bit.

@ebukoski
Copy link
Contributor

I like special casing OpsWorks because it is a special case 👍

ebukoski added a commit that referenced this pull request Aug 11, 2015
@ebukoski ebukoski merged commit a788e71 into Netflix:master Aug 11, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants