Browse Source

optimize qemu.conf

bump up the max_files to 32768 and max_processes to 131072.
when nova used ceph as backend, the default limit 1024 is not enough.
each connection from rbd image to osd needs 1 fd and 2 threads. if we
have 200 osds, we need 200 fds and 400 threads for 1 image.

Change-Id: I94c3ec111473ea2ccacdea5dbbf3fdc9c569859f
tags/8.0.0.0rc1
binhong.hua 4 months ago
parent
commit
023334dfcb

+ 7
- 0
ansible/roles/nova/defaults/main.yml View File

@@ -397,6 +397,13 @@ nova_enabled_notification_topics: "{{ nova_notification_topics | selectattr('ena
397 397
 vmware_vcenter_datastore_regex: ".*"
398 398
 ovs_bridge: "nsx-managed"
399 399
 
400
+####################
401
+# Libvirt/qemu
402
+####################
403
+# The number of max files qemu can open
404
+qemu_max_files: 32768
405
+# The number of max processes qemu can open
406
+qemu_max_processes: 131072
400 407
 
401 408
 ####################
402 409
 # Kolla

+ 3
- 0
ansible/roles/nova/templates/qemu.conf.j2 View File

@@ -2,3 +2,6 @@ stdio_handler = "file"
2 2
 
3 3
 user = "nova"
4 4
 group = "nova"
5
+
6
+max_files =  {{ qemu_max_files }}
7
+max_processes =  {{ qemu_max_processes }}

+ 7
- 0
releasenotes/notes/add_qume_options-8e9f040d0bc36fe6.yaml View File

@@ -0,0 +1,7 @@
1
+---
2
+features:
3
+  - |
4
+    Bump up the max_files to 32768 and max_processes to 131072.
5
+    when nova used ceph as backend, the default limit 1024 is not enough.
6
+    each connection from rbd image to osd needs 1 fd and 2 threads. if we
7
+    have 200 osds, we need 200 fds and 400 threads for 1 image.

Loading…
Cancel
Save