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

Add Capistrano task to remove application from the load balancer #2546

Open
2 tasks
maxkadel opened this issue Nov 7, 2024 · 0 comments
Open
2 tasks

Add Capistrano task to remove application from the load balancer #2546

maxkadel opened this issue Nov 7, 2024 · 0 comments

Comments

@maxkadel
Copy link
Contributor

maxkadel commented Nov 7, 2024

Acceptance Criteria

  • Running cap --hosts=<hosthere> staging application:remove_from_nginx will prevent a node from serving traffic on the load balancer
  • Running cap --hosts=<hosthere> staging application:serve_from_nginx will allow a node to serve traffic

Technical Implementation

Add a health monitor that looks at a file on disk and reports a failure if it exists, so that nginx will fail its health check and pull it out.

Example PR: https://github.com/pulibrary/pdc_describe/pull/1985/files

We're really hoping https://github.com/lbeder/health-monitor-rails/pull/127 will get merged.

First Step

Update the health-monitor-rails gem so it has the new check.

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

No branches or pull requests

1 participant