Page MenuHomePhabricator

[lima-kilo] inotify settings are lost after a VM restart
Closed, ResolvedPublic

Description

The inotify config values were raised in T429347: [lima-kilo] increase the number of inotify watches, but I noticed they get lost after the lima vm is restarted:

fran@lima-kilo:~/$ sysctl fs.inotify.max_user_instances fs.inotify.max_user_watches fs.inotify.max_queued_events
fs.inotify.max_user_instances = 128
fs.inotify.max_user_watches = 125976
fs.inotify.max_queued_events = 16384

This leads to the same issue when watching logs in k9s:

stream closed EOF for alerts-api/alerts-api-poller-b65c4bc4d-ftn5s

Definition of done

After restarting the Lima VM with limactl restart lima-kilo, the config should still have the expected values:

fran@lima-kilo:~$ sysctl fs.inotify.max_user_instances fs.inotify.max_user_watches fs.inotify.max_queued_events
fs.inotify.max_user_instances = 1048576
fs.inotify.max_user_watches = 1048576
fs.inotify.max_queued_events = 1048576

Impact

Pod logs are not truncated when using k9s or kubectl logs.

Details

Related Changes in GitLab:
TitleReferenceAuthorSource BranchDest Branch
basic_system: Keep the inotify limits after a rebootrepos/cloud/toolforge/lima-kilo!344fnegrimain-I9f9bc3b3a25df8c648c7360f6482539dff966a10main
Customize query in GitLab

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
fnegri claimed this task.
fnegri moved this task from Backlog to Done on the tools-platform-team board.