CloudEstimate

Size CockroachDB Self-Hosted on Google Cloud

Extra Small — up to 1 TB replicated OLTP data on a three-node cluster

Monthly cost

$531.90

Annual cost

$6,383/year

Line-item breakdown

Compute $276.90
Storage $255.00
Other $0.00

Components provisioned

Role Instance vCPU GB RAM Storage
Node 3 × n2-standard-4 4 16 500 GB

Why this sizing

This Extra Small tier provisions three n2-standard-4 instances, each with 4 vCPU, 16 GB RAM, and 500 GB SSD, to support up to 1 TB of replicated OLTP data. Compute is the primary cost driver at $587 monthly, significantly more than the $255 allocated for storage. A key consideration for this three-node setup

Export

Share the current URL or copy the launch Terraform baseline.

Google Cloud Terraform baseline
terraform {
  required_version = ">= 1.6.0"

  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "~> 6.0"
    }
  }
}

variable "project_id" {
  description = "Google Cloud project ID for this deployment."
  type        = string
  default     = "replace-with-project-id"
}

provider "google" {
  project = var.project_id
  region  = "us-central1"
  zone    = "us-central1-a"
}

# Generated for Google Cloud from the current estimate state.

resource "google_compute_disk" "node_1_data" {
  count = 3
  name  = "cockroachdb-self-hosted-node-1-data-${count.index + 1}"
  type  = "pd-ssd"
  zone  = "us-central1-a"
  size  = 500
}

resource "google_compute_instance" "node_1" {
  count        = 3
  name         = "cockroachdb-self-hosted-node-1-${count.index + 1}"
  machine_type = "n2-standard-4"
  zone         = "us-central1-a"

  boot_disk {
    initialize_params {
      image = "projects/debian-cloud/global/images/family/debian-12"
      size  = 50
      type  = "pd-balanced"
    }
  }

  network_interface {
    network = "default"
    access_config {}
  }
  attached_disk {
    source = google_compute_disk.node_1_data[count.index].id
    mode   = "READ_WRITE"
  }

  labels = {
    app  = "cockroachdb-self-hosted"
    role = "node"
  }
}

Related views

Sources

Reference architecture: CockroachDB Self-Hosted for three-node-small, version CockroachDB stable recommended production settings, retrieved April 13, 2026.

https://www.cockroachlabs.com/docs/stable/recommended-production-settings

Pricing: Google Cloud pricing snapshot, retrieved May 6, 2026.

Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.

Not included in this estimate

  • Vendor licensing and support
  • Professional services
  • Network egress
  • Compliance controls
  • Backup storage
  • Monitoring

Based on CockroachDB self-hosted production recommendations and expressed as VM-based planning tiers.

Estimate excludes load balancers, backups, changefeeds, geo-partitioned layouts, and network transfer between regions or zones.

Other workloads on Google Cloud