Skip to content

Commit e6aa1e7

Browse files
committed
Remove explicit sysctl fs.inotify.max_user_watches setting
Since Linux 5.11-rc1, fs.inotify.max_user_watches is dynamically computed up to 1048576 with regards to the addressable physical memory: torvalds/linux@9289012 . Tablecloth math from the above-linked commit makes me understand that on a 64bits host with 64GB fs.inotify.max_user_watches would be set to the currently hard coded 524288.
1 parent fb666c7 commit e6aa1e7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nodeup/pkg/model/sysctls.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,10 @@ func (b *SysctlBuilder) Build(c *fi.NodeupModelBuilderContext) error {
111111
"fs.file-max = 2097152",
112112
"",
113113

114-
"# Max number of inotify instances and watches for a user",
114+
"# Max number of inotify instances for a user",
115115
"# Since dockerd runs as a single user, the default instances value of 128 per user is too low",
116116
"# e.g. uses of inotify: nginx ingress controller, kubectl logs -f",
117117
"fs.inotify.max_user_instances = 8192",
118-
"fs.inotify.max_user_watches = 524288",
119118

120119
"# Additional sysctl flags that kubelet expects",
121120
"vm.overcommit_memory = 1",

0 commit comments

Comments
 (0)