Can I allocate more than 512 MB of memory to my Catalyst function?
No. In Catalyst Serverless Functions, you can choose a memory between 128 MB and 512 MB for each function, and the default is 256 MB. CPU is allocated automatically based on the memory you choose, and you can’t set it separately.
To change a function’s memory, open the function in the Catalyst console, go to the Configuration tab, click the edit icon in Allocated Memory, select the memory and click the check icon. From the CLI, run catalyst functions:config --memory 512MB <function_name>.
If the function needs more memory:
- Process data in smaller pieces: stream large files instead of loading them whole, and handle records in batches.
- Split the work across several Job function runs, in a Function Job Pool with more memory than the function.
- Move the workload to Catalyst AppSail, where you can allocate up to 2048 MB to a service.
Note: A function with more memory costs more per second of execution.
Refer to the Configure Function Memory help page and the Cost and Performance Optimization help page for details.
Updated
Yes
No
Send your feedback to us
Ask AI about this answer