OpenSearch
Self-managed OpenSearch 3.x (Linux Foundation Apache 2.0) for full-text search, log analytics, and vector search pipelines.
Medium — 100 GB to 1 TB hot data on a dedicated master cluster
Monthly cost
$2,066.09
Annual cost
$24,793/year
| Compute | $1,506.09 |
| Storage | $560.00 |
| Other | $0.00 |
Saves $14.59/mo (1%) across c4a-highmem-8, c4a-standard-2, c4a-standard-4.
| Role | Instance | vCPU | GB RAM | Storage |
|---|---|---|---|---|
| Data Node | 3 × n4-highmem-8 | 8 | 64 | 1 TB nvme |
| Master Node | 3 × n4-standard-2 | 2 | 8 | 100 GB ssd |
| Coordinating Node | 2 × n4-standard-4 | 4 | 16 | 100 GB ssd |
This Google Cloud sizing supports Elasticsearch 9.x production workloads handling between 100 GB and 1 TB of hot data on a dedicated master cluster in the us-central1 region. Compute drives the monthly cost at this tier, totaling $1506.09 out of a $2066.09 total expense, led by the n4-highmem-8 data nodes. Operating three separate master nodes ensures quorum stability, while the provisioned coordinating nodes absorb query traffic to protect data node performance.
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" "data_node_1_data" {
count = 3
name = "elasticsearch-oss-data-node-1-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 1000
}
resource "google_compute_instance" "data_node_1" {
count = 3
name = "elasticsearch-oss-data-node-1-${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.data_node_1_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "elasticsearch-oss"
role = "data-node"
}
}
resource "google_compute_disk" "master_node_2_data" {
count = 3
name = "elasticsearch-oss-master-node-2-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 100
}
resource "google_compute_instance" "master_node_2" {
count = 3
name = "elasticsearch-oss-master-node-2-${count.index + 1}"
machine_type = "n4-standard-2"
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.master_node_2_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "elasticsearch-oss"
role = "master-node"
}
}
resource "google_compute_disk" "coordinating_node_3_data" {
count = 2
name = "elasticsearch-oss-coordinating-node-3-data-${count.index + 1}"
type = "hyperdisk-balanced"
zone = local.zones[count.index % length(local.zones)]
size = 100
}
resource "google_compute_instance" "coordinating_node_3" {
count = 2
name = "elasticsearch-oss-coordinating-node-3-${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"
access_config {}
}
attached_disk {
source = google_compute_disk.coordinating_node_3_data[count.index].id
mode = "READ_WRITE"
}
labels = {
app = "elasticsearch-oss"
role = "coordinating-node"
}
}
Reference architecture: Elasticsearch Self-Managed for dedicated-master-medium, version Elasticsearch 9.x self-managed production settings (AGPLv3 restored in 8.16+), retrieved November 11, 2026.
https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html
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 Elastic's published self-managed heap, master quorum, and hot-tier operational guidance.
Estimate excludes Elastic commercial subscriptions, warm/cold/frozen searchable-snapshot tiers, Kibana hosts, ML nodes, and snapshot object storage.
Self-managed OpenSearch 3.x (Linux Foundation Apache 2.0) for full-text search, log analytics, and vector search pipelines.
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.