openfaas / of-watchdog

Reverse proxy for STDIO and HTTP microservices
MIT License
259 stars 115 forks source link

Log "Limited" appearing at the rate of a readiness check #147

Closed kevin-lindsay-1 closed 1 year ago

kevin-lindsay-1 commented 1 year ago

Expected Behaviour

Health checks should not count towards limited HTTP requests, and watchdog readiness/health checks should not produce logs (to prevent spamming). If log lines should be produced, they should be produced at a debug level, not at an info level.

Current Behaviour

While a fn pod is at max inflight this log is produced over and over:

2022/10/21 19:56:00 Limited
2022/10/21 19:56:01 Limited
2022/10/21 19:56:02 Limited
2022/10/21 19:56:02 Limited
2022/10/21 19:56:59 Limited
2022/10/21 19:57:00 Limited
...

Possible Solution

Steps to Reproduce (for bugs)

  1. Use custom readiness check
  2. Hit max_inflight on a pod

Context

Log spam

Your Environment