Details
-
Bug
-
Resolution: Done
-
Major
-
AMQ 7.9.1.OPR.1.GA
Description
When deploying the operator and a new set of brokers is created with persistence and message migration enabled, the operator searches statefulsets across the entire cluster, to find the one related with the brokers.
2022-01-18T10:26:12.702Z INFO controller_v2alpha1activemqartemisscaledown Enquequing statefulset {"key": "openshift-user-workload-monitoring/thanos-ruler-user-workload", "controller ns": "*"} 2022-01-18T10:26:12.702Z INFO controller_v2alpha1activemqartemisscaledown Enquequing statefulset {"key": "open-cluster-management/search-redisgraph", "controller ns": "*"} 2022-01-18T10:26:12.702Z INFO controller_v2alpha1activemqartemisscaledown Enquequing statefulset {"key": "openshift-storage/noobaa-db-pg", "controller ns": "*"} 2022-01-18T10:26:12.702Z INFO controller_v2alpha1activemqartemisscaledown Enquequing statefulset {"key": "openshift-user-workload-monitoring/prometheus-user-workload", "controller ns": "*"} 2022-01-18T10:26:12.702Z INFO controller_v2alpha1activemqartemisscaledown Enquequing statefulset {"key": "openshift-monitoring/alertmanager-main", "controller ns": "*"} 2022-01-18T10:26:12.702Z INFO controller_v2alpha1activemqartemisscaledown Enquequing statefulset {"key": "openshift-monitoring/prometheus-k8s", "controller ns": "*"} 2022-01-18T10:26:12.702Z INFO controller_v2alpha1activemqartemisscaledown Enquequing statefulset {"key": "openshift-storage/noobaa-core", "controller ns": "*"} 2022-01-18T10:26:12.702Z INFO controller_v2alpha1activemqartemisscaledown Enquequing statefulset {"key": "amqbroker/demo-ss", "controller ns": "*"} 2022-01-18T10:26:12.702Z INFO controller_v2alpha1activemqartemisscaledown Enquequing statefulset {"key": "hive/hive-clustersync", "controller ns": "*"} 2022-01-18T10:26:17.702Z INFO controller_v2alpha1activemqartemisscaledown Got object from queue {"obj": "openshift-user-workload-monitoring/thanos-ruler-user-workload"}
It seam it is not impacting the drainer as it only performs the logic when the STS comes from a broker, but it has some penalties:
- Performance: clusters with high number of STS could return a lot members to search within.
- API calls: it can cause a lot of api calls, as it has to get complimentary information from some STSs that should are not needed (like PVCs).