Skip to main content
FINOPS WORKFLOWGRAPH LAB // DIFY 9-CONTAINER STACK TELEMETRY DOCKER COMPOSE OVERRIDE | PGVECTOR HNSW + CELERY | BASELINE 2026-10-13
DifyStackRAM
DifyStackRAM Affiliate Notice: Outbound /go/ links marked rel="sponsored" may earn a partner commission at zero added cost (Affiliate Policy).
Dify Stack Presets

Heavy Python & Node Sandbox Preset for Workflow Code Nodes

Prevent SIGKILL OOM terminations inside dify-sandbox when workflows parse CSVs, run regex transforms, or compute financial aggregates.

520 - 1,400 MB Sandbox Cap · 30s Timeout · 16 GB KVM 4

Heavy Python & Node Sandbox Preset for Workflow Code Nodes
Telemetry baseline verified 2026-10-13 by WorkflowGraph Lab.

Why Sandbox Containers Die Silently

Dify runs user-authored Python and JavaScript workflow code nodes inside an isolated sandbox container with strict seccomp and memory ceilings. Passing large JSON arrays from HTTP nodes into a 512 MB sandbox causes silent 137 OOM kills.

Right-Sizing Sandbox Limits

Raising the sandbox deploy limit to 1,536M on a 16 GB KVM 4 node and extending SANDBOX_WORKER_TIMEOUT to 30s eliminates mid-workflow failures.

Measured Thresholds & Container Limits

ParameterLight DefaultHeavy Python/Node
Sandbox Container Limit512M1,536M - 2,048M
SANDBOX_WORKER_TIMEOUT15 seconds30 seconds
CODE_EXECUTION_READ_TIMEOUT30 seconds60 seconds
Concurrent Runs Safe Cap20 - 40 runs80 - 150 runs
520 - 1,400 MB Sandbox Cap · 30s Timeout · 16 GB KVM 4 Deploy KVM ($4.79+/mo)Make.com 10k Free Ops