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

Slow performance issue #10523

Closed
leap72 opened this issue Mar 24, 2015 · 2 comments
Closed

Slow performance issue #10523

leap72 opened this issue Mar 24, 2015 · 2 comments
Labels
bug This issue/PR relates to a bug. needs_info This issue requires further information. Please answer any outstanding questions. pending_action

Comments

@leap72
Copy link

leap72 commented Mar 24, 2015

Issue Type:

Bug Report

Ansible Version:

ansible 1.7.2

Environment:

Ubuntu 14.04

Summary:
I am using the many roles inside the playbook. There are some tasks not all which take longer as inthe example below eg. 3 minutes just to make sure Nginx service is running or 6 minutes to create some folders. I don't understand why this take really long just to verify a service.

Steps To Reproduce:

Here's my tasks:

First task

- name: Ensure service is running
  service: name=nginx state=started enabled=yes

Second task

- name: Create project folder(s)
  file: dest=/home/{{ project_id }}/{{ item }}
        state=directory
        owner={{ project_user }}
        group=www-data
        mode=0750
  with_items:
    - backup
    - conf
    - log
    - cgi-bin
    - cgi-bin/php5-default
    - ci-phing
    - ci-phing/config

Expected Results:
several seconds for no-change runs. ~40 seconds for creating all folders.

Actual Results:

First task

09:43:44 TASK: [nginx | Add configuration] ********************************************* 
09:43:44 ok: [monitoring]
09:43:44 TASK: [nginx | Ensure service is running] ************************************* 
09:43:44 ok: [monitoring]
09:46:11 TASK: [nginx | Create SSL folder] ********************************************* 
09:46:11 ok: [monitoring]

Second task

09:53:51 TASK: [Create project folder(s)] ********************************************** 
09:53:51 ok: [app] => (item=backup)
09:53:51 ok: [app] => (item=conf)
09:53:51 ok: [app] => (item=log)
09:53:51 ok: [app] => (item=cgi-bin)
09:53:51 ok: [app] => (item=cgi-bin/php5-default)
09:53:51 ok: [app] => (item=ci-phing)
09:53:51 ok: [app] => (item=ci-phing/config)
09:59:14 TASK: [Create php-fcgi-wrapper] *********************************************** 
09:59:14 ok: [app]
@jimi-c
Copy link
Member

jimi-c commented Jul 5, 2015

Hi @leap72, have you tried this against a new version of Ansible or the devel branch? There was some work around that time to help prevent some variables from being templated inappropriately (ie. custom facts containing {{lookup()}} syntax), and that work has been tweaked since then to provide better performance.

If we don't hear from you in a few days, we'll assume this issue has been resolved and close it.

Thanks!

@jimi-c jimi-c added needs_info This issue requires further information. Please answer any outstanding questions. pending_action labels Jul 5, 2015
@jimi-c
Copy link
Member

jimi-c commented Sep 23, 2015

Noted that there there has been no follow-up in quite a while, so going to go ahead and close this, as it has been reported against a much older version of Ansible.

If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:

Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved.

Thank you!

@jimi-c jimi-c closed this as completed Sep 23, 2015
@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug. needs_info This issue requires further information. Please answer any outstanding questions. pending_action
Projects
None yet
Development

No branches or pull requests

4 participants