CockroachDB Self-Hosted
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Medium — 100 GB to 500 GB graph store with read scale-out
Monthly cost
$1,497.34
Annual cost
$17,968/year
| Compute | $1,177.34 |
| Storage | $320.00 |
| Other | $0.00 |
Saves $128.95/mo (9%) across m8g.2xlarge, m8g.xlarge.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Primary | 3 × m7i.2xlarge | 8 | 32 | 1 TB ssd |
| Read Replica | 2 × m7i.xlarge | 4 | 16 | 500 GB ssd |
This medium sizing configuration fits graph stores between 100 GB and 500 GB requiring read scale-out on AWS in us-east-1. Compute drives the monthly cost at this tier, totaling $1177.34 across three m7i.2xlarge primary nodes and two m7i.xlarge replica nodes. Storage adds $320.00 for 4000 GB of total capacity, yielding a combined on-demand total of $1497.34. Operators must manage state replication across the baseline quorum topology without utilizing Google Cloud infrastructure.
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 = "neo4j-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 = "neo4j-enterprise-subnet-${count.index + 1}"
}
}
# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "primary_1" {
count = 3
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 = true
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "neo4j-enterprise-primary-1-${count.index + 1}"
App = "neo4j-enterprise"
Role = "primary"
}
}
resource "aws_ebs_volume" "primary_1_data" {
count = 3
availability_zone = local.azs[count.index % length(local.azs)]
size = 1000
type = "gp3"
encrypted = true
tags = {
Name = "neo4j-enterprise-primary-1-data-${count.index + 1}"
App = "neo4j-enterprise"
Role = "primary"
}
}
resource "aws_volume_attachment" "primary_1_attach" {
count = 3
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.primary_1_data[count.index].id
instance_id = aws_instance.primary_1[count.index].id
}
resource "aws_instance" "read_replica_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 = true
root_block_device {
volume_type = "gp3"
volume_size = 50
encrypted = true
}
tags = {
Name = "neo4j-enterprise-read-replica-2-${count.index + 1}"
App = "neo4j-enterprise"
Role = "read-replica"
}
}
resource "aws_ebs_volume" "read_replica_2_data" {
count = 2
availability_zone = local.azs[count.index % length(local.azs)]
size = 500
type = "gp3"
encrypted = true
tags = {
Name = "neo4j-enterprise-read-replica-2-data-${count.index + 1}"
App = "neo4j-enterprise"
Role = "read-replica"
}
}
resource "aws_volume_attachment" "read_replica_2_attach" {
count = 2
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.read_replica_2_data[count.index].id
instance_id = aws_instance.read_replica_2[count.index].id
}
Reference architecture: Neo4j Enterprise for three-primary-two-replica, version Neo4j Operations Manual current clustering guidance, retrieved April 13, 2026.
https://neo4j.com/docs/operations-manual/current/clustering/clustering-advanced/
Pricing: AWS pricing snapshot, retrieved November 29, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on Neo4j Enterprise clustering guidance and translated into VM-based planning tiers for self-managed deployments.
Estimate excludes backups, external load balancing, vector-search accelerators, and any separate analytics clusters.
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Self-managed Couchbase Server Enterprise for distributed JSON data, caching, and full-text search workloads.
Self-managed EDB Postgres Advanced Server for enterprise PostgreSQL workloads with optional primary-standby HA.