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

Downloading external resources degrades performance #1313

Open
pemsith opened this issue Jan 5, 2025 · 0 comments
Open

Downloading external resources degrades performance #1313

pemsith opened this issue Jan 5, 2025 · 0 comments

Comments

@pemsith
Copy link

pemsith commented Jan 5, 2025

Environment

  • CentOS stream 9

Issue details

Tasks that directly download resources from external sources during runtime (e.g., get_url) causes high memory usage. This issue is particularly noticeable in environments with large-scale deployments or limited system resources. the below file has this issue and we would like to get it resolved.

/Meza1/src/playbooks/elasticsearch-upgrade.yml
--- - name: Download Elasticsearch version
get_url: url=https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-{{ es_version }}.deb dest=/tmp/elasticsearch-{{ es_version }}.deb ---

Expected behavior
The playbook should avoid fetching resources directly from external URLs to prevent high memory usage. Instead:

  • Pre-fetch the required resources to a control machine or staging area ahead of deployment.
  • Use local copies or mirrors for fetching files.
  • This approach would reduce memory usage and improve the performance and reliability of deployments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant