Free audit

View Audit Scope
OpenSearchShard sizing, ISM tiering, k-NN vectors & AWS cost tuning

OpenSearch Consulting Services & Architecture

JusDB provides OpenSearch consulting services and production search operations for log analytics, full-text search, and k-NN vector workloads on Amazon OpenSearch Service, Kubernetes, and self-managed clusters. Search engineers right-size shards to 20-50 GB, design Hot-Warm-Cold-UltraWarm Index State Management (ISM) policies, tune G1GC JVM heaps, and execute migrations from Elasticsearch under your service agreement.

The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed. Or request a free audit of one database instance.

  • NDA before access
  • Read-only by default
  • Written scope before work starts

OpenSearch version & platform status

Select the environment you run

OpenSearch 2.x with Segment Replication and Searchable Snapshots

Current 2.x production

Production Apache 2.0 release featuring S3 Searchable Snapshots, Segment Replication (cutting replica CPU by up to 40%), and FAISS/NMSLIB HNSW vector search.

Review OpenSearch consulting scope

Release lifecycle checked against the OpenSearch project documentation and AWS support calendar.

Deployments supported
Amazon OpenSearch Service (Managed & Serverless), OpenSearch Kubernetes Operator, EC2/GCE/Azure VMs, and bare metal
Response SLA
15 mins for a critical (P1) incident, 24/7. See details
Coverage hours
24/7 support

Selected clients

  • Innoviti
  • Blitz
  • Freecharge
  • Nango
  • Recochain
  • Screen Facts
  • Nexora
  • WeCredit

When teams call us

Common OpenSearch production problems we fix

We fix oversharded clusters with thousands of tiny shards, 429 parent circuit breaker trips, RED unassigned shard states, k-NN off-heap OOM crashes, and dynamic mapping explosions.

Common OpenSearch production symptoms, root causes, and where JusDB engineers start
SymptomWhat is usually happeningWhere we start
OVERSHARDING_HEAP_PRESSURECluster holds 15,000+ tiny (< 1 GB) shards and ClusterManager tasks time outDaily indices default to 5 primaries and 1 replica regardless of volume, bloating Lucene segment metadata on the JVM heap and stalling cluster state updates.Audit _cat/shards and _cluster/stats, consolidate indices via ISM rollover at 30-50 GB per shard, and run _shrink or _reindex on historical indices.
CIRCUIT_BREAKER_429Queries and bulk indexing fail with 429 [parent] Data too largeUnbounded aggregations on high-cardinality text/keyword fields or oversized _bulk payloads push JVM heap usage past the 95% parent circuit breaker.Inspect _nodes/stats/breaker andjvm.mem.heap_used_percent, cap bulk payload sizes to 5-15 MB, and disable fielddata on analyzed text fields.
CLUSTER_RED_UNASSIGNEDCluster health turns RED or YELLOW with unassigned shards after restartDisk watermarks (85%/90%), max_retries exhaustion, or missing replica awareness attributes block the allocator from assigning shards.Run GET _cluster/allocation/explain, clear disk watermark pressure or stale translogs, and re-enable cluster.routing.allocation.enable.
KNN_OFF_HEAP_OOMData nodes crash with OS OOM-killer during HNSW vector queriesFAISS and NMSLIB k-NN graphs reside in native off-heap C++ memory, competing with the 50% JVM heap allocation and OS page cache.Check _plugins/_knn/stats, tune knn.memory.circuit_breaker.limit, apply Product Quantization (PQ) or FP16 scalar quantization, and right-size node RAM.
DOCUMENT_REP_CPU_SPIKEReplica shards consume as much indexing CPU as primary shardsDefault DOCUMENT replication forces every replica shard to parse, analyze, and index raw JSON documents independently.Enable replication.type: SEGMENT on OpenSearch 2.x indices so primaries copy built Lucene segments directly to replicas.
MAPPING_EXPLOSION_1000Ingestion fails with Limit of total fields [1000] has been exceededUncontrolled dynamic JSON payloads create hundreds of unique field names per microservice deploy, bloating cluster state.Set dynamic: strict or flat_object mappings for arbitrary JSON sub-objects and standardize index templates with composable _index_template rules.

SLA response times and escalation

How fast does JusDB respond to an OpenSearch incident?

24/7 support. SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins.

SLA response times by severity

  • 15 mins

    P1 · Critical

    P1 incidents

  • 30 mins

    P2 · High

    P2 incidents

  • 60 mins

    P3 · Medium

    P3 incidents

