Implement fact caching

Fact caching will improve general Ansible performance by default.
This has the biggest performance gain on very large environments.
This implementation will use the JSONfile configuration because
it has no new dependencies and will provide a similar performance
gain as noted through the use of Redis.

Notes:
* The facts can purged or read by interacting with the default
  JSON file.
* The caching behavior can be turned off by removing the parameter
  fact_caching from the playbook/ansible.cfg file.

DocImpact
UpgradeImpact

Co-Authored-By: Kevin Carter <kevin.carter@rackspace.com>

Implements: blueprint build-facts-archive
Closes-Bug: 1498111

Change-Id: I95ab1c2f8567d6af68feb53d7c14b8997eef5c89
This commit is contained in:
Bjoern Teipel 2015-09-21 12:50:31 -05:00 committed by Kevin Carter
parent 5a2f30d4ce
commit 1f07924cd2

View File

@ -5,6 +5,12 @@ filter_plugins = plugins/filters
action_plugins = plugins/actions
gathering = smart
# Fact caching
fact_caching = jsonfile
fact_caching_connection = /etc/openstack_deploy/ansible_facts
fact_caching_timeout = 86400
hostfile = inventory
host_key_checking = False