Quotas¶
Every tenant has limits on what it can hold at once, and on a few things it can use per month. The dashboard shows usage against each.
| Quota | Key | Counts | Beta default |
|---|---|---|---|
| vCPU | vcpu |
running instances and every PostgreSQL instance | 16 |
| Memory | ramGb |
running instances and every PostgreSQL instance | 64 GB |
| Disk | diskGb |
all instance disks, PostgreSQL storage and app volumes | 1000 GB |
| Instances | vms |
virtual machines, including Kubernetes cluster nodes | 10 |
| Apps | apps |
serverless apps | 20 |
| PostgreSQL clusters | pgClusters |
clusters | 2 |
| Buckets | buckets |
object storage buckets | 10 |
| Kubernetes clusters | k8sClusters |
clusters | 2 |
| Scheduled jobs | scheduledJobs |
jobs | 20 |
| Queues | queues |
queues | 20 |
| Topics | topics |
topics | 20 |
| Webhooks | webhooks |
webhooks | 10 |
| Scheduled messages | scheduledMessages |
scheduled messages | 20 |
| AI tokens | aiTokens |
prompt and completion tokens per calendar month (UTC) | 5,000,000 |
A request that would exceed a limit (creating an instance, an app or a cluster, or growing an
instance) is refused immediately with QUOTA_EXCEEDED, naming the resource, the current usage and
the limit. Nothing is created.
The AI token quota works differently because it is a monthly allowance: once it is used up, model
calls are refused with 429 insufficient_quota until the next month. See
AI models.
A refused request is also announced as a platform event
(quotas.quota.exceeded, ai.tokenQuota.reached).
The query quota { name used limit } and rso quota show the same numbers.
To raise a quota, contact support with the tenant id and the limits you need.
Terraform¶
# Check headroom and price before creating anything.
data "rso_quota" "current" {}
data "rso_cost_estimate" "small_vm" {
instance_vcpu = 1
instance_ram_gb = 2
instance_disk_gb = 60
}
output "vcpu_remaining" {
value = data.rso_quota.current.remaining["vcpu"]
}
output "small_vm_monthly" {
value = "${data.rso_cost_estimate.small_vm.monthly} ${data.rso_cost_estimate.small_vm.currency}"
}