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

Autoscaling: Give feedback in the logs in case something wrong happens with a starting EC2 #3910

Closed
sanderegg opened this issue Feb 23, 2023 · 2 comments · Fixed by #5033
Closed
Assignees
Labels
a:autoscaling autoscaling service in simcore's stack t:enhancement Improvement or request on an existing feature

Comments

@sanderegg
Copy link
Member

Currently the Autoscaling starts instances in AWS EC2 using:

  • run_instances from the AWS API, passing UserData script to automatically join the swarm
  • once the node joins the swarm it is part of the cluster and labelled as such

Since #3902 it is possible to modify the bash script (UserData) using an ENV variable.
Therefore errors (syntax, etc) might arise more often. It would be really good that the Autoscaling service shows some error in the logs to facilitate debugging such mistakes.

To this end it should monitor the state of the started machines and report in its logs when issues are detected.

@sanderegg sanderegg added a:autoscaling autoscaling service in simcore's stack t:enhancement Improvement or request on an existing feature labels Feb 23, 2023
@sanderegg sanderegg self-assigned this Feb 23, 2023
@sanderegg
Copy link
Member Author

maybe doing something such as

ssh autoscaled-node "cat /var/log/cloud-init-output.log"

would be possible?

@sanderegg sanderegg added this to the The Next Milestone milestone May 1, 2023
@sanderegg
Copy link
Member Author

Or as @mrnicegyu11 mentioned a maybe nicer way would be to shellcheck the bash script BEFORE sending it to the EC2 interface. This way we could validate the bash script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:autoscaling autoscaling service in simcore's stack t:enhancement Improvement or request on an existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant