CloudEstimate

Size Temporal Self-Hosted on Google Cloud

Medium — 150 to 1,000 state transitions per second with split History, Matching, and Frontend services

Monthly cost

$2,951.58

Annual cost

$35,419/year

Line-item breakdown

Compute $2,321.58
Storage $630.00
Other $0.00
Arm64 option (Google Axion (C4A)) $2,928.45/mo

Saves $23.13/mo (1%) across c4a-standard-8, c4a-highcpu-4, c4a-standard-4.

Components provisioned

Role Instance vCPU GB RAM Storage
History Service 3 × n4-standard-8 8 32 50 GB ssd
Matching Frontend 3 × n4-highcpu-4 4 8 50 GB ssd
Persistence Db 3 × n4-standard-8 8 32 1 TB nvme
Visibility Search 3 × n4-standard-4 4 16 300 GB ssd

Why this sizing

This medium Google Cloud architecture supports workloads processing 150 to 1,000 state transitions per second using split History, Matching, and Frontend services. Compute represents the primary monthly cost driver at $2321.58 across twelve provisioned instances. High availability is disabled, meaning a single node failure causes service disruption for the deployment.

Export

Share the current URL or copy the Google Cloud Terraform / OpenTofu baseline.

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" "history_service_1_data" {
  count = 3
  name  = "temporal-history-service-1-data-${count.index + 1}"
  type  = "hyperdisk-balanced"
  zone  = local.zones[count.index % length(local.zones)]
  size  = 50
}

resource "google_compute_instance" "history_service_1" {
  count        = 3
  name         = "temporal-history-service-1-${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.history_service_1_data[count.index].id
    mode   = "READ_WRITE"
  }

  labels = {
    app  = "temporal"
    role = "history-service"
  }
}

resource "google_compute_disk" "matching_frontend_2_data" {
  count = 3
  name  = "temporal-matching-frontend-2-data-${count.index + 1}"
  type  = "hyperdisk-balanced"
  zone  = local.zones[count.index % length(local.zones)]
  size  = 50
}

resource "google_compute_instance" "matching_frontend_2" {
  count        = 3
  name         = "temporal-matching-frontend-2-${count.index + 1}"
  machine_type = "n4-highcpu-4"
  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.matching_frontend_2_data[count.index].id
    mode   = "READ_WRITE"
  }

  labels = {
    app  = "temporal"
    role = "matching-frontend"
  }
}

resource "google_compute_disk" "persistence_db_3_data" {
  count = 3
  name  = "temporal-persistence-db-3-data-${count.index + 1}"
  type  = "hyperdisk-balanced"
  zone  = local.zones[count.index % length(local.zones)]
  size  = 1000
}

resource "google_compute_instance" "persistence_db_3" {
  count        = 3
  name         = "temporal-persistence-db-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.persistence_db_3_data[count.index].id
    mode   = "READ_WRITE"
  }

  labels = {
    app  = "temporal"
    role = "persistence-db"
  }
}

resource "google_compute_disk" "visibility_search_4_data" {
  count = 3
  name  = "temporal-visibility-search-4-data-${count.index + 1}"
  type  = "hyperdisk-balanced"
  zone  = local.zones[count.index % length(local.zones)]
  size  = 300
}

resource "google_compute_instance" "visibility_search_4" {
  count        = 3
  name         = "temporal-visibility-search-4-${count.index + 1}"
  machine_type = "n4-standard-4"
  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.visibility_search_4_data[count.index].id
    mode   = "READ_WRITE"
  }

  labels = {
    app  = "temporal"
    role = "visibility-search"
  }
}

Related views

Sources

Reference architecture: Temporal Self-Hosted for split-services-medium, version Temporal Server 1.26+ production deployment checklist, retrieved November 11, 2026.

https://docs.temporal.io/self-hosted-guide/Checklist

Pricing: Google Cloud pricing snapshot, retrieved November 22, 2026.

Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.

Not included in this estimate

  • Vendor licensing and support
  • Professional services
  • Network egress
  • Compliance controls
  • Backup storage
  • Monitoring

Based on Temporal's self-hosted production checklist and split-role scaling guidance (MIT license).

Estimate excludes application SDK worker fleets (which execute user workflow/activity code), archival buckets, and multi-region Namespace replication.

Related workloads on Google Cloud