Open DanielZhangQD opened 4 years ago
Some info:
Memory usage:
Describe the Pod:
Heap profile:
This is heap profile:
This cluster has too many pods. So this must be caused by podInformer cache.
The solution: make a new informerFactory for podInformer, and sets a custom filter on all listers of the configured SharedInformerFactory.
kubeinformers.WithTweakListOptions(func(corev1.ListOptions))
@cofyc @DanielZhangQD PTAL
Bug Report
What version of Kubernetes are you using?
v1.15.3 What version of TiDB Operator are you using?
v1.1.2 What storage classes exist in the Kubernetes cluster and what are used for PD/TiKV pods?
What's the status of the TiDB cluster pods?
What did you do?
What did you expect to see? TiDB Operator works normally without OOM killed What did you see instead? TiDB Operator takes several GB memory and eventually gets OOM killed