CockroachDB Self-Hosted
Self-hosted CockroachDB v26.x for resilient distributed SQL workloads needing serializable transactions and multi-zone survivability.
Medium — 100 GB to 500 GB graph store with read scale-out
Monthly cost
$1,477.49
Annual cost
$17,730/year
| Compute | $1,177.49 |
| Storage | $300.00 |
| Other | $0.00 |
Saves $357.70/mo (24%) across Standard_D8ps_v6, Standard_D4ps_v6.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Primary | 3 × Standard_D8s_v6 | 8 | 32 | 1 TB ssd |
| Read Replica | 2 × Standard_D4s_v6 | 4 | 16 | 500 GB ssd |
This medium sizing tier fits graph workloads holding 100 GB to 500 GB of data with read scale-out on Azure in westus3. Compute drives the monthly cost at this tier, totaling $1177.49 out of the $1477.49 total across five virtual machines. The baseline topology relies on three primary and two replica nodes to maintain quorum without extra infrastructure.
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 = "neo4j-enterprise-westus3-rg"
location = "westus3"
}
resource "azurerm_virtual_network" "workload" {
name = "neo4j-enterprise-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" "primary_1_nic" {
count = 3
name = "neo4j-enterprise-primary-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" "primary_1" {
count = 3
name = "neo4j-enterprise-primary-1-${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.primary_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 = "neo4j-enterprise"
role = "primary"
}
}
resource "azurerm_managed_disk" "primary_1_data" {
count = 3
name = "neo4j-enterprise-primary-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 = 1000
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "primary_1_attach" {
count = 3
managed_disk_id = azurerm_managed_disk.primary_1_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.primary_1[count.index].id
lun = 0
caching = "None"
}
resource "azurerm_network_interface" "read_replica_2_nic" {
count = 2
name = "neo4j-enterprise-read-replica-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" "read_replica_2" {
count = 2
name = "neo4j-enterprise-read-replica-2-${count.index + 1}"
location = azurerm_resource_group.workload.location
resource_group_name = azurerm_resource_group.workload.name
size = "Standard_D4s_v6"
zone = tostring((count.index % 3) + 1)
admin_username = "azureuser"
network_interface_ids = [azurerm_network_interface.read_replica_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 = "neo4j-enterprise"
role = "read-replica"
}
}
resource "azurerm_managed_disk" "read_replica_2_data" {
count = 2
name = "neo4j-enterprise-read-replica-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 = 500
zone = tostring((count.index % 3) + 1)
}
resource "azurerm_virtual_machine_data_disk_attachment" "read_replica_2_attach" {
count = 2
managed_disk_id = azurerm_managed_disk.read_replica_2_data[count.index].id
virtual_machine_id = azurerm_linux_virtual_machine.read_replica_2[count.index].id
lun = 0
caching = "None"
}
Reference architecture: Neo4j Enterprise for three-primary-two-replica, version Neo4j Operations Manual current clustering guidance, retrieved April 13, 2026.
https://neo4j.com/docs/operations-manual/current/clustering/clustering-advanced/
Pricing: Azure pricing snapshot, retrieved November 16, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on Neo4j Enterprise clustering guidance and translated into VM-based planning tiers for self-managed deployments.
Estimate excludes backups, external load balancing, vector-search accelerators, and any separate analytics clusters.
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.