CockroachDB Self-Hosted
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Medium — 48 TB high-throughput S3 object and AI dataset storage with dedicated filers
Monthly cost
$7,234.39
Annual cost
$86,813/year
| Compute | $2,317.38 |
| Storage | $4,917.00 |
| Other | $0.00 |
Saves $23.00/mo (0%) across c4a-standard-2, c4a-standard-8.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Master | 3 × n4-standard-2 | 2 | 8 | 50 GB ssd |
| Filer S3 | 2 × n4-standard-8 | 8 | 32 | 300 GB nvme |
| Volume Server | 6 × n4-standard-8 | 8 | 32 | 8 TB ssd |
This Google Cloud deployment fits a 48 TB high-throughput S3 object and AI dataset storage workload running SeaweedFS. Storage drives the monthly cost at this tier, accounting for $4917.00 of the $7234.39 total expenditure. High availability is disabled for this configuration, meaning a single hardware failure in the volume servers causes downtime.
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" "master_1_data" {
count = 3
name = "seaweedfs-master-1-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 50
}
resource "google_compute_instance" "master_1" {
count = 3
name = "seaweedfs-master-1-${count.index + 1}"
machine_type = "n4-standard-2"
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.master_1_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "seaweedfs"
role = "master"
}
}
resource "google_compute_disk" "filer_s3_2_data" {
count = 2
name = "seaweedfs-filer-s3-2-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 300
}
resource "google_compute_instance" "filer_s3_2" {
count = 2
name = "seaweedfs-filer-s3-2-${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.filer_s3_2_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "seaweedfs"
role = "filer-s3"
}
}
resource "google_compute_disk" "volume_server_3_data" {
count = 6
name = "seaweedfs-volume-server-3-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 8000
}
resource "google_compute_instance" "volume_server_3" {
count = 6
name = "seaweedfs-volume-server-3-${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.volume_server_3_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "seaweedfs"
role = "volume-server"
}
}
Reference architecture: SeaweedFS Object Store for dedicated-filer-cluster, version SeaweedFS 3.80+ production Raft master, volume & S3 filer setup, retrieved November 11, 2026.
https://github.com/seaweedfs/seaweedfs/wiki/Production-Setup
Pricing: Google Cloud pricing snapshot, retrieved November 22, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on SeaweedFS production deployment guidance separating 3-node Raft masters, stateless S3/Filer gateways, filer metadata backing stores, and storage-dense volume servers.
Estimate models raw block storage before replication or Reed-Solomon 10+4 erasure coding overhead and excludes cross-region S3 egress.
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.