I'm new to rails and trying to debug a hiccup we're seeing in our app. We have a "health_check" route that is used by our loadbalancers to ensure each of our servers is up and automatically remove things from its clusters if it doesn't get a prompt response.
Occasionally we see it taking 2-3s to return (normally its close to 0, like 0.01s-0.05s). We use newrelic for monitoring and see that the time is being mostly used by our get_session call in our our redis session store implementation during those long runs (i.e. newrelic only shows us the waterflow chart for the bad transactions)
We don't really need any session state to be stored for these health checks, is there any simple way to retrofit this controller's action to be "sessionless" (or at worst a virtual in memory session that only exists for the lifetime of this particular action)
As I said, I'm new to this so any help would be appreciated.
Aucun commentaire:
Enregistrer un commentaire