checks interval not working on apps v2

I have an interval = “60s” on an apps v2 app, but the check is running continuously with no pause between attempts.

This is my services block:

[[services]]
  processes = ["web"]
  internal_port = 8080
  protocol = "tcp"

  [services.concurrency]
    type = "requests"
    # With search DB conn pooling, this would match the size of the pool, or
    # some level that would cause failure?
    hard_limit = 15
    # Since search DB conn pool is disabled, and to try pushing traffic to
    # other regions.
    soft_limit = 2

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.http_checks]]
    grace_period = "10s"
    interval = "60s"
    timeout = "5s"
    method = "get"
    path = "/health"

Hi @eruanno! Thanks for the report, and sorry you ran into this. I was able to reproduce this behavior.

I observed the health checks occurring every second, so I suspect that somewhere 60s is being converted into 1m and then the number 1 is being interpreted as seconds, not minutes. (Likewise, I saw 5-second intervals with 5m.)

I will try to track down what’s causing this. In the meantime, if you set the interval to 59s, I think it should actually give you ~1 minute between checks.

We just rolled out a fix for this. Setting the interval to 1m or 60s should work as expected now.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.