Skip to content

Autoscaling using log analytics query not working properly anymore, context deadline exceeded (Client.Timeout exceeded while awaiting headers) #5374

Discussion options

You must be logged in to vote

Hi @ghantasunil,

actually yes, it was a problem specific with the way the AKS clusters get provisioned on Azure, the load balancer azure will provision for your AKS cluster has a session timeout of 30 minutes, which is a lot, I changed the session timeout to 4 minutes and that fixed my issue, you should check for the snat port exhaustion metric in your load balancer and observe if you have a snat port exhaustion, in my case we did see snat port exhaustion which is what was causing this issue, after changing the session timeout to 4 minutes we saw the snat exhaustion issue went away and keda was able to successfully contact the outside world aka the public log analytics api.
Let me know if…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@NicolaeMarius
Comment options

Answer selected by zroubalik
@zroubalik
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants