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 a health.json endpoint that determines this application is ready to be live to users #1420

Open
1 of 7 tasks
bess opened this issue Jul 5, 2024 · 0 comments
Open
1 of 7 tasks

Comments

@bess
Copy link
Contributor

bess commented Jul 5, 2024

What maintenance needs to be done?

We want the load balancer to never serve sites that are broken. That can happen automatically if every application has a health.json endpoint that the load balancer can check.

Level of urgency

  • High
  • Moderate
  • Low

Why is this maintenance needed?

Right now it's easy to deploy to one of x servers, have that deploy fail, and thus have the site go down, unless we do a laborious load balancer dance.

Acceptance criteria

  • There's a /health.json endpoint.
  • It checks at least the following services (which will be checked by nginx)
    • Database.
    • Solr

Implementation notes, if any

An example implementation: https://github.com/pulibrary/lae-blacklight/pull/380/files

First Step

Install the health-monitor-rails gem to the gem file, as per the above PR.

Health monitor rails gem: https://github.com/lbeder/health-monitor-rails

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

No branches or pull requests

1 participant