Merge pull request #19849 from giuseppe/increase-inotify-watchers

machine: increase max number of inotify instances
This commit is contained in:
OpenShift Merge Robot
2023-09-05 05:24:11 +02:00
committed by GitHub

View File

@ -431,6 +431,22 @@ Delegate=memory pids cpu io
},
})
// Increase the number of inotify instances.
files = append(files, File{
Node: Node{
Group: GetNodeGrp("root"),
Path: "/etc/sysctl.d/10-inotify-instances.conf",
User: GetNodeUsr("root"),
},
FileEmbedded1: FileEmbedded1{
Append: nil,
Contents: Resource{
Source: EncodeDataURLPtr("fs.inotify.max_user_instances=524288\n"),
},
Mode: IntToPtr(0644),
},
})
// Issue #11489: make sure that we can inject a custom registries.conf
// file on the system level to force a single search registry.
// The remote client does not yet support prompting for short-name