Merge pull request 'Docs: Bump maximum datasize limit and mention cap_mkdb when creating login class' (#7995) from openbsd-bump-datasize into develop

Reviewed-on: https://git.pleroma.social/pleroma/pleroma/pulls/7995
This commit is contained in:
Phantasm 2026-09-29 08:45:42 +00:00
commit 1afc236468
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1 @@
Docs OpenBSD: Increased recommended `datasize` from 1536M to 4096M to avoid Pleroma crashes

View file

@ -67,13 +67,19 @@ Pleroma will be run by a dedicated \_pleroma user. Before creating it, insert th
``` ```
pleroma:\ pleroma:\
:datasize=1536M:\ :datasize=4096M:\
:openfiles-max=4096:\ :openfiles-max=4096:\
:openfiles-cur=1024:\ :openfiles-cur=1024:\
:setenv=LC_ALL=en_US.UTF-8,VIX_COMPILATION_MODE=PLATFORM_PROVIDED_LIBVIPS,MIX_ENV=prod:\ :setenv=LC_ALL=en_US.UTF-8,VIX_COMPILATION_MODE=PLATFORM_PROVIDED_LIBVIPS,MIX_ENV=prod:\
:tc=daemon: :tc=daemon:
``` ```
Then run:
```
# cap_mkdb /etc/login.conf
```
This creates a "pleroma" login class and sets higher values than default for datasize and openfiles (see [login.conf(5)](https://man.openbsd.org/login.conf)), this is required to avoid having Pleroma crash some time after starting. This creates a "pleroma" login class and sets higher values than default for datasize and openfiles (see [login.conf(5)](https://man.openbsd.org/login.conf)), this is required to avoid having Pleroma crash some time after starting.
Create the \_pleroma user, assign it the pleroma login class and create its home directory (/home/\_pleroma/): Create the \_pleroma user, assign it the pleroma login class and create its home directory (/home/\_pleroma/):