CockroachDB Self-Hosted
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Medium — 50 to 250 GB active data with separated data, query, and index services
Monthly cost
$2,182.02
Annual cost
$26,184/year
| Compute | $1,766.02 |
| Storage | $416.00 |
| Other | $0.00 |
Saves $193.42/mo (9%) across m8g.2xlarge, m8g.xlarge.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Data Node | 4 × m7i.2xlarge | 8 | 32 | 1 TB ssd |
| Index Node | 2 × m7i.xlarge | 4 | 16 | 500 GB ssd |
| Query Node | 2 × m7i.xlarge | 4 | 16 | 100 GB ssd |
This Google Cloud reference equivalent configuration for Couchbase Server Enterprise fits workloads processing fifty to two hundred fifty gigabytes of active data. Compute provisioned across the data, index, and query nodes drives the monthly cost at this tier, totaling seventeen hundred sixty-six dollars and two cents. The separated service topology requires careful capacity planning to independently scale query, index, and data nodes without resource contention.
Share the current URL or copy the AWS Terraform / OpenTofu baseline.
# Compatible with Terraform >= 1.6 and OpenTofu >= 1.6
terraform {
required_version = ">= 1.6.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.0"
}
}
}
provider "aws" {
region = "us-east-1"
}
data "aws_availability_zones" "available" {
state = "available"
}
data "aws_ami" "debian_12_x86" {
most_recent = true
owners = ["136693071363"]
filter {
name = "name"
values = ["debian-12-amd64-*"]
}
filter {
name = "virtualization-type"
values = ["hvm"]
}
}
locals {
azs = slice(data.aws_availability_zones.available.names, 0, 3)
}
resource "aws_vpc" "workload" {
cidr_block = "10.42.0.0/16"
enable_dns_hostnames = true
enable_dns_support = true
tags = {
Name = "couchbase-server-enterprise-vpc"
}
}
resource "aws_subnet" "workload" {
count = 3
vpc_id = aws_vpc.workload.id
cidr_block = cidrsubnet(aws_vpc.workload.cidr_block, 8, count.index)
availability_zone = local.azs[count.index]
tags = {
Name = "couchbase-server-enterprise-subnet-${count.index + 1}"
}
}
# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "data_node_1" {
count = 4
ami = data.aws_ami.debian_12_x86.id
instance_type = "m7i.2xlarge"
subnet_id = aws_subnet.workload[count.index % length(aws_subnet.workload)].id
associate_public_ip_address = false
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "couchbase-server-enterprise-data-node-1-${count.index + 1}"
App = "couchbase-server-enterprise"
Role = "data-node"
}
}
resource "aws_ebs_volume" "data_node_1_data" {
count = 4
availability_zone = local.azs[count.index % length(local.azs)]
size = 1000
type = "gp3"
encrypted = true
tags = {
Name = "couchbase-server-enterprise-data-node-1-data-${count.index + 1}"
App = "couchbase-server-enterprise"
Role = "data-node"
}
}
resource "aws_volume_attachment" "data_node_1_attach" {
count = 4
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.data_node_1_data[count.index].id
instance_id = aws_instance.data_node_1[count.index].id
}
resource "aws_instance" "index_node_2" {
count = 2
ami = data.aws_ami.debian_12_x86.id
instance_type = "m7i.xlarge"
subnet_id = aws_subnet.workload[count.index % length(aws_subnet.workload)].id
associate_public_ip_address = false
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "couchbase-server-enterprise-index-node-2-${count.index + 1}"
App = "couchbase-server-enterprise"
Role = "index-node"
}
}
resource "aws_ebs_volume" "index_node_2_data" {
count = 2
availability_zone = local.azs[count.index % length(local.azs)]
size = 500
type = "gp3"
encrypted = true
tags = {
Name = "couchbase-server-enterprise-index-node-2-data-${count.index + 1}"
App = "couchbase-server-enterprise"
Role = "index-node"
}
}
resource "aws_volume_attachment" "index_node_2_attach" {
count = 2
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.index_node_2_data[count.index].id
instance_id = aws_instance.index_node_2[count.index].id
}
resource "aws_instance" "query_node_3" {
count = 2
ami = data.aws_ami.debian_12_x86.id
instance_type = "m7i.xlarge"
subnet_id = aws_subnet.workload[count.index % length(aws_subnet.workload)].id
associate_public_ip_address = true
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "couchbase-server-enterprise-query-node-3-${count.index + 1}"
App = "couchbase-server-enterprise"
Role = "query-node"
}
}
resource "aws_ebs_volume" "query_node_3_data" {
count = 2
availability_zone = local.azs[count.index % length(local.azs)]
size = 100
type = "gp3"
encrypted = true
tags = {
Name = "couchbase-server-enterprise-query-node-3-data-${count.index + 1}"
App = "couchbase-server-enterprise"
Role = "query-node"
}
}
resource "aws_volume_attachment" "query_node_3_attach" {
count = 2
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.query_node_3_data[count.index].id
instance_id = aws_instance.query_node_3[count.index].id
}
Reference architecture: Couchbase Server Enterprise for split-services-medium, version Couchbase Server current sizing guidance, retrieved April 13, 2026.
https://docs.couchbase.com/server/current/install/sizing-general.html
Pricing: AWS pricing snapshot, retrieved November 29, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on Couchbase Server sizing guidance and translated into VM-oriented planning tiers for multi-cloud comparison.
Estimate excludes XDCR, backup service overhead, Analytics or Eventing nodes, and storage growth from replicas or compaction beyond the local disks shown.
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Self-managed EDB Postgres Advanced Server for enterprise PostgreSQL workloads with optional primary-standby HA.
Self-managed InfluxDB Enterprise for high-ingest time-series telemetry, operational monitoring, and sensor analytics.