Docs

Function memory, timeout and limits

Give each function its memory, timeout and minimum warm instances, and know the limits every function shares: invocations, compute, concurrency, cron schedules, triggers, retries, outbound hosts and logs.

Updated Oct 17, 2026

Every run of an edge function gets a slice of memory and a time budget. You choose both per function, within your plan; the limits below the form are shared by every function in the organization.

Memory and timeout per function, with the plan line under each field and the plan limits tableMemory and timeout per function, with the plan line under each field and the plan limits table
Functions › Events & logs › Memory & timeout
slot freemeteredInvokeHTTP, cron, eventtriggerConcurrencyruns at the sametimeRunmemory · timeoutOutbound callsallowed hosts onlyGB-secondsmemory × time

#Memory and timeout

Functions › Events & logs › Memory & timeout: pick a function and set Memory (MB) and Timeout (seconds). Empty means your plan’s maximum. The next run uses the new values.

  • Compute is billed in GB-seconds (memory × run time), so less memory costs less.
  • A run past its timeout is stopped and logged as TIMEOUT.
  • A value above the plan’s maximum is refused with PLAN_LIMIT_REACHED; the line under each field shows the next plan’s value.
FieldWhat to enterTip
MemoryMB for each run (64 up to the plan maximum). Empty = 512 MB, or the plan maximum if lower.Start at 256 MB; raise it if the logs show out of memory or slow JSON handling.
TimeoutSeconds a run may last (1 up to the plan maximum). Empty = 30 seconds, or the plan maximum if lower.Keep HTTP functions short (users wait); give cron and trigger functions more, up to the plan maximum.

Example: a 512 MB function that runs 300 ms uses 0.5 GB × 0.3 s = 0.15 GB-seconds per call; a million calls use 150,000 GB-seconds.

FreeProUltraTeamEnterprise
Function memory256 MB1 GB2 GB4 GB4 GB
Function timeouts10 s1 min5 min15 min15 min

#Minimum instances (no cold start)

Every call runs in a fresh, single-use sandbox. Starting one takes about 0.4 s (a cold start); Sovaria keeps a few started ahead of time, so most calls start warm — tens of milliseconds (Benchmarks). In a burst those can run out. Minimum instances keeps that many sandboxes started for one function only, so its calls start warm whatever else is running.

  • Set it next to memory and timeout (Minimum instances), with sov fn limits <name> --min-instances 2, or setFunctionLimits({ functionName, minInstances: 2 }).
  • The sandboxes are the same isolated ones every call gets: none holds your code or secrets before a call arrives. A Python function's sandbox may be kept for the next calls of the same version (Local development, logs and streaming); it is never shared with another function, version or project.
  • They are kept while the function is used, and released after a day without calls (the next call brings them back).
  • Best for user-facing functions that see bursts (checkout, sign-up hooks). It costs nothing extra on your bill; the plan sets how many.
FreeProUltraTeamEnterprise
Minimum warm instances per function—1248

#Limits every function shares

Invocations and compute are monthly allowances: Free stops at them, paid plans are billed beyond. The rest are ceilings.

FreeProUltraTeamEnterprise
Monthly function invocations100,0001,000,0003,000,00020,000,000100,000,000
Monthly function compute (GB-seconds)5,00050,000200,0001,000,0005,000,000
Concurrent function invocations5502005002,000
Scheduled cron jobs2251005002,000
Function event triggers per project2251002501,000
Tries per trigger event before it is dead-lettered38101215
Days dead-lettered trigger events are kept1 day7 days14 days30 days30 days
Allowed outbound hosts per function32550100500
Environment variables per function202005001,0002,000
Function log retention (hours)1 h7 days14 days28 days90 days
Bundling your own function dependencies—✓✓✓✓

#Tips

  • Retries and dead letters belong to event triggers — see Event triggers.
  • Outbound hosts must be listed per function; requests to others are refused by the egress proxy.
  • Logs older than your plan’s retention are deleted; stream them elsewhere with Logs and log drains.

#Coming from Firebase or Supabase?

PlatformWhat this is called there
FirebaseCloud Functions quotas and limits
SupabaseSupabase Edge Functions limits
SovariaFunction memory, timeout and limits

Moving an existing app? Migrate from Supabase or Firebase imports users (with their passwords), data, files and rules.