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 healthchecks to server #654

Merged
merged 4 commits into from
Aug 9, 2023
Merged

Add healthchecks to server #654

merged 4 commits into from
Aug 9, 2023

Conversation

thomashoneyman
Copy link
Member

Closes #648 by registering the server with both uptimerobot.com and healthchecks.io. Uptime Robot pings our server, and we ping Health Checks.

In the future we can build out the health check to be more than just a GET request; it could notify a 'start' event, then do some integrity checking on the server (we're in sync with the upstream Git repositories, the storage is in sync with the manifest index, etc.), then notify a 'verified' event. But for now it's just notifying that it's alive.

As seen earlier today, these checks are integrated into the #infrastructure channel in Discord as well as the pacchettibotti email, so we'll be notified if the server runs into any hiccups.

@thomashoneyman thomashoneyman requested a review from f-f August 9, 2023 19:54
@thomashoneyman
Copy link
Member Author

(Note: the code as seen here has already been deployed, for testing.)

app/src/App/Effect/Env.purs Outdated Show resolved Hide resolved
app/src/App/Server.purs Outdated Show resolved Hide resolved
@thomashoneyman
Copy link
Member Author

I've made that a required (secret) env var, and set the actual values elsewhere. The server is updated.

@thomashoneyman thomashoneyman merged commit 8bf23d3 into master Aug 9, 2023
4 of 15 checks passed
@thomashoneyman thomashoneyman deleted the trh/status branch August 9, 2023 21:21
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

Successfully merging this pull request may close these issues.

Add healthchecks to server
2 participants