cloudfoundry-community / autosleep

Auto sleep service for CloudFoundry
Apache License 2.0
39 stars 21 forks source link

Autosleep and healthcheck endpoints #284

Open omearaj opened 6 years ago

omearaj commented 6 years ago

Hi,

Is it possible to provide a healthcheck endpoint to be excluded for determining traffic to an application. Ideally we'd like to define a health check for our load balancer on /healthcheck every minute and exclude this request from the auto sleep criteria.

gberche-orange commented 6 years ago

Hi @omearaj thanks for this great suggestion. Autosleep does not yet support excluding some HTTP requests when computing idle duration, or when handling incoming request in the autowake up support.

This would indeed be quite useful. We'd welcome such a contribution. Please get in touch so that we can define specs for this feature together.