SeverityResponse SLADefinitionChannel & coverage
P1 · Critical15 minsProduction database down, primary unreachable, data corruption risk, or active failover event.24/7 · Direct PagerDuty, Opsgenie, or phone page plus incident bridge
P2 · High30 minsSevere latency spike, replication lag climbing rapidly, connection exhaustion, or degraded HA node.24/7 · On-call alert plus shared Slack or Teams channel
P3 · Medium60 minsNon-critical slow query regression, staging issue, backup warning, configuration question, or planned operational request.24/7 · Shared Slack or Teams channel or support ticket

Our engineering team is in India (IST, UTC+5:30) and provides 24/7 support.

Response means an on-call engineer is working the incident, not an automated reply.

What happens when a P1 OpenSearch incident pages

  1. Page

    Direct alert or Slack page to the on-call OpenSearch engineer

    No tier-1 queue; an on-call engineer triages 24/7.

  2. Triage

    Read-only _cluster/allocation/explain, _nodes/stats, and hot_threads

    Isolate unassigned shards, JVM heap breakers, or runaway aggregations.

  3. Mitigate

    Restore GREEN cluster state and clear circuit breaker pressure

    Re-route stuck shards, throttle bulk queues, or cancel expensive tasks.

  4. Review

    Written post-incident report and ISM / shard remediation

    Permanent rollover, template, and JVM configuration fixes delivered in writing.

Scope of OpenSearch consulting

What does an OpenSearch consulting engagement cover?

We cover shard sizing and ISM lifecycle automation, JVM heap and Segment Replication tuning, BM25 and k-NN vector relevance, Elasticsearch migrations, and Kubernetes deployments.

  • Shard sizing & ISM Hot-Warm-Cold tiering

    We eliminate oversharding and automate index lifecycles from hot NVMe ingest nodes down to Warm, UltraWarm, and S3 Searchable Snapshots.

    • ISM rollover policies targeting 20-50 GB per shard for logs and 10-30 GB for search
    • Automated force-merge, replica reduction, and S3 snapshot transitions

    Index State Management · Rollover · Searchable Snapshots · UltraWarm

    Read the shard sizing & ILM/ISM guide
  • JVM heap, G1GC & Segment Replication tuning

    Stabilize tail latency and indexing throughput by balancing JVM heap, Lucene filesystem cache, thread pools, and Segment Replication.

    • 31 GB compressed-OOPs JVM heap ceiling and G1GC pause-time calibration
    • Segment Replication enablement to cut replica indexing CPU by 30-40%

    G1GC · Segment Replication · Circuit Breakers · Thread Pools

    Explore OpenSearch support services
  • Mappings, analyzers & relevance engineering

    Design strict composable index templates, custom tokenizers, BM25 relevance scoring, and hybrid lexical + semantic search pipelines.

    • Elimination of dual text + keyword mapping bloat on non-searched fields
    • Search pipeline normalization combining BM25 lexical scores with k-NN vectors

    _index_template · BM25 · Hybrid Search Pipelines · flat_object

  • k-NN vector search (FAISS / NMSLIB / Lucene)

    Size and tune HNSW and IVF vector indexes so semantic search and RAG workloads stay within native off-heap memory budgets.

    • FAISS HNSW ef_search, ef_construction, and M parameter optimization
    • Scalar quantization (FP16/INT8) and Product Quantization (PQ) memory compression

    k-NN Plugin · FAISS HNSW · Product Quantization · Neural Search

    Vector databases compared: pgvector, Pinecone and Weaviate
  • Elasticsearch to OpenSearch migrations

    Migrate self-managed Elasticsearch or Elastic Cloud clusters to OpenSearch or Amazon OpenSearch Service with snapshot/reindex pipelines.

    • Compatibility assessment for REST clients, ILM-to-ISM policies, and Kibana-to-Dashboards
    • S3 snapshot restore, remote reindex, and dual-write Logstash/Vector cutover

    Snapshot & Restore · Remote Reindex · OpenSearch Dashboards · Vector

    Read Elasticsearch vs OpenSearch comparison
  • Kubernetes Operator & security hardening

    Deploy OpenSearch on Kubernetes or harden TLS, fine-grained access control (FGAC), SAML/OIDC, and cross-cluster replication (CCR).

    • OpenSearch Kubernetes Operator with dedicated ClusterManager, Data, and Ingest pools
    • Document-level and field-level security (DLS/FLS) and audit logging

    OpenSearch Operator · Security Plugin · CCR · SAML / OIDC

    Explore OpenSearch on Kubernetes

Shard lifecycle, tiering, and written evidence

