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
$6,257.96
Annual cost
$75,096/year
| Compute | $2,574.71 |
| Storage | $3,683.25 |
| Other | $0.00 |
Saves $779.93/mo (12%) across Standard_D2ps_v6, Standard_D8ps_v6.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Master | 3 × Standard_D2s_v6 | 2 | 8 | 50 GB ssd |
| Filer S3 | 2 × Standard_D8s_v6 | 8 | 32 | 300 GB nvme |
| Volume Server | 6 × Standard_D8s_v6 | 8 | 32 | 8 TB ssd |
This medium sizing supports a forty-eight terabyte high-throughput S3 object and AI dataset storage workload using dedicated filers on Azure westus3. Storage drives the monthly cost at thirty-six hundred eighty-three dollars and twenty-five cents across six volume servers. Disabling high availability removes redundancy across the cluster. Migration to Google Cloud requires revalidating these on-demand compute and storage commitments.
Share the current URL or copy the Azure Terraform / OpenTofu baseline.
# Compatible with Terraform >= 1.6 and OpenTofu >= 1.6
terraform {
required_version = ">= 1.6.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "~> 4.0"
}
}
}
variable "ssh_public_key" {
description = "SSH public key installed on Linux virtual machines."
type = string
default = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG5vplaceholderreplacebeforeapply00000000000 azureuser@example"
}
provider "azurerm" {
features {}
}
resource "azurerm_resource_group" "workload" {
name = "seaweedfs-westus3-rg"
location = "westus3"
}
resource "azurerm_virtual_network" "workload" {
name = "seaweedfs-vnet"
address_space = ["10.42.0.0/16"]
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
}
resource "azurerm_subnet" "workload" {
name = "workload-internal"
resource_group_name = azurerm_resource_group.workload.name
virtual_network_name = azurerm_virtual_network.workload.name
address_prefixes = ["10.42.1.0/24"]
}
# Generated for Azure (westus3) from the current estimate state.
resource "azurerm_network_interface" "master_1_nic" {
count = 3
name = "seaweedfs-master-1-nic-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
ip_configuration {
name = "internal"
subnet_id = azurerm_subnet.workload.id
private_ip_address_allocation = "Dynamic"
}
}
resource "azurerm_linux_virtual_machine" "master_1" {
count = 3
name = "seaweedfs-master-1-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D2s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.master_1_nic[count.index].id]
admin_ssh_key {
username = "azureuser"
public_key = var.ssh_public_key
}
os_disk {
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 50
}
source_image_reference {
publisher = "Debian"
offer = "debian-12"
sku = "12-gen2"
version = "latest"
}
tags = {
app = "seaweedfs"
role = "master"
}
}
resource "azurerm_managed_disk" "master_1_data" {
count = 3
name = "seaweedfs-master-1-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "StandardSSD_LRS"
create_option = "Empty"
disk_size_gb = 50
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "master_1_attach" {
count = 3
managed_disk_id = azurerm_managed_disk.master_1_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.master_1[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "filer_s3_2_nic" {
count = 2
name = "seaweedfs-filer-s3-2-nic-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
ip_configuration {
name = "internal"
subnet_id = azurerm_subnet.workload.id
private_ip_address_allocation = "Dynamic"
}
}
resource "azurerm_linux_virtual_machine" "filer_s3_2" {
count = 2
name = "seaweedfs-filer-s3-2-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D8s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.filer_s3_2_nic[count.index].id]
admin_ssh_key {
username = "azureuser"
public_key = var.ssh_public_key
}
os_disk {
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 50
}
source_image_reference {
publisher = "Debian"
offer = "debian-12"
sku = "12-gen2"
version = "latest"
}
tags = {
app = "seaweedfs"
role = "filer-s3"
}
}
resource "azurerm_managed_disk" "filer_s3_2_data" {
count = 2
name = "seaweedfs-filer-s3-2-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "Premium_LRS"
create_option = "Empty"
disk_size_gb = 300
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "filer_s3_2_attach" {
count = 2
managed_disk_id = azurerm_managed_disk.filer_s3_2_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.filer_s3_2[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "volume_server_3_nic" {
count = 6
name = "seaweedfs-volume-server-3-nic-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
ip_configuration {
name = "internal"
subnet_id = azurerm_subnet.workload.id
private_ip_address_allocation = "Dynamic"
}
}
resource "azurerm_linux_virtual_machine" "volume_server_3" {
count = 6
name = "seaweedfs-volume-server-3-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D8s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.volume_server_3_nic[count.index].id]
admin_ssh_key {
username = "azureuser"
public_key = var.ssh_public_key
}
os_disk {
caching = "ReadWrite"
storage_account_type = "StandardSSD_LRS"
disk_size_gb = 50
}
source_image_reference {
publisher = "Debian"
offer = "debian-12"
sku = "12-gen2"
version = "latest"
}
tags = {
app = "seaweedfs"
role = "volume-server"
}
}
resource "azurerm_managed_disk" "volume_server_3_data" {
count = 6
name = "seaweedfs-volume-server-3-data-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
storage_account_type = "StandardSSD_LRS"
create_option = "Empty"
disk_size_gb = 8000
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "volume_server_3_attach" {
count = 6
managed_disk_id = azurerm_managed_disk.volume_server_3_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.volume_server_3[count.index].id
lun = 0
caching = "None"
}
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: Azure 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.