CockroachDB Self-Hosted
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Medium — 100,000 to 400,000 writes per second and 1 to 5 million series
Monthly cost
$2,050.10
Annual cost
$24,601/year
| Compute | $1,398.10 |
| Storage | $652.00 |
| Other | $0.00 |
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Meta Node | 3 × m7i.large | 2 | 8 | 50 GB ssd |
| Data Node | 4 × m7i.2xlarge | 8 | 32 | 2 TB ssd |
This medium replication factor two sizing for InfluxDB Enterprise on AWS supports workloads handling one to five million series and one hundred to four hundred thousand writes per second. Compute serves as the primary monthly cost driver at one thousand three hundred ninety-eight dollars and ten cents out of a two thousand fifty-dollar and ten-cent total. Four m7i.2xlarge data nodes power storage and ingestion while three m7i.large meta nodes maintain cluster consensus. Platform engineers must provision eight gigabytes of RAM per meta node to ensure stable coordination across the cluster.
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 = "influxdb-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 = "influxdb-enterprise-subnet-${count.index + 1}"
}
}
# Generated for AWS (us-east-1) from the current estimate state.
resource "aws_instance" "meta_node_1" {
count = 3
ami = data.aws_ami.debian_12_x86.id
instance_type = "m7i.large"
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 = "influxdb-enterprise-meta-node-1-${count.index + 1}"
App = "influxdb-enterprise"
Role = "meta-node"
}
}
resource "aws_ebs_volume" "meta_node_1_data" {
count = 3
availability_zone = local.azs[count.index % length(local.azs)]
size = 50
type = "gp3"
encrypted = true
tags = {
Name = "influxdb-enterprise-meta-node-1-data-${count.index + 1}"
App = "influxdb-enterprise"
Role = "meta-node"
}
}
resource "aws_volume_attachment" "meta_node_1_attach" {
count = 3
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.meta_node_1_data[count.index].id
instance_id = aws_instance.meta_node_1[count.index].id
}
resource "aws_instance" "data_node_2" {
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 = "influxdb-enterprise-data-node-2-${count.index + 1}"
App = "influxdb-enterprise"
Role = "data-node"
}
}
resource "aws_ebs_volume" "data_node_2_data" {
count = 4
availability_zone = local.azs[count.index % length(local.azs)]
size = 2000
type = "gp3"
encrypted = true
tags = {
Name = "influxdb-enterprise-data-node-2-data-${count.index + 1}"
App = "influxdb-enterprise"
Role = "data-node"
}
}
resource "aws_volume_attachment" "data_node_2_attach" {
count = 4
device_name = "/dev/sdf"
volume_id = aws_ebs_volume.data_node_2_data[count.index].id
instance_id = aws_instance.data_node_2[count.index].id
}
Reference architecture: InfluxDB Enterprise for medium-rf2, version InfluxDB Enterprise v1 TSM sizing (with InfluxDB 3 Enterprise FDAP context), retrieved November 11, 2026.
https://docs.influxdata.com/enterprise_influxdb/v1/guides/hardware_sizing/
Pricing: AWS pricing snapshot, retrieved November 29, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on InfluxDB Enterprise v1 published hardware sizing guidelines normalized to cloud VM shapes.
Estimate excludes commercial InfluxDB Enterprise or InfluxDB 3 Enterprise licensing, object-store retention tiers, Kapacitor, and cross-zone network transfer.
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.