Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

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

Closed
2 tasks
tpendragon opened this issue Nov 11, 2024 · 0 comments · Fixed by #74
Closed
2 tasks

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

tpendragon opened this issue Nov 11, 2024 · 0 comments · Fixed by #74
Assignees

Comments

@tpendragon
Copy link
Contributor

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant