Check the gist.  I left an example of the timing difference.
On Dec 2, 2014 7:01 PM, "Michael DeHaan" <mich...@ansible.com> wrote:

> Inventory gets processed on startup time a bit more now -- that's good for
> various reasons as it would do it later anyway  and that data can be needed
> -- but I'm curious if you could provide info about what "much longer"
> means?  Such as before and after numbers, and numbers of hosts in your
> inventory?
>
>
>
> On Tue, Dec 2, 2014 at 2:43 PM, Brent Langston <brent...@oufan.com> wrote:
>
>> Hi guys,
>>
>> I'm hoping I've just overlooked an option, but here's the situation:
>>
>> After updating from ansible 1.6.2 to 1.8.1, I noticed our ansible runs
>> take much much longer to actually make contact with the servers.  Here is a
>> really simple comparison:
>>
>> https://gist.github.com/brentley/7c644614e5dc3aae045d
>>
>> The first run is on 1.8.1, the 2nd is the same system on 1.6.2.
>>
>> This is using the ec2.py dynamic inventory, and both runs had precached
>> inventory.
>>
>> When I straced the process, I noticed the 1.8.1 run was doing this:
>>
>> lstat("/etc/ansible/host_vars/10.10.7.20", 0x7fff243bbe60) = -1 ENOENT (No 
>> such file or directory)
>> lstat("/etc/ansible/host_vars/10.10.7.20.yml", 0x7fff243bbe60) = -1 ENOENT 
>> (No such file or directory)
>> lstat("/etc/ansible/host_vars/10.10.7.20.yaml", 0x7fff243bbe60) = -1 ENOENT 
>> (No such file or directory)
>> lstat("/etc/ansible/host_vars/10.10.7.20.json", 0x7fff243bbe60) = -1 ENOENT 
>> (No such file or directory)
>>
>> but iterating over our entire inventory. There was an additional block for 
>> /etc/ansible/group_vars/<inventory_name>.* also.
>>
>> Is there a configuration option or other way to disable this behavior?
>>
>>
>>
>> --------
>> Brent
>> --------
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to ansible-project+unsubscr...@googlegroups.com.
>> To post to this group, send email to ansible-project@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CABta7G2f91%3DDOsdUdTPk%3DLymNQGGpHCbmG%2Bk88r25NaUryCfVA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CABta7G2f91%3DDOsdUdTPk%3DLymNQGGpHCbmG%2Bk88r25NaUryCfVA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-project+unsubscr...@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgztGOnMPYGOWvHcnR8vo9OAgVMsWkQo1wT6ttqxBQhkng%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgztGOnMPYGOWvHcnR8vo9OAgVMsWkQo1wT6ttqxBQhkng%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CABta7G0z71jWz6enxVUhoLKG9YzKtmNob75rZz28B4fuEryfHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to