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

Local health check to trigger ASG events #95

Open
alexeiser opened this issue May 9, 2022 · 0 comments
Open

Local health check to trigger ASG events #95

alexeiser opened this issue May 9, 2022 · 0 comments

Comments

@alexeiser
Copy link

Given lifecycled's purpose of monitoring an instance for ASG based events - I thought it might be interesting if it also performed the reverse - and also monitored the local health of the application deployed on the instance.

For example - if a service fails - mark the ASG node as "unhealthy" and let ASG trigger an instance replacement. It could also possible be related to #79 and trigger the ASG Continue message marking a node as "in service".

My thought would be to allow the specification of a handler to perform the health check, and an example PID monitor or HTTP endpoint monitor. This is partially redundant to ELB/ALB monitoring - but might be faster for responding to events than relaying on the existing AWS health checks.

Would such a function make sense in this project?

NOTE: There is also the obvious question - why relay on an ASG node replacement, and not just perform a service restart, or what ever other action is appropriate based on the monitoring. In our case the app being monitored is complex enough that there is no obvious remediation, and a node remove and replace is the best way to bring it back in service.

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

No branches or pull requests

1 participant