Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include script that identifies asg nodes that failed to register with… #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

seeker815
Copy link
Contributor

@seeker815 seeker815 commented Apr 27, 2018

This PR handles the below issue

  • Script that identifies list of nodes in ASG that have failed to register with YARN Resource Manager
  • Include a sample config file with Params
  • Add delete option to terminate the identified nodes

import socket

config = json.load(open("config.json"))
access_key = config['access_key']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please not take in AWS Keys from a config? It becomes messy on how we would pass them in a flat file. Please let's assume the instance where we run the script has IAM roles configured to query EC2 APIs.

"group_name": "datapipeline-in-stag-spot-asg"

# optional: depending on running on the master/any node
"HOSTNAME": "datapipeline-in-master.stag.indix.tv"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please refrain from using internal DNS names on a public repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants