Skip to content

Commit

Permalink
Merge pull request #19849 from giuseppe/increase-inotify-watchers
Browse files Browse the repository at this point in the history
machine: increase max number of inotify instances
  • Loading branch information
openshift-merge-robot committed Sep 5, 2023
2 parents 8914caf + 681b6db commit 0e3b492
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/machine/ignition.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e3b492

Please sign in to comment.