How ISM and 30-50 GB shards stabilize OpenSearch heap

Thousands of sub-gigabyte shards starve the JVM heap with segment pointers before a single query runs. See how ISM tiering and dedicated k-NN pools transform cluster stability.

Three OpenSearch shard and storage tiering architectures

Switch between states to inspect shard density, JVM heap, and query routing.

Ingest and search query routing

Ingest & Search -> Overloaded Hot Nodes holding 90 days of tiny shards

Heap & cost bloat
  • ClusterManager Quorum

    cm-01..03 (Cluster state > 180 MB)

    Pending tasks queue up on mapping updates

  • Hot Data Nodes (All Data)

    data-hot-01..12 (1,000 shards per node)

    88% JVM heap consumed by segment metadata

  • Parent Circuit Breaker

    429 Too Many Requests during aggs

    Frequent GC pauses > 2 seconds

Every microservice creates daily indices with 5 primaries + 1 replica (10 shards/day). After 90 days, 12,000 tiny 200 MB shards sit on expensive hot NVMe nodes and exhaust JVM heap.

Example written finding from an Amazon OpenSearch Service shard & cost auditSample deliverable

Finding

14,200 daily microservice shards hold JVM heap at 86% and trigger 429 drops

48 microservice log streams created separate daily indices with 5 primary shards each, averaging 180 MB per shard. Consolidating streams into 4 ISM rollover aliases (40 GB/shard) and enabling Segment Replication cut total shard count to 640 and allowed downsizing from 18 to 10 r6gd data nodes.

Active shard count14,200 → 640
Baseline JVM heap86% → 44%

1. Read-only diagnostic check of shard density and small shards

GET _cat/shards?v&h=index,shard,prirep,state,store,node&s=store:asc
GET _nodes/stats/jvm,breaker?filter_path=nodes.*.name,nodes.*.jvm.mem.heap_used_percent,nodes.*.breakers.parent

2. Composable index template with Segment Replication & ISM policy

PUT _index_template/logs_app_template
{
  "index_patterns": ["logs-app-*"],
  "template": {
    "settings": {
      "number_of_shards": 3,
      "number_of_replicas": 1,
      "replication.type": "SEGMENT",
      "plugins.index_state_management.policy_id": "hot_warm_cold_40gb",
      "plugins.index_state_management.rollover_alias": "logs-app-write"
    }
  }
}

Your team and ours

What Amazon OpenSearch Service still leaves to your team

Managed cloud databases automate much of the infrastructure layer, but your team still owns query performance, capacity, cost, and incident decisions.

Who handles each part of running OpenSearch on Amazon OpenSearch Service versus self-managed infrastructure
AreaManaged cloud (Amazon OpenSearch Service / Aiven)Your own cloud VMs, bare metal, or Kubernetes
Shard sizing (20-50 GB), index templates, and mapping governanceAmazon OpenSearch Service provisions domains, but oversharding and dynamic mapping explosions still crash managed data nodes.JusDB designs composable index templates, rollover aliases, and strict field mappings.
Index State Management (ISM) and UltraWarm / S3 snapshot policiesAWS provides UltraWarm and Cold tiers, but your team writes and debugs the ISM JSON state machines.JusDB authors and monitors ISM policies for rollover, force-merge, warm migration, and retention.
JVM heap, circuit breakers, and Segment ReplicationJVM flags are locked on managed domains, so query optimization and shard consolidation are the only ways to stop 429 breaker trips.JusDB tunes jvm.options, thread pools, Segment Replication, and slow-search queries.
k-NN vector quantization and hybrid search pipelinesYour engineering team selects FAISS vs NMSLIB parameters, quantization levels, and scoring weights.JusDB benchmarks recall vs p95 latency and configures FAISS HNSW quantization and search pipelines.
Upgrades, snapshot verification, and 24/7 incident responseBlue/green domain upgrades can stall for hours if unassigned shards or incompatible plugins exist.JusDB runs pre-upgrade checks, rolling upgrades, S3 snapshot restores, and 24/7 P1 incident response.

Your team keeps control

  • Set business priorities, application requirements, and release plans
  • Approve production changes, except routine actions you have pre-approved
  • Own your cloud accounts, access policies, and vendor relationships
  • Decide when maintenance can happen and how quickly service must recover
  • Move the work in-house or to another provider after your agreement's notice period, with your data returned or deleted and the transition help your agreement sets out (Terms, section 8)

JusDB handles the agreed OpenSearch work

  • Monitor database health, investigate alerts, and involve the right people
  • Review query performance, replication, capacity, and backup health
  • Carry out approved changes and update the operating instructions they affect
  • Report completed work, open risks, and recommended next steps

