Temporal Self-Hosted
Self-hosted Temporal durable execution cluster for microservice workflows, AI agent orchestration, and long-running sagas.
Medium — 2,000 to 5,000 users (100 RPS)
Monthly cost
$2,809.98
Annual cost
$33,720/year
| Compute | $1,944.98 |
| Storage | $865.00 |
| Other | $0.00 |
Saves $19.36/mo (1%) across c4a-highcpu-8, c4a-standard-4, c4a-standard-8, c4a-highmem-8.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Webservice | 3 × n4-highcpu-8 | 8 | 16 | 100 GB ssd |
| Sidekiq | 2 × n4-standard-4 | 4 | 16 | 100 GB ssd |
| Gitaly | 2 × n4-standard-8 | 8 | 32 | 2 TB nvme |
| Database | 1 × n4-highmem-8 | 8 | 64 | 1 TB ssd |
| Cache | 1 × n4-standard-4 | 4 | 16 | 50 GB ssd |
| Object Storage | 1 × object-bucket | — | — | 1.5 TB object |
This Google Cloud deployment supports up to 5,000 users at 100 requests per second for GitLab Self-Managed architectures. Storage drives the monthly cost at this tier, totaling $865.00 out of $2809.98 per month due to the high-capacity Gitaly and object storage requirements. High availability is disabled across all components, which reduces infrastructure costs but introduces operational risk during node failures.
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" "webservice_1_data" {
count = 3
name = "gitlab-webservice-1-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 100
}
resource "google_compute_instance" "webservice_1" {
count = 3
name = "gitlab-webservice-1-${count.index + 1}"
machine_type = "n4-highcpu-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.webservice_1_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "gitlab"
role = "webservice"
}
}
resource "google_compute_disk" "sidekiq_2_data" {
count = 2
name = "gitlab-sidekiq-2-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 100
}
resource "google_compute_instance" "sidekiq_2" {
count = 2
name = "gitlab-sidekiq-2-${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.sidekiq_2_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "gitlab"
role = "sidekiq"
}
}
resource "google_compute_disk" "gitaly_3_data" {
count = 2
name = "gitlab-gitaly-3-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 2000
}
resource "google_compute_instance" "gitaly_3" {
count = 2
name = "gitlab-gitaly-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.gitaly_3_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "gitlab"
role = "gitaly"
}
}
resource "google_compute_disk" "database_4_data" {
count = 1
name = "gitlab-database-4-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 1000
}
resource "google_compute_instance" "database_4" {
count = 1
name = "gitlab-database-4-${count.index + 1}"
machine_type = "n4-highmem-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.database_4_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "gitlab"
role = "database"
}
}
resource "google_compute_disk" "cache_5_data" {
count = 1
name = "gitlab-cache-5-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 50
}
resource "google_compute_instance" "cache_5" {
count = 1
name = "gitlab-cache-5-${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.cache_5_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "gitlab"
role = "cache"
}
}
resource "google_storage_bucket" "object_storage_6" {
count = 1
name = "${var.project_id}-gitlab-object-storage-6-${count.index + 1}"
location = "us-central1"
storage_class = "STANDARD"
uniform_bucket_level_access = true
labels = {
app = "gitlab"
role = "object-storage"
estimated_gb = "1500"
}
}
Reference architecture: GitLab Self-Managed for 5k-users, version GitLab 18.x Reference Architectures, retrieved November 11, 2026.
https://docs.gitlab.com/administration/reference_architectures/
Pricing: Google Cloud pricing snapshot, retrieved November 29, 2026.
Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.
Based on GitLab 18.x published reference architectures (1K through 25K users) normalized to VM-backed Linux Package / Hybrid footprints.
Estimate excludes GitLab Ultimate/Premium licensing, CI/CD runner pools, OpenSearch Advanced Search nodes, GitLab Duo AI add-ons, and backup storage.
Self-hosted Temporal durable execution cluster for microservice workflows, AI agent orchestration, and long-running sagas.
Self-managed Confluent Platform 8.x (Apache Kafka 4.x KRaft) for durable event streaming, schema governance, and Connect pipelines.
Self-managed ClickHouse columnar OLAP and observability analytics cluster with ClickHouse Keeper coordination.