CockroachDB Self-Hosted
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Medium — 250 GB to 1 TB working set on a production replica set
Monthly cost
$1,094.53
Annual cost
$13,134/year
| Compute | $794.53 |
| Storage | $300.00 |
| Other | $0.00 |
Saves $7.88/mo (1%) across c4a-standard-8.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Replica Set Member | 3 × n4-standard-8 | 8 | 32 | 1 TB ssd |
This medium sizing for MongoDB Enterprise Advanced on Google Cloud supports production working sets between 250 GB and 1 TB using three replica set members in us-central1. Compute using the n4-standard-8 family drives the primary monthly cost of $794.53, while storage contributes $300.00 for a total of $1094.53. Operating on-demand requires manual scaling and incurs higher rates than committed use contracts.
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" "replica_set_member_1_data" {
count = 3
name = "mongodb-enterprise-advanced-replica-set-member-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 1000
}
resource "google_compute_instance" "replica_set_member_1" {
count = 3
name = "mongodb-enterprise-advanced-replica-set-member-${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"
access_config {}
}
attached_disk {
source = google_compute_disk.replica_set_member_1_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "mongodb-enterprise-advanced"
role = "replica-set-member"
}
}
Reference architecture: MongoDB Enterprise Advanced for replica-set-medium, version MongoDB Manual current self-managed production guidance, retrieved April 13, 2026.
https://www.mongodb.com/docs/manual/administration/production-notes/
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 MongoDB self-managed production notes and common MongoDB production topologies, translated into VM-style planning baselines.
Estimate excludes Enterprise Advanced licensing, Ops Manager infrastructure, backups, analytics nodes, and cross-region disaster recovery.
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.