Where your OpenSearch clusters run

Compare options

How JusDB OpenSearch Consulting compares with cloud defaults and hiring

Compare an agreed JusDB consulting scope against over-provisioning AWS instance sizes or recruiting full-time search infrastructure engineers.

Evaluation Vector
JusDB DBRE
In-House DBALegacy AgencyDeveloper Generalist
Shard Capacity Modeling & Shard Count Governance (30–50GB/shard)Calculates write volume, query concurrency, and Lucene segment merge overhead to enforce 30–50GB shard boundaries with automated rollover and shrink policies, preventing cluster-manager heap exhaustion and segment sprawl.Permits unmonitored index creation with hundreds of tiny (<1GB) shards, bloating cluster-manager JVM heap metadata and causing severe cluster state publishing delays.Treats OpenSearch like a standard relational database, ignoring Lucene shard geometry and recommending vertical compute upscaling without governing shard counts.Leaves default single-shard or arbitrary shard allocations without ISM rollover rules, resulting in massive multi-hundred gigabyte unmanageable shards.
Index State Management (ISM) Hot/Warm/Cold/Frozen TieringEngineers automated multi-tier ISM policies orchestrating hot NVMe ingestion, UltraWarm/warm read-only merges, cold S3 object storage offloading, and searchable snapshots to reduce storage TCO.Leaves all historical indices indefinitely on expensive hot NVMe tiers until high disk watermarks trigger cluster-wide index write blocks.Relies on manual cron scripts and ad-hoc curl DELETE calls for index pruning, introducing retention policy compliance risks and accidental data deletion.Unaware of native ISM policies; stores uncompressed historical data alongside high-throughput write streams on monolithic disk volumes.
k-NN Vector Search Parameter Tuning (HNSW vs Faiss / IVF)Calibrates HNSW/Faiss vector parameters (m, ef_construction, ef_search), native engine memory bounds, and hybrid BM25 + Reciprocal Rank Fusion (RRF) pipelines for sub-50ms vector retrieval.Deploys default k-NN plugin settings without native off-heap memory headroom, triggering frequent CircuitBreakerTrippingExceptions and JVM crashes during vector index builds.Avoids native OpenSearch vector plugins and routes embeddings through slow external script lookups or inefficient unindexed brute-force scoring.Executes unindexed exact k-NN queries across millions of high-dimensional vectors, saturating host CPU cores and timing out search clients.
Dedicated Cluster-Manager Quorum & Split-Brain PreventionArchitects dedicated 3-node cluster-manager quorums across independent availability zones with strict odd-voting configurations and 32GB JVM limits with compressed OOPs.Co-locates cluster-manager, data, and ingest roles on identical instances; heavy search queries or GC pauses drop heartbeats and trigger false leader elections.Configures even-numbered or dual cluster-manager topologies, inducing catastrophic split-brain partitions and metadata divergence during network blips.Deploys a single cluster-manager node with zero quorum redundancy; any worker node failure or container restart freezes cluster state cluster-wide.
Bulk Thread Pool Sizing & Backpressure Queue ErgonomicsTunes write thread pools, bulk queue capacities, client exponential backoff with jitter, and ingestion buffers (Data Prepper/Logstash) to eliminate 429 EsRejectedExecutionException errors.Increases bulk queue depths arbitrarily to mask 429 rejections, converting queue backpressure into severe JVM heap bloat and node OOM failures.Instructs client applications to retry failed bulk requests immediately without backoff, magnifying cluster load during ingestion spikes.Sends unbuffered single-document REST POST requests, overwhelming HTTP coordinating sockets and degrading search throughput.
Amazon OpenSearch Service vs Self-Managed TCO SizingDelivers comprehensive multi-dimensional TCO analyses contrasting Amazon OpenSearch Service (Graviton, UltraWarm) against self-managed Kubernetes/EC2 deployments, evaluating true operational toil and storage costs.Defaults to AWS OpenSearch Service on expensive Intel instances without rightsizing EBS IOPS or enabling cold storage, incurring runaway cloud spend.Recommends complex self-managed bare-metal infrastructure without budgeting for ongoing 24/7 DBRE maintenance, backup drills, and security patching.Selects managed vs self-hosted purely on initial setup simplicity without factoring in scaling boundaries, licensing freedoms, or long-term operational costs.

For procurement and security

NDA first, read-only by default, and written scope

