You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: "Separate build and runtime compute specs for Sites and Functions"
4
+
date: 2026-04-08
5
+
cover: /images/changelog/2026-04-08.png
6
+
---
7
+
8
+
You can now choose **independent compute specifications** for the **build** and **runtime** phases of [Sites](/docs/products/sites) and [Functions](/docs/products/functions). Each spec sets CPU and memory for that phase, so you can tune both performance and spend: right-size compute for heavy builds or busy runtimes without paying for peak capacity in the phase that does not need it.
9
+
10
+
# Sites
11
+
12
+
- **Build specification:** CPU and memory used while installing dependencies and producing your deployment artifact.
13
+
- **Runtime specification:** CPU and memory used when your site handles traffic, including server-side rendering (SSR).
14
+
15
+
# Functions
16
+
17
+
- **Build specification:** CPU and memory used while building and packaging your function deployment.
18
+
- **Runtime specification:** CPU and memory available to each function execution.
19
+
20
+
Build steps (dependency installs, compilers, bundlers) often need different resources than steady execution or request handling. For example, a large frontend build may benefit from more RAM during CI-style build, while a lightweight API or static output might need fewer resources at runtime, or the opposite if runtime work is heavy. Setting build and runtime specs separately lets you align capacity with each phase instead of over-provisioning for both, which helps control cost as well as latency and reliability.
21
+
22
+
Configure these under each resource’s **Settings > Resource limits** in the [Appwrite Console](https://cloud.appwrite.io). On Appwrite Cloud, customizing specs beyond the default is **available on the Pro plan**; Starter organizations see an upgrade prompt when adjusting CPU and RAM.
description: Learn about Appwrite Functions compute add-ons and the different CPU and memory options for function runtimes.
4
+
description: Learn about CPU and memory options for Appwrite Functions and Sites on Cloud, including separate build and runtime specifications.
5
5
---
6
6
7
-
Appwrite's paid plans give you the ability to change your function's allocated CPU Cores and Memory, enabling functionsand builds to perform more computionally demanding actions quicker.
7
+
On Appwrite Cloud, paid plans let you choose how much **CPU** and **memory** apply to **build** work and to **runtime** work. [Functions](/docs/products/functions) and [Sites](/docs/products/sites) each expose two settings: a **build specification** (install, compile, bundle, package) and a **runtime specification** (executions for functions; serving traffic and SSR for sites). You can pick different tiers for each phase so heavy builds do not force you to oversize steady execution, and vice versa.
8
8
9
-
These options enable greater performance and flexibility, allowing developers to optimize their functions based on specific requirements. For instance, resource-intensive tasks such as real-time data processing or complex computational operations can now be executed more efficiently. Additionally, enhanced memory configurations support larger datasets and more demanding applications, broadening the scope of what can be achieved with Appwrite Functions.
9
+
These options help you tune performance and cost: for example, a large install or compiler step can use a higher build spec while a smaller spec covers routine invocations or traffic.
10
10
11
11
# Specifications {% #specifications %}
12
12
13
-
Appwrite Cloud has the following specifications available:
13
+
Appwrite Cloud offers the following specification tiers. The same tiers are available for **build** and **runtime** independently on each function or site:
14
14
15
15
| Memory | CPU cores | Hourly usage |
16
16
|--------|-----------|--------------|
@@ -22,30 +22,33 @@ Appwrite Cloud has the following specifications available:
22
22
| 4GB | 4 | 16 |
23
23
24
24
{% info title="Note" %}
25
-
Only customers on either Pro or Scale are able to change their specification from the default 512MB & 0.5 CPU option. For custom compute options please contact our [sales team](https://appwrite.io/contact-us/enterprise).
25
+
On Appwrite Cloud, **Pro** plan organizations can change build and runtime specifications from the default 512MB and 0.5 CPU. The Free plan uses the default. For custom compute options, contact our [sales team](https://appwrite.io/contact-us/enterprise).
26
26
{% /info %}
27
27
28
+
Configure specifications in the Appwrite Console under each function or site **Settings** - **Resource limits**. See also the [Functions](/docs/products/functions/functions#resource-limits) and [Sites](/docs/products/sites/develop#resource-limits) configuration guides.
29
+
28
30
# GB-Hours {% #gb-hours %}
29
31
30
-
GB-hours is a metric used to quantify the consumption of compute resources by combining both memory usage and the duration of that usage. Specifically, it represents the number of gigabytes (GB) of memory utilized multiplied by the number of hours those resources are active. This metric provides a comprehensive view of resource usage over time, allowing for accurate tracking, optimization, and billing based on actual compute needs.
32
+
GB-hours quantify compute use by combining memory (in GB) and duration (in hours). Both **build** activity and **execution** (function runs or site serving, depending on the product) draw from your plan's GB-hour pool according to the specifications in effect for that phase.
33
+
34
+
How it works:
31
35
32
-
How It Works:
33
-
- Memory allocation: Determine the amount of memory (in GB) that your application or function requires while running.
34
-
- Duration: Measure the total time (in hours) that the allocated memory is in use.
35
-
- Calculation: Multiply the memory allocated by the duration to obtain the total GB-hours consumed.
36
+
- Memory allocation: The GB value comes from the spec in use for that phase (build or runtime).
37
+
- Duration: Time that phase is active (for example, build duration or execution time).
38
+
- Calculation: Memory (GB) multiplied by hours gives GB-hours for that usage.
36
39
37
40
**Example:**
38
41
39
-
Assuming you have a function that requires 4 GB of memory to operate. If this function runs continuously for 2 hours, the compute resource usage would be:
42
+
If a function runs with 4 GB of memory for 2 hours of execution time:
40
43
41
44
**4GB * 2 hours = 8 GB-hours**
42
45
43
-
This means the function has consumed 8 GB-hours of compute resources.
46
+
That counts toward your execution GB-hours for the billing period.
44
47
45
48
## Pricing {% #pricing %}
46
49
47
-
- Free plan includes up to 100 GB-hours of execution and build time per month.
50
+
- The Free plan includes up to 100 GB-hours of execution and build time per month.
48
51
49
-
- Pro and Scale plans include up to 1,000GB of execution and build time per month. Additional usage is available at a rate of $0.09 per GB-hour.
52
+
- The Pro plan includes up to 1,000 GB-hours of execution and build time per month. Additional usage is billed at $0.09 per GB-hour.
50
53
51
-
Once the monthly GB-hours limit is reached, additional usage will automatically apply add-ons to your Pro or Scale account. It is recommended to set budget alerts and a budget cap to prevent unexpected payments.
54
+
Once the monthly GB-hours limit is reached, additional usage is billed automatically. Set budget alerts and a budget cap to avoid unexpected charges.
Copy file name to clipboardExpand all lines: src/routes/docs/products/functions/functions/+page.markdoc
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,12 @@ It's recommended you use one of the [starter function templates](/docs/products/
103
103
Under **Build settings**, you can update your build commands.
104
104
These are terminal commands that will be executed in the runtime containers in the build step of the deployment process.
105
105
106
+
## Resource limits {% #resource-limits %}
107
+
108
+
Under **Settings** - **Resource limits**, you can set **build** and **runtime** specifications independently. The build spec applies while your deployment is being built and packaged; the runtime spec applies to each function execution. Both use the same CPU and memory tiers on Cloud. This lets you align compute with heavy dependency installs or compilation without over-provisioning every invocation.
109
+
110
+
On Appwrite Cloud, customizing specifications requires the **Pro** plan. See [Compute](/docs/advanced/platform/compute) for tiers, GB-hours, and pricing.
111
+
106
112
## Git integration {% #git-integration %}
107
113
You can update the entrypoint file and build settings of your function by navigating to your function > **Settings** > **Configuration**.
0 commit comments