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 healthcheck page for asserting health of application #2657

Merged
merged 4 commits into from
Jan 21, 2022
Merged

Conversation

murny
Copy link
Contributor

@murny murny commented Dec 13, 2021

https://cloud.google.com/blog/products/containers-kubernetes/kubernetes-best-practices-setting-up-health-checks-with-readiness-and-liveness-probes

Add readiness healthcheck for jupiter and sidekiq processes. This will be very useful for Operations team or for readiness checking within Kubernetes

@@ -2,4 +2,10 @@ class StaticPagesController < ApplicationController

skip_after_action :verify_authorized

def about; end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

We should be explicit about our actions in our controllers? Not sure why we removed these. Adding them back!

@github-actions
Copy link

github-actions bot commented Dec 13, 2021

1 Warning
⚠️ There are code changes, but no corresponding tests. Please include tests if this PR introduces any modifications in behavior.

Generated by 🚫 Danger

@murny murny marked this pull request as ready for review January 21, 2022 21:08
Sidekiq.configure_server do |config|
config.redis = { url: Rails.application.secrets.redis_url }

schedule_file = 'config/schedule.yml'
Sidekiq::Cron::Job.load_from_hash YAML.load_file(schedule_file) if File.exist?(schedule_file)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is basically extracted from official sidekiq docs: https://github.com/mperham/sidekiq/wiki/Kubernetes#health-checks

Copy link
Member

@pgwillia pgwillia left a comment

Choose a reason for hiding this comment

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

@murny murny merged commit 767a743 into master Jan 21, 2022
@murny murny deleted the add-healthcheck branch January 21, 2022 21: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