mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-06 11:28:30 -05:00
Limits in systemd service example are too strict for huge boxes #4937
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Originally created by @jackyyf on GitHub (Jun 6, 2022).
Subject of the issue
Limits in systemd service example are too strict for huge boxes
Deployment environment
Install method: built from source
Clients used: N/A
Reverse proxy and version: N/A
MySQL/MariaDB or PostgreSQL version: N/A
Other relevant details:
The server running vaultwarden is a Dual E5-2696v3, with 36 cores and 72 threads.
Steps to reproduce
Use the reference systemd service file in wiki https://github.com/dani-garcia/vaultwarden/wiki/Setup-as-a-systemd-service
Expected behaviour
Vaultwarden booted up.
Actual behaviour
Vaultwarden panicked with some strange tracebacks, logs attached.
Troubleshooting data
Suggestion
Limit maximum threads for pool to something like 16 or 32 (instead of the default
$(nproc)) would be a good choice :) I don't think our nice program would have such huge load that requires a bunch of threads to handle