kong icon indicating copy to clipboard operation
kong copied to clipboard

kong runtime not effective immediately after kic update the config by calling /config?hash_check=1

Open wuzhuoquan opened this issue 5 months ago • 3 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Kong version ($ kong version)

Kong 2.4.1

Current Behavior

We use kong and KIC in k8s cluster, they works well mostly. But sometimes, we found that after we scale down the service deployment replicas, that means some pods are deleted and remove from the service endpoint, KIC call the /config API of kong to modify the configurations in kong, after that, we found that kong runtime not effect the configuration immediately, and still send request to the deleted pod, and we found some Connection problem.

E.G. 12:28:15 the pod with ip 172.21.143.79 is removed from endpoint in k8s image

but kong still send request the this ip address in 12:29:34, that means this pod's ip is not remove from the upstream list yet. image

Expected Behavior

after the pod's ip has been removed from the endpoint, kong should not sent request to this pod any more.

Steps To Reproduce

It's not easy to reproduce the problem, This problem occurs randomly.

Anything else?

No response

wuzhuoquan avatar Sep 24 '24 09:09 wuzhuoquan