Mix active and passive Health check

Hello,
I have made a lot of tests with health check and I tried to activate active and passive health check.
My configuration was the following :

“healthchecks”: {
“threshold”: 0,
“active”: {
“unhealthy”: {
“http_statuses”: [
429,
404,
500,
501,
502,
503,
504,
505
],
“tcp_failures”: 2,
“timeouts”: 2,
“http_failures”: 2,
“interval”: 5
},
“type”: “http”,
“http_path”: “/xxx”,
“timeout”: 1,
“healthy”: {
“successes”: 1,
“interval”: 0,
“http_statuses”: [
200,
302
]
},
“https_sni”: null,
“https_verify_certificate”: true,
“concurrency”: 10
},
“passive”: {
“unhealthy”: {
“http_failures”: 1,
“http_statuses”: [
429,
500,
502,
503
],
“tcp_failures”: 1,
“timeouts”: 1
},

Then I stopped the service for one of my target. I could notice that after one request sent to that service, the target became unhealthy => ok, due to the threshold of passive healthckeck (“passive”.“unhealthy”.“http_failures”: 1)
But as I went on sending requests to my upstream, there was oftenn (always ?) one second failure then only successes, as if one more time, the upstream had sent the request to the stopped service, then only sent requests to the service up.
My question is : is this behavior due to the different threshold I defined for active.unhealthy.http_failures (2) and passive.unhealthy.http_failures (1).

Any help or confirmation will be appreciated.
Thanks.
Christine.


© 2019 Kong Inc.    Terms  •  Privacy  •  FAQ