Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keda-operator timing out for large number of configmaps and secrets #3863

Closed
ckuduvalli opened this issue Nov 16, 2022 · 1 comment · Fixed by #3866
Closed

Keda-operator timing out for large number of configmaps and secrets #3863

ckuduvalli opened this issue Nov 16, 2022 · 1 comment · Fixed by #3866
Labels
bug Something isn't working

Comments

@ckuduvalli
Copy link
Contributor

Report

Currently, whenever the cluster size is large and when the number of configmaps and secrets are huge in number, the keda-operator is timing out with the below error from the logs:

E0826 13:19:55.312899 1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.20.4/tools/cache/reflector.go:167: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: stream error when reading response body, may be caused by closed connection. Please retry. Original error: stream error: stream ID 1005; INTERNAL_ERROR

When we debugged it, this call is being made internally from client-go code. Then we figured out that if we disableCompression in client-go, the calls to list configmaps or secrets will significantly reduce and we won't be seeing these timeouts.

Expected Behavior

Timeouts should not happen within keda operator for list calls

Actual Behavior

We are seeing timeouts and reconciliation does not happen in keda-operator whenever there are large number of configmaps or secrets in the cluster.

Steps to Reproduce the Problem

  1. Create large number of secrets or configmaps in the cluster.
  2. Restart keda-operator. We saw this error happening

Logs from KEDA operator

E0826 13:19:55.312899 1 reflector.go:138] pkg/mod/k8s.io/client-go@v0.20.4/tools/cache/reflector.go:167: Failed to watch *v1.ConfigMap: failed to list *v1.ConfigMap: stream error when reading response body, may be caused by closed connection. Please retry. Original error: stream error: stream ID 1005; INTERNAL_ERROR

KEDA Version

2.8.1

Kubernetes Version

< 1.23

Platform

Other

Scaler Details

Cpu/memory

Anything else?

No response

@zroubalik
Copy link
Member

Related k8s upstream issue: kubernetes/kubernetes#112296

Repository owner moved this from In Review to Ready To Ship in Roadmap - KEDA Core Nov 21, 2022
@tomkerkhove tomkerkhove moved this from Ready To Ship to Done in Roadmap - KEDA Core Dec 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants