Episodes
raido said over 2 years ago on Creating Health Checks :
I use https://github.com/lbeder/health-monitor-rails gem for health monitoring and it has baked-in support for database, Redis and Sidekiq.

David Kimura PRO said over 2 years ago on Creating Health Checks :
It is true that several gems exist for handling this. however, from my experience, unless a gem provides functionality beyond my desire to create said functionality, it is better to either create and maintain your own gem or have it baked into your application. I say this because I have seen so many cases where gems are not kept up to date or have complications with Rails updates. I think that some gems are fine to add, but I do take careful consideration before adding them in.

raido said over 2 years ago on Creating Health Checks :
I totally agree and am following the same path.

Tiago Ameller PRO said over 2 years ago on Creating Health Checks :
This line `ApplicationRecord.connected?`is returning false most of the times. If I `curl` to my production server twice in a row, second time it returns true, but first one false. I changed it for: `User.count > 0`, which is true all times (unless site is down, of course) This a Rails 5 app. Database connections are not permanent?

David Kimura PRO said over 2 years ago on Creating Health Checks :
Are you using the Controller or Rack method?

Tiago Ameller PRO said over 2 years ago on Creating Health Checks :
controller

David Kimura PRO said over 2 years ago on Creating Health Checks :
try removing the `rescue false` to see if it is throwing an error. It could be something strange going on.

Tiago Ameller PRO said over 2 years ago on Creating Health Checks :
Done. No more fails. But also no unhandled exceptions. Weird.

Login to Comment