Increase libvirt/qemu.conf max_files and max_processes
authorGiulio Fidente <gfidente@redhat.com>
Fri, 16 Dec 2016 20:52:13 +0000 (21:52 +0100)
committerGiulio Fidente <gfidente@redhat.com>
Fri, 16 Dec 2016 20:52:13 +0000 (21:52 +0100)
When Nova and/or Cinder are using Ceph as backend, qemu will need
to open a connection and two threads for each and every Ceph OSD.

This change raises the max_files (set to 1024 by default) to 32768
and the max_processes (set to 4096 by default) to 131072. The max
number of FDs is per-process, while the max number of processes is
per-user. The values can be overridden via ExtraConfig, no params
are added to the templates.

A more detailed description of the values were chosen can be
found at: https://access.redhat.com/solutions/1602683

Change-Id: I1e79675f6aac1b0fe6cc7269550fa6bc8586e1fb
Depends-On: I258afd3ee6633e4b2ebc45aa8611be652476be0c

puppet/services/nova-libvirt.yaml

index 70774ba..6cf348b 100644 (file)
@@ -50,6 +50,9 @@ outputs:
             tripleo::profile::base::nova::libvirt_enabled: true
             nova::compute::libvirt::services::libvirt_virt_type: {get_param: NovaComputeLibvirtType}
             nova::compute::libvirt::libvirt_virt_type: {get_param: NovaComputeLibvirtType}
+            nova::compute::libvirt::qemu::configure_qemu: true
+            nova::compute::libvirt::qemu::max_files: 32768
+            nova::compute::libvirt::qemu::max_processes: 131072
             tripleo.nova_libvirt.firewall_rules:
               '200 nova_libvirt':
                 dport: