CockroachDB Self-Hosted
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Medium — six-node RF3 cluster for mainstream distributed OLTP
Monthly cost
$4,430.28
Annual cost
$53,163/year
| Compute | $3,530.28 |
| Storage | $900.00 |
| Other | $0.00 |
Saves $1,068.72/mo (24%) across Standard_D16ps_v6.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Master Tserver | 3 × Standard_D16s_v6 | 16 | 64 | 2 TB ssd |
| Tserver | 3 × Standard_D16s_v6 | 16 | 64 | 2 TB ssd |
This medium sizing tier fits mainstream distributed OLTP workloads requiring a six-node replication factor three cluster on Azure in westus3. Compute drives the monthly cost at this tier, totaling three thousand five hundred thirty dollars and twenty-eight cents for six Standard_D16s_v6 instances. Storage adds nine hundred dollars for twelve terabytes of attached SSD capacity across all nodes. High availability is maintained through built-in quorum replication across the six nodes without external dependencies.
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 = "yugabytedb-self-hosted-westus3-rg"
location = "westus3"
}
resource "azurerm_virtual_network" "workload" {
name = "yugabytedb-self-hosted-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_tserver_1_nic" {
count = 3
name = "yugabytedb-self-hosted-master-tserver-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_tserver_1" {
count = 3
name = "yugabytedb-self-hosted-master-tserver-1-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D16s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.master_tserver_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 = "yugabytedb-self-hosted"
role = "master-tserver"
}
}
resource "azurerm_managed_disk" "master_tserver_1_data" {
count = 3
name = "yugabytedb-self-hosted-master-tserver-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 = 2000
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "master_tserver_1_attach" {
count = 3
managed_disk_id = azurerm_managed_disk.master_tserver_1_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.master_tserver_1[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "tserver_2_nic" {
count = 3
name = "yugabytedb-self-hosted-tserver-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" "tserver_2" {
count = 3
name = "yugabytedb-self-hosted-tserver-2-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D16s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.tserver_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 = "yugabytedb-self-hosted"
role = "tserver"
}
}
resource "azurerm_managed_disk" "tserver_2_data" {
count = 3
name = "yugabytedb-self-hosted-tserver-2-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 = 2000
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "tserver_2_attach" {
count = 3
managed_disk_id = azurerm_managed_disk.tserver_2_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.tserver_2[count.index].id
lun = 0
caching = "None"
}
Reference architecture: YugabyteDB Self-Hosted for rf3-six-node, version YugabyteDB v2025.2 LTS deployment checklist, retrieved April 13, 2026.
https://docs.yugabyte.com/stable/deploy/checklist/
Pricing: Azure pricing snapshot, retrieved November 29, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on YugabyteDB deployment checklist guidance and public RF3 deployment examples, translated into VM-based planning tiers.
Estimate excludes backup controllers, xCluster replication, connection-manager sidecars, and multi-region networking or quorum placement costs.
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.