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 couple of new healthchecks #161

Merged
merged 6 commits into from
Oct 14, 2020
Merged

Add a couple of new healthchecks #161

merged 6 commits into from
Oct 14, 2020

Conversation

benthorner
Copy link
Contributor

Ben Thorner added 4 commits October 13, 2020 10:57
This is used in place of ActiveRecord quite a few of our apps [1].
Note that the check is pinched from the Internet [2].

[1]: alphagov/travel-advice-publisher#973
[2]: https://stackoverflow.com/questions/28446274/how-can-i-check-the-connection-of-mongoid
We use a local Memcached instance for the cache store in several of
our apps [1] [2]. If the cache is unavailable, it will print error
logs but an exception won't be thrown. While the behaviour is graceful,
it's still a problem that the caching we rely on is not working as
expected, so we should surface this in healthchecks.

[1]: https://github.com/alphagov/collections/blob/a08857d95771e813338fbbe8542a8f5b536ea6d4/config/environments/production.rb#L58
[2]: https://github.com/alphagov/whitehall/blob/774eb78cd4c75622e786bdb18762850cd0b91840/config/environments/production.rb#L61
This has arisen due to a mismatch in the version of rubocop-ast.
This is causing the build to break when testing against Ruby 2.7,
and isn't something we have in our other gems.
Copy link
Contributor

@thomasleese thomasleese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@benthorner benthorner merged commit dba8f8d into master Oct 14, 2020
@benthorner benthorner deleted the new-healthchecks branch October 14, 2020 13:57
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.

2 participants