siderolabs / talos

Talos Linux is a modern Linux distribution built for Kubernetes.
https://www.talos.dev
Mozilla Public License 2.0
6.62k stars 531 forks source link

Encountering `failed to create fsnotify watcher: too many open files` getting logs #5122

Closed imle closed 2 years ago

imle commented 2 years ago

Bug Report

Description

When streaming logs from a service, I see failed to create fsnotify watcher: too many open files.

Logs

Can add here, not really sure where to look.

Environment

Proxmox cluster with 3 hosts. Ceph running through Proxmox. Exposed to cluster through Rook.

githubcdr commented 2 years ago

You could add this to sysctl to increase the open files limit;

fs.inotify.max_user_instances: "512"

It has been included in the latest Talos release, https://github.com/talos-systems/talos/commit/cbc9610be

imle commented 2 years ago

Thanks! I'll go ahead and update Talos as this is a dev cluster anyway. Maybe I am missing this while searching the docs, is there a way to read its current value?

frezbo commented 2 years ago

talosctl get kernelparams