Skip to main content

Per-app resources

Some applications have hard minimum requirements: below them they crash-loop or silently lose data. This page lists those floors and the applications that enforce one regardless of the selected preset.

The preset system and how to override it are described in Configuration.

Apps with Custom Resource Helpers​

Some applications have hard minimum resource requirements that the standard presets cannot satisfy at lower tiers. These apps have a custom _resources.tpl template that enforces a minimum floor, no matter which preset is selected. This prevents misconfiguration from causing crashes.

ClamAV​

  • File: helmfile/apps/clamav/charts/clamav/templates/_clamav_resources.tpl
  • Minimum: 1 CPU / 3 GiB RAM
  • Reason: ClamAV needs to load the full virus signature database into memory. Below 3 GiB, the process will be OOM-killed.
  • Floor: All presets from nano to large are overridden to 1 CPU / 3Gi request, 2 CPU / 4Gi limit. Only xlarge and 2xlarge scale beyond the floor.
  • Reference: ClamAV System Requirements
  • The optional ICAP sidecar (antivirus.icap.enabled) embeds a second clamd with its own database and is covered by the same preset floor. Set resource.clamav.icap to give it static resources instead (keep memory at 4 Gi or more).

Collabora Online​

  • File: helmfile/apps/collabora/charts/collabora/templates/_collabora_resources.tpl
  • Minimum: 1 CPU / 512 MiB RAM
  • Reason: The document rendering engine (LibreOffice-based) requires at least 1 CPU core. Memory scales with concurrent users at approximately 50 MiB per user on top of the base.
  • Floor: All presets from nano to small are overridden to 1 CPU / 512Mi request, 2 CPU / 1Gi limit. medium and above scale normally.
  • Scaling rule: ~10 users per CPU thread, ~50 MiB RAM per user + base.

Keycloak​

  • File: helmfile/apps/keycloak/keycloak.yaml.gotmpl
  • Minimum: 1 vCPU / 1280 MiB RAM
  • Reason: Keycloak is JVM-based. The JVM allocates 70% of the memory limit for heap plus approximately 300 MiB for non-heap memory. A pod with realm caches and 10,000 sessions needs at least 1250 MiB.
  • Floor: All presets from nano to medium are overridden to 1 CPU / 1280Mi request, 2 CPU / 2Gi limit. large and above scale normally.
  • Note: The Keycloak floor only applies to the main Keycloak container. The dbchecker init container and the config CLI Job use the standard preset mapping.
  • Reference: Keycloak Sizing Guide

Ollama​

  • File: helmfile/apps/ollama/charts/ollama/templates/_ollama_resources.tpl
  • Minimum: 2 CPU / 8 GiB RAM
  • Reason: Ollama loads LLM models entirely into memory. The rule of thumb is ~1 GiB RAM per billion parameters (quantized Q4). A 7B model needs at least 8 GiB. CPU inference is heavily bandwidth-bound and benefits from multiple cores.
  • Floor: All presets from nano to xlarge are overridden to 2 CPU / 8Gi request, 4 CPU / 12Gi limit. Only 2xlarge scales the limits up (8 CPU / 16Gi).
  • Note: For GPU inference, explicit resources should be set via resource.ollama in resource.yaml.gotmpl to include GPU device requests.

Per-App Minimum Requirements​

The table below summarizes the minimum resource requirements for each application and what preset or mechanism is used.

Apps with custom resource helpers (floor enforced)​

AppMin CPUMin RAMMechanismPreset in config
ClamAV1 core3 GiBCustom _clamav_resources.tplGlobal fallback
Collabora1 core512 MiBCustom _collabora_resources.tplsmall
Keycloak1 vCPU1280 MiBKeycloak preset floor in keycloak.yaml.gotmplsmall
Ollama2 cores8 GiBCustom _ollama_resources.tplsmall

These apps are safe at any preset -- the custom helper or values mapping enforces the minimum regardless.

Apps with per-app presets​

AppComponentPresetMin CPUMin RAMNotes
Element Web-nano100m128 MiBStatic SPA served by nginx
Synapsemaster + workerlarge1 core2 GiBMatrix homeserver, memory scales with rooms/users
LiveKit-medium500m1024 MiBWebRTC SFU, scales heavily with participants
LiveKitegressxlarge1 core3 GiBRecording; ~4 CPU per composite recording
Nextcloud-medium500m1024 MiBPHP memory limit is 512 MiB per process
Meetbackendmicro250m256 MiBLightweight Django app
Meetfrontendnano100m128 MiBStatic React/Next.js
MeetceleryBackendmicro250m256 MiBCelery worker
Meetagentsmicro250m256 MiBLiveKit metadata/subtitles agents
Meetsummarymicro250m256 MiBTranscription/summary workers
Docsbackendmicro250m256 MiBDjango app
Docsfrontendnano100m128 MiBStatic React/Next.js
Docscelerymicro250m256 MiBBackground task worker
DocsyProvidermicro250m256 MiBYjs collaboration WebSocket server
Docsdocspecmicro250m256 MiBDocument conversion service
Drivebackendmicro250m256 MiBDjango app
Drivefrontendnano100m128 MiBStatic React/Next.js
Conversationsbackendmicro250m256 MiBDjango app
Conversationsfrontendnano100m128 MiBStatic React/Next.js
Conversationscelerymicro250m256 MiBCelery worker
ConversationsceleryBeatmicro250m256 MiBCelery beat scheduler
Dictaphonebackendmicro250m256 MiBDjango app
Dictaphonefrontendnano100m128 MiBStatic frontend
Dictaphonecelerymicro250m256 MiBCelery worker
DictaphoneaudioExtractormicro250m256 MiBAudio extraction worker
Dictaphones3Gatewaynano100m128 MiBS3 gateway sidecar
Projects-micro250m256 MiBProject management app
Bureaubladbackendmicro250m256 MiBDashboard backend
Bureaubladfrontendnano100m128 MiBDashboard frontend
Calendarsbackendmicro250m256 MiBDjango app
Calendarsworkermicro250m256 MiBDramatiq background worker
Calendarsfrontendnano100m128 MiBStatic React/Vite
Calendarscaldavmicro250m256 MiBSabreDAV PHP server
Messagesbackendmicro250m256 MiBDjango app and email API
Messagesworkermicro250m256 MiBCelery worker and beat scheduler
Messagesfrontendnano100m128 MiBStatic React/Vite
Messagesmtasmall500m512 MiBInbound SMTP server
Messagesopensearchmedium500m1024 MiBFull-text search index

Dependencies (PostgreSQL, Valkey, object store, OpenSearch)​

PostgreSQL is provided by CloudNativePG and uses explicit resources from resource.<app>.postgresql. Valkey uses resource.<app>.valkey when set, otherwise the global resourcesPreset. The object store uses the global resourcesPreset value. OpenSearch uses resource.<app>.opensearch when set, otherwise the per-app preset. To customize PostgreSQL resources, use explicit values in resource.yaml.gotmpl:

resource:
nextcloud:
postgresql:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "1"
memory: "1Gi"