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,109.06
Annual cost
$25,309/year
| Compute | $1,589.06 |
| Storage | $520.00 |
| Other | $0.00 |
Saves $15.77/mo (1%) across c4a-standard-8, c4a-standard-4.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Data Node | 4 × n4-standard-8 | 8 | 32 | 1 TB ssd |
| Index Node | 2 × n4-standard-4 | 4 | 16 | 500 GB ssd |
| Query Node | 2 × n4-standard-4 | 4 | 16 | 100 GB ssd |
This medium Google Cloud architecture fits workloads managing fifty to two hundred fifty gigabytes of active data with separated services. Compute instances drive the monthly cost, totaling one thousand five hundred eighty-nine dollars and six cents out of two thousand one hundred nine dollars and six cents. The design deploys four n4-standard-8 nodes for data alongside two n4-standard-4 nodes each for index and query roles.
Share the current URL or copy the Google Cloud Terraform / OpenTofu baseline.
# Compatible with Terraform >= 1.6 and OpenTofu >= 1.6
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"
}
locals {
zones = ["us-central1-a", "us-central1-b", "us-central1-c"]
}
# Generated for Google Cloud (us-central1) from the current estimate state.
resource "google_compute_disk" "data_node_1_data" {
count = 4
name = "couchbase-server-enterprise-data-node-1-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 1000
}
resource "google_compute_instance" "data_node_1" {
count = 4
name = "couchbase-server-enterprise-data-node-1-${count.index + 1}"
machine_type = "n4-standard-8"
zone = local.zones[count.index % length(local.zones)]
boot_disk {
initialize_params {
image = "projects/debian-cloud/global/images/family/debian-12"
size = 50
type = "hyperdisk-balanced"
}
}
network_interface {
network = "default"
}
attached_disk {
source = google_compute_disk.data_node_1_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "couchbase-server-enterprise"
role = "data-node"
}
}
resource "google_compute_disk" "index_node_2_data" {
count = 2
name = "couchbase-server-enterprise-index-node-2-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 500
}
resource "google_compute_instance" "index_node_2" {
count = 2
name = "couchbase-server-enterprise-index-node-2-${count.index + 1}"
machine_type = "n4-standard-4"
zone = local.zones[count.index % length(local.zones)]
boot_disk {
initialize_params {
image = "projects/debian-cloud/global/images/family/debian-12"
size = 50
type = "hyperdisk-balanced"
}
}
network_interface {
network = "default"
}
attached_disk {
source = google_compute_disk.index_node_2_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "couchbase-server-enterprise"
role = "index-node"
}
}
resource "google_compute_disk" "query_node_3_data" {
count = 2
name = "couchbase-server-enterprise-query-node-3-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 100
}
resource "google_compute_instance" "query_node_3" {
count = 2
name = "couchbase-server-enterprise-query-node-3-${count.index + 1}"
machine_type = "n4-standard-4"
zone = local.zones[count.index % length(local.zones)]
boot_disk {
initialize_params {
image = "projects/debian-cloud/global/images/family/debian-12"
size = 50
type = "hyperdisk-balanced"
}
}
network_interface {
network = "default"
access_config {}
}
attached_disk {
source = google_compute_disk.query_node_3_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "couchbase-server-enterprise"
role = "query-node"
}
}
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: Google Cloud 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.