We work alongside your platform and search teams. Your team approves every index template, ISM policy, or cluster setting change and keeps every runbook.Raguraman, Head of DBSRE · Allen D, Principal Engineer
  • Mutual NDA
  • Written statement of work
  • Named engineers
  • Least-privilege access
  • NDA before access

    Signed before any diagnostic access. The scoping call needs no cluster credentials.

  • Written agreement

    Covered OpenSearch clusters, deliverables, and SLA response times agreed in writing.

  • Least-privilege accounts

    Read-only cluster_monitor roles by default, accessed through your bastion or VPN.

  • Runbooks you keep

    Every ISM policy, index template, and recovery runbook stays with your team. Meet the JusDB team.

JusDB's security practices are aligned with ISO 27001 and SOC 2 Type II, and JusDB is pursuing both certifications (see Terms, section 12). Read the stated status.

FAQ

Common OpenSearch consulting questions

Answers on shard sizing (20-50 GB), the 31 GB JVM heap ceiling, Segment Replication, 429 circuit breakers, k-NN vector memory, and Elasticsearch migrations.

Still have a question?

Ask it on a scoping call. No production access needed.

Book a 30-min scoping call (opens Google Calendar in a new tab)

What is the optimal shard size and shard count per node in OpenSearch?

We target 10 GB to 30 GB per shard for latency-sensitive search workloads and 30 GB to 50 GB per shard for time-series log and observability indices. As a rule of thumb, keep total shards per data node below 20 shards per GB of configured JVM heap (and ideally under 400-500 shards per node) so Lucene segment metadata does not starve query execution memory.

Why should JVM heap never exceed 31-32 GB on an OpenSearch node?

Above roughly 32 GB, the Java Virtual Machine loses Compressed Ordinary Object Pointers (compressed OOPs) and switches to 64-bit pointers, which immediately wastes several gigabytes of memory and increases garbage collection pause times. Additionally, OpenSearch relies heavily on the remaining 50% of host RAM for the Linux kernel page cache ( caching Lucene segments) and native off-heap k-NN vector graphs.

How does Segment Replication in OpenSearch 2.x reduce CPU usage?

With traditional Document Replication, primary and replica shards both parse, tokenize, and index every incoming JSON document independently. With Segment Replication (replication.type: SEGMENT), only the primary shard builds Lucene segments and copies the finished binary segment files directly to replica shards, reducing cluster-wide indexing CPU by 30% to 40%.

How do you fix 429 'Data too large' circuit breaker errors?

Parent circuit breaker trips occur when concurrent aggregations, sorting on unindexed fields, or massive bulk indexing batches push JVM heap usage past 95%. We resolve this by consolidating small shards to free baseline heap, bounding _bulk payloads to 5-15 MB, replacing terms aggregations on high-cardinality fields with composite aggregations, and tuning ISM rollover.

How do you size memory for OpenSearch k-NN vector search?

FAISS and NMSLIB HNSW graphs reside in native off-heap memory outside the JVM heap. For raw FP32 vectors, graph memory is roughly 1.1 * (4 * dimension + 8 * M) bytes per vector. We cap the JVM heap below 50% of RAM, set knn.memory.circuit_breaker.limit, and apply FP16 scalar quantization or Product Quantization (PQ) to cut vector memory usage by 2x to 8x.

Can JusDB migrate our Elasticsearch cluster to OpenSearch without downtime?

Yes. Depending on your source Elasticsearch version, we use S3 Snapshot & Restore, Remote Reindex, or dual-ingestion (via Logstash, Vector, FluentBit, or Kafka) alongside client SDK compatibility testing and ILM-to-ISM policy conversion.

How fast does JusDB respond to a RED or YELLOW OpenSearch cluster emergency?

24/7 support. SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins.

Do you support Amazon OpenSearch Service (AWS Managed) as well as self-hosted OpenSearch?

Yes. Roughly half of our OpenSearch consulting work is on Amazon OpenSearch Service (optimizing UltraWarm/Cold tiering, shard counts, and blue/green upgrades) and half is on self-managed EC2, bare-metal, and Kubernetes Operator deployments.

OpenSearch playbooks and guides

Shard sizing, ISM tiering, and vector search guides

Practical engineering guides from our blog and related OpenSearch service pages.

Next step

Talk to an OpenSearch engineer about your cluster

Tell us about your shard count, daily ingest volume, or k-NN vector workload. The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed. Or request a free audit of one database instance, subject to availability: mutual NDA before read-only access, a prioritized report within one week after access is ready, and no obligation.

NDA before access · read-only by default · written scope first

Related OpenSearch Services

Explore more ways our OpenSearch experts can help with your database infrastructure.