gw5: fs.inotify.max_user_instances 8192 from ansible, as on scout (#598) #360
Open
myagent
wants to merge 1 commit from
pixel/598-gw5-apsydsn-raise-fs-inotify-max-user into main
pull from: pixel/598-gw5-apsydsn-raise-fs-inotify-max-user
merge into: sophie:main
sophie:main
sophie:renovate/renovate-renovate-45.x
sophie:pixel/599-gw5-apsydsn-find-why-the-guest-stalls
sophie:renovate/code.m.ac.nz-containers-pixel-thumbnailer-main
sophie:pixel/600-ansible-runners-intelbuilder-and
sophie:pixel-bump-ed252a7
sophie:pixel/373-back-up-immich-on-gw5-apsydsn-to-the
sophie:renovate/grafana-14.x
sophie:renovate/docmost-docmost-0.x
sophie:pixel/215-forgejo-runners-measure-a-week-with-two
sophie:pixel/274-after-a-week-of-data-measure-both-stores
sophie:pixel-bump-d863347
sophie:pixel-bump-651cb9a
sophie:pixel-bump-593319c
sophie:pixel/334-bump-pixel-to-9a7695f
sophie:renovate/public.ecr.aws-aws-controllers-k8s-iam-chart-1.x
sophie:renovate/kube-state-metrics-9.x
sophie:renovate/code.forgejo.org-forgejo-runner-13.x
sophie:pixel/325-bump-pixel-6098b10
sophie:pixel/333-bump-pixel-to-ef4459b
sophie:pixel/330-bump-pixel-99c2e04
sophie:pixel-bump-1be31cb
sophie:renovate/ghcr.io-paperless-ngx-paperless-ngx-3.x
sophie:renovate/postgres-19.x
sophie:renovate/ghcr.io-cloudnative-pg-postgresql-19.x
sophie:renovate/postgres-16.x
sophie:renovate/ghcr.io-cloudnative-pg-postgresql-18.x
sophie:renovate/public.ecr.aws-aws-controllers-k8s-dynamodb-chart-1.x
sophie:renovate/ghcr.io-mogenius-helm-charts-renovate-operator-7.x
sophie:renovate/renovate-renovate-44.x
sophie:renovate/redis-8.x
sophie:renovate/public.ecr.aws-aws-controllers-k8s-s3-chart-1.x
sophie:renovate/public.ecr.aws-aws-controllers-k8s-route53-chart-1.x
sophie:renovate/vector-0.x
sophie:renovate/external-dns-1.x
sophie:renovate/ghcr.io-mogenius-helm-charts-renovate-operator-6.x
sophie:renovate/ghcr.io-karakeep-app-karakeep-0.x
sophie:renovate/getmeili-meilisearch-1.x
sophie:renovate/docker.io-traefik-3.x
sophie:renovate/docker.io-library-docker-29.x
sophie:renovate/grafana.grafana-6.x
sophie:renovate/dependencies
sophie:renovate/vaultwarden-server-1.x
sophie:renovate/quay.io-hedgedoc-hedgedoc-1.x
sophie:renovate/cloudnative-pg
sophie:renovate/docker.io-alpine-kubectl-1.x
sophie:renovate/geerlingguy.docker-8.x
sophie:pixel/295-pixel-metrics-port
sophie:renovate/pin-dependencies
sophie:pixel/307-kanidm-operator-metrics
sophie:pixel/269-grafana-role-quotes
sophie:pixel/269-grafana-review-nits
sophie:pixel/286-access-log-figures
sophie:pixel/225-bump-pixel-872162c
sophie:pixel-bump-ef24383
sophie:pixel-bump-979adda
sophie:pixel-main-3603b7e
sophie:pixel-bump-adc3749
sophie:pixel-main-9f53730
sophie:pixel-bump-f35ca94
sophie:pixel-bump-34d2959
sophie:pixel-bump-958a712
sophie:pixel-bump-9cc4e50
sophie:pixel-main-a531f91
sophie:pixel-bump-810e8db
sophie:pixel-bump-2b4e4da
sophie:pixel-bump-cce9bd8
sophie:pixel-bump-e5175e2
sophie:pixel-bump-352ce8d
sophie:pixel-bump-a17e3ef
sophie:pixel-bump-f3beedc
sophie:pixel-bump-a3ad737
sophie:pixel-bump-3c934be
sophie:pixel/116-bump-pixel-to-a1d8706
sophie:pixel/115-bump-pixel-3e31d3f
sophie:pixel/106-bump-pixel-3d2aad6
sophie:pixel/105-bump-pixel-77116c6
sophie:pixel-bump-74d51a9
sophie:pixel-bump-c3d675b
sophie:pixel-bump-4cf0fea
sophie:pixel/99-bump-pixel-a30a8de
sophie:pixel-bump-bb9681d
sophie:pixel-bump-db8ba01
sophie:pixel-bump-56310c5
sophie:pixel-bump-1688dc5
sophie:pixel/94-bump-pixel-e8c98ab
sophie:pixel-bump-654b138
sophie:pixel-bump-2d9032e
sophie:pixel-bump-633adb8
sophie:pixel-bump-d8c8657
sophie:pixel-bump-80da0de
sophie:pixel-bump-bfc5adf
sophie:pixel-bump-bc9ed8a
sophie:pixel-bump-cddb809
sophie:pixel-bump-84e8b20
sophie:pixel-bump-a5247b0
sophie:pixel-bump-bab77aa
sophie:pixel-bump-26c7386
sophie:pixel-bump-1084104
sophie:pixel-bump-b7752d2
sophie:pixel-bump-f4e669c
sophie:pixel-bump-59e482f
sophie:pixel-image-43d5ce8
sophie:pixel-image-009a6e2
sophie:pixel-image-5391156
sophie:pixel-image-42f4af6
sophie:pixel-image-8042eed
sophie:pixel-image-81a6f95
sophie:pixel-image-279cbb5
sophie:pixel-image-b8a1a87
sophie:pixel-image-46cb814
sophie:pixel-image-868288a
sophie:pixel-image-1209d0f
sophie:pixel-image-ec5f478
sophie:pixel-image-8b8cffc
sophie:pixel-image-9a2a321
sophie:pixel-image-e4b1a8e
sophie:pixel/39-bump-pixel-s-image-to-main-bc296df-task
sophie:pixel/38-bump-pixel-s-image-to-sha-7a2ea17
sophie:pixel/36-bump-pixel-s-image-to-sha-88053f8-board
sophie:pixel/35-bump-pixel-s-image-to-sha-103bd4f
sophie:pixel/32-bump-pixel-s-image-to-b99a8c1-the-board
sophie:pixel/31-bump-pixel-s-image-to-the-drag-and-drop
sophie:pixel/29-pixel-bump-the-image-to-main-at-06e614c
sophie:pixel/18-renovate-find-out-why-own-image-digest
sophie:assetstransporter-svc
sophie:renovate-webhook-admin-token
sophie:renovate-webhook-token
sophie:renovate-webhook-ingress
sophie:kanidm-operator-sha-6f4c201
sophie:test-token-service-main-digest
sophie:datastore-main-digest
sophie:simpleplayer-svc-sha-0346fd6
sophie:remove-ansible-forgejo-runners
sophie:forgejo-runner-capacity-2
sophie:docs-remaining-clients
sophie:argocd-secret-label
sophie:kanidm-operator-sha-ca74cde
sophie:argocd-kanidm-operator
sophie:karakeep-kanidm-operator-step2
sophie:karakeep-kanidm-operator
sophie:kanidm-add-app-oauth2-proxy-cookie
sophie:expose-renovate-web
sophie:renovate-argocd-managers
sophie:kanidm-skills
sophie:hedgedoc-drop-onepassword-oidc
sophie:hedgedoc-kanidm-operator
sophie:wu-8-kanidm-operator
sophie:help-me-figure-out-why-the-forge
sophie:add-vaultwarden
sophie:add-git-pkgs-proxy
sophie:add-rclone-manager
sophie:task/add-skill
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
sophie/homelab!360
Loading…
Reference in a new issue
No description provided.
Delete branch "pixel/598-gw5-apsydsn-raise-fs-inotify-max-user"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
dockerd in gw5's runner logged
failed to create inotify fd: too many open fileson 2026-12-02. The node'sfs.inotify.max_user_instancesis the default 128; scout's is 8192, set by ansible (dab2fcf).What changes
ansible/hosts.yml: gw5-apsydsn joins the inventory (groupgw5, inside a new groupsysctl_only) withset_inotify_max_user_instances: 8192.ansible/main.yml: the three sysctl tasks become a play of their own on all hosts. The rest (docker, pip, Alloy, apt, ...) now runs onall:!sysctl_only, so gw5, a k3s node, never gets it, even in a run without--tags./etc/sysctl.confat boot, so gw5 writes to/etc/sysctl.d/90-homelab.conf(new variableset_sysctl_file). Other hosts keep/etc/sysctl.conf.max_user_watches(762028, already above scout's 524288) andmax_queued_events(16384 on both).docs/gw5-sysctl.md: what, why, how to apply and check.For the other hosts the only change is order: the sysctl tasks run before the roles instead of after Alloy.
After the merge (owner)
Nothing has been applied to gw5 yet: the value there is still 128.
Checked
With ansible-core 2.19 locally, no host contacted:
--syntax-checkpasses;--list-hosts --limit gw5gives gw5 in the sysctl play and 0 hosts in the second play; scout's task list is the same set of tasks as before; the inventory gives gw5 only the two variables. The play has not been run against gw5 (no login from here), sobecomeover Tailscale SSH there is untested.🤖 Generated with Claude Code
Approve. The change does what #598 asks: gw5 gets
fs.inotify.max_user_instances: 8192in/etc/sysctl.d/90-homelab.conf, so it survives a reboot on Debian 13.max_user_watchesandmax_queued_eventswere compared, and leaving them alone is justified.Checked locally (ansible-core 2.19, roles and collections from
requirements.yml, no host contacted)ansible-inventory --graph: gw5 sits only undersysctl_only→gw5.--limit gw5 --list-hosts: gw5 is in play 1; play 2 (all:!sysctl_only) has 0 hosts.--limit scout --tags sysctl --list-tasks: the same three sysctl tasks as before. Play 2 has no sysctl-tagged tasks left.set_*variables come only fromhosts.yml, not fromconfig.yml, so moving the tasks to a play withoutvars_filesloses nothing.ansible.posix2.2.2'ssysctlcreates a missingsysctl_file(tempfile in its directory, then an atomic move) and reloads it withsysctl -p <file>, so/etc/sysctl.d/90-homelab.confdoes not need to exist first.deploy/forgejo-runner -c dind(used the same way in other docs), commitdab2fcf, and gw5 being Debian 13 (docs/forgejo-runner-gw5-slow-tests.md).Still open (needs the node)
becomeworks over Tailscale SSH.90-homelab.confin/etc/sysctl.dor/usr/lib/sysctl.dalso setsmax_user_instances.One non-blocking comment on
hosts.yml: a full run without--limitnow also logs in to gw5.Review by pixel: task #607, round 1 of 3, commit
a77ce6ead6.@ -12,0 +14,4 @@# known here; pass -u <user> or set ansible_user before running.gw5:hosts:gw5-apsydsn.tuatara-puffin.ts.net:Not blocking. gw5 is now in
all, so the sysctl play includes it whenever./playbook.shruns without--limit. With noansible_userhere, ansible logs in to gw5 as the local user. If that login orbecomefails, gw5 shows as unreachable or failed and the run exits non-zero, though the other hosts still get every task.-udoes not change the other hosts, because their inventoryansible_user: patricktakes precedence over it. Once the owner has run the play and knows the login user, consider settingansible_userhere (andansible_become_password/-Kin the doc if sudo asks for one), so that a routine full run stays clean. If not, add a line todocs/gw5-sysctl.mdsaying that a full run needs-u <user>too or should use--limit '!gw5'.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.