Skip to content

Operations

Automatic tuning

soviez.sh --tune resource sizing

soviez.sh --tune
soviez.sh --tune --dry-run

Purpose

Detects the server's current resources and recalculates safe ERP, PostgreSQL and Docker settings. Use it after resizing your server:

detect → calculate → compare → show the plan → checkpoint → apply → validate → restart only if needed → verify

If anything fails, the previous working settings are restored.

What it sizes

  • ERP: workers, max_cron_threads, memory, time and request limits, proxy_mode, list_db, and gevent_port with several workers
  • PostgreSQL: buffers, work_mem, connections, WAL and checkpoints, parallel workers
  • Docker: PostgreSQL shared memory (/dev/shm) within the total memory budget

The formulas are internal and can change; they are not a service commitment.

Headroom

Sizing leaves room for PostgreSQL, the operating system, file cache, Nginx, Docker, ClamAV, YARA, backups, Stages and scheduled jobs.

Running it twice

Running --tune again without a resource change changes nothing and doesn't restart anything.