kevin b95827f351
Added openstack_kernel options for gc_thresh
This commit adds to the openstack_kernel_options to set the
"net.ipv4/6.neigh.default.gc_thresh*" values according to how much ram
is available on the box.

How this is being defined:
The change brings with it a filter to find the closest power of 2 from the
amount of ram discovered on the target host. If facts are disabled when the
role is called a default value of 1024 will be used. The `set_gc_val`, when
computed, has a max value of 8192. For both ipv4/6 thresh1 is half the
`set_gc_val` thresh2 is computed value, and finally both
thresh3/router.gc_thresh are double the `set_gc_val`.

The changes here should provide for a more scalable neutron networking
environment by default while also ensuring that the values computed are sane.
Additionallyi, should the user want to define their own values they can do so by
simply overriding the `set_gc_val`.

Change-Id: Ic5fd7ebdac009fa1472aeb0b0666f9b2611a31d7
Closes-Bug: #1427893
2015-07-09 10:20:31 -05:00

24 lines
601 B
INI

[defaults]
# Additional plugins
lookup_plugins = plugins/lookups
filter_plugins = plugins/filters
gathering = smart
hostfile = inventory
host_key_checking = False
# Setting forks should be based on your system. The Ansible defaults to 5,
# the os-lxc-hosts assumes that you have a system that can support
# OpenStack, thus it has been conservatively been set to 15
forks = 15
# Set color options
nocolor = 0
# SSH timeout
timeout = 120
[ssh_connection]
pipelining = True
ssh_args = -o ControlMaster=auto -o ControlPersist=60s -o TCPKeepAlive=yes -o ServerAliveInterval=5 -o ServerAliveCountMax=3