-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
images: Replace all instances of the depreciated k8s_facts module wit…
…h k8s_info. When using the 2.9.6 Ansible version, the time it takes for Metering to finish its role execution jumps from 3-5 minutes to ~35-40 minutes. If we increase the verbosity of the ansible logs for the Metering deployment, in 2.9.6, we see that the `k8s_facts` tasks are making a file lookup call orders of magnitude more often, whereas before, that file lookup call was made once or twice. A more concrete example: ```yaml ASK [meteringconfig : Check for the existence of the Presto TLS secret] ******* task path: /opt/ansible/roles/meteringconfig/tasks/configure_presto_tls.yml:15 Wednesday 29 April 2020 21:43:56 +0000 (0:00:00.380) 0:00:38.695 ******* File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file File lookup using /opt/ansible/charts/openshift-metering/values.yaml as file ... ``` If we switch to the [`k8s_info` module](https://docs.ansible.com/ansible/latest/modules/k8s_info_module.html), the performance issues are resolved and that file lookup call is only made once or twice.
- Loading branch information
1 parent
0c8a30c
commit 3c8a6af
Showing
7 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
images/metering-ansible-operator/roles/meteringconfig/tasks/prune_resources.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters