-
Notifications
You must be signed in to change notification settings - Fork 78
Description
Creating a single tracking issue since there are likely to be various small issues
After adding heztner-2i2c to the federation (#3169), it started to get a lot of traffic. I probably should have started with a smaller weight and quota to ease it in, as coming in with a high weight and prime=True leads to a whole lot of builds with a (note: prime=True means quota is ignored if all federation members are full, so this is the one that gets traffic when everyone is overwhelmed. Probably not best to start there!)
Problems encountered with the early builds:
failed to create fsnotify watcher: too many open files in logs
I addressed this following what I found in issues like kairos-io/kairos#2071 by running:
sysctl -w fs.inotify.max_user_instances=8192
sysctl -w fs.inotify.max_user_watches=524288
and adding those two lines to a new file /etc/sysctl.d/99-mybinder.conf to it should survive a restart. This seemed to immediately reduce the fsnotify (TODO: is this the right place to put it, or is there a k3s-specific config option for it?)
timeout pushing to local registry
The localhost registry appears to be timing out due to load. registry is quite single-threaded, I believe, so concurrent pushes may fail with timeouts if overwhelmed. This should alleviate as the build cache warms up. I'll investigate increasing the number of registry replicas, in case that helps.