Celerity Cluster
Celerity resource type for a compute pool that several applications' containerised components can run on
celerity/cluster
Spec Version: v2026-02-27-draft
Ecosystem Compatibility: Vision
blueprint transform: celerity-2026-02-27-draft
Ecosystem Compatibility
- Vision: A shared compute pool on Amazon ECS, Amazon EKS, GKE and Azure Container Apps or AKS, owned by a platform project or an application and used by several applications.
Read more about Celerity versions here.
Design note
celerity/cluster is part of the vision and is not available yet. This page sets out the current design, which is not committed and may change before it is built. It is one of the platform primitives, which share the modes, ownership and access rules described there.
The celerity/cluster resource type defines a compute pool that several applications' containerised components can run on.
Sharing a cluster is opt-in. Each application keeps its own cluster by default, which isolates applications from one another. A component that isn't linked to a celerity/cluster keeps today's behaviour: on Amazon ECS, a cluster of its own.
Specification
The specification is the structure of the resource definition that comes under the spec field of the resource in a blueprint.
The specification is deliberately thin. Everything that sizes a cluster is specific to the target environment, so it lives in the owning project's deploy configuration, described in compute configuration. A managed cluster is placed in a network by linking a celerity/vpc to it.
name (required)
The name of the cluster, used to find it from other applications in referenced mode and to tag the resources it creates.
type
string
mode
Whether this blueprint provisions the cluster (managed), uses one owned by another Celerity project (referenced), or uses one created outside Celerity (external). See managed, referenced and external modes.
In referenced mode only name is accepted. In external mode only name and external are accepted.
allowed values
managed | referenced | external
default value
managed
type
string
external
Target-specific identifiers for a cluster created outside Celerity.
Required in external mode and rejected in the other modes.
type
Annotations
There are no annotations for linking other resources to a celerity/cluster resource.
Outputs
id
The ID of the cluster: the cluster ARN on Amazon ECS.
type
string
Data Types
externalClusterConfiguration
FIELDS
clusterId
The ARN of the ECS cluster. Required.
field type
string
capacityProvider
The name of the capacity provider. Required for clusters running on EC2 instances, and omitted for Fargate.
field type
string
securityGroupIds
The security groups of the cluster's instances, needed for bridge-mode networking. Only used for clusters running on EC2 instances.
field type
array[string]
Linked From
celerity/vpc
When a VPC links to a cluster in managed mode, the VPC places the cluster's instances.
Links To
celerity/api, celerity/consumer and celerity/schedule
When a cluster links to an application's compute components, they run on that cluster rather than on a cluster of their own. The same applies to a celerity/website with mode: server.
- All of an application's components land on the same cluster, since they are deployed together as one application (grouped by the
celerity.appannotation). Linking components of one application to different clusters is an error. - The network has to match. The cluster and the application's services must be in the same VPC. A mismatch fails validation.
- Targets without clusters ignore the link, with a warning. See target environments.
Compute Configuration
Today, every aws.compute.* compute configuration option applies to one application. With a shared cluster, the options would be divided by who owns the setting:
| Scope | Options (AWS) | Set by |
|---|---|---|
| Cluster | aws.compute.containerService, aws.compute.launchType, aws.compute.instanceType, aws.compute.ecs.minInstances, aws.compute.ecs.maxInstances and instance scaling | The cluster's owner, as aws.cluster.<name>.* in the owning project's deploy configuration |
| Service | Task scaling (pScale, tScale and sScale), and task-level sizing such as CPU, memory and the number of tasks | Each application |
An application linked to a referenced or external cluster that sets a cluster-scoped option gets a validation error naming the cluster's owner. An application with no cluster link keeps every option, so nothing changes for single-application projects.
Two defaults matter more on a shared cluster than on a cluster of one's own:
- Managed scaling through capacity providers. The number of instances has to follow the total reservations of every attached service, so a shared EC2 cluster would use an ECS capacity provider with managed scaling, rather than the CPU-utilisation instance scaling used today.
- Soft memory reservations and no CPU reservation, by default. This lets two copies of a task fit on one instance during a rolling deployment. Hard limits multiply badly when several applications share instances.
Target Environments
🧭 Vision
| Target | Mapping |
|---|---|
| Local development | Ignored: every application runs on the local container network. |
| Amazon ECS | An ECS cluster. For EC2, an auto scaling group, launch template and capacity provider with managed scaling; for Fargate, the Fargate capacity providers. Tagged with celerity:cluster:name. |
| Amazon EKS | An EKS cluster and node groups, with applications attaching namespaces. See the Amazon EKS design notes. |
| AWS Lambda | Not applicable. The link is ignored with a warning. |
| Google Cloud | Cloud Run has no cluster, so the link is ignored. On GKE, a GKE cluster. |
| Azure | On Container Apps, the Container Apps environment, which is the natural unit of shared compute. On AKS, an AKS cluster. |
Last updated on