Increase the number of inotify instances
For TLS test jobs on Ubuntu Jammy when we run dnsmasq on the master node needed for testing we get the error: "failed to create inotify: Too many open files" By default the number of inotify instances on Jammy is 128. We increase this up to 256. Change-Id: I07c8a0f909608b6e44040ffeefc6ab576236c93f
This commit is contained in:
parent
426c71f753
commit
10a171eb18
@ -21,6 +21,16 @@
|
|||||||
- net.ipv4.ip_forward
|
- net.ipv4.ip_forward
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
# This is necessary when we run dnsmasq.
|
||||||
|
# Otherwise, we get the error:
|
||||||
|
# failed to create inotify: Too many open files
|
||||||
|
- name: Configure number of inotify instances
|
||||||
|
sysctl:
|
||||||
|
name: "fs.inotify.max_user_instances"
|
||||||
|
value: "256"
|
||||||
|
state: present
|
||||||
|
ignore_errors: true
|
||||||
|
|
||||||
- name: Remove swapfile from /etc/fstab
|
- name: Remove swapfile from /etc/fstab
|
||||||
mount:
|
mount:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user