Skip to content

Commit

Permalink
machine: increase max number of inotify instances
Browse files Browse the repository at this point in the history
increase the number of inotify instances to 524288 instead of using
the default value of 128.

Closes: containers#19848

[NO NEW TESTS NEEDED]

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
  • Loading branch information
giuseppe committed Sep 4, 2023
1 parent 9bcab49 commit 681b6db
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/machine/ignition.go
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 681b6db

Please sign in to comment.