Amazon OpenSearch Service vs Milvus

Amazon OpenSearch Service suits teams that want AWS to run OpenSearch domains, while self-hosted Milvus suits vector-first workloads that must run in your own infrastructure. The decision turns on your query mix, your data location rules and whether your team will operate a distributed stack.

On this page

Amazon OpenSearch Service alternative or Milvus: which fits your workload

Choose Amazon OpenSearch Service when keyword, log and analytics search runs inside AWS and your team already works in OpenSearch Dashboards. Choose self-hosted Milvus when vector similarity search is the core workload and the data must stay in a location you run. The decision turns on three things: query mix, data residency and operating capacity. Amazon OpenSearch Service fits when your domains already sit in AWS accounts and most queries are keyword, filter and aggregation work over logs or application records. AWS runs the managed domain, but your team still designs indices, access and retention. Vector support in OpenSearch depends on version and configuration, so confirm the k-NN features your version supports in the Amazon OpenSearch Service documentation before you plan a vector workload on it.

Milvus fits when vector similarity search at scale is the main job and index choice affects cost and latency. It is Apache-2.0 licensed and runs in three modes: Milvus Lite as a Python library, Standalone on one machine, or Distributed as a Kubernetes-native cluster. Its index options include HNSW, IVF, FLAT, SCANN and DiskANN, with GPU indexing through NVIDIA CAGRA and memory-mapped files for larger collections. Disk-based DiskANN indexes are worth testing first when vectors outgrow memory, and CAGRA only helps if you operate NVIDIA GPUs. Milvus also offers BM25 full-text search and hybrid dense plus sparse search, which can absorb some keyword work, along with authentication, TLS and role-based access control. The cost is operating effort: the Milvus architecture overview shows that Distributed mode depends on etcd, object storage and a write-ahead log, all of which your team must run.

Decide with a query audit before any migration plan. Export a representative month of search traffic and classify each request as keyword, filtered, log analytics or vector similarity, then check whether one workload needs both kinds. Next, confirm where embeddings, source records and backups may live. Self-hosted Milvus in your own accounts or data center keeps them under your control, while an AWS domain sits in the AWS Regions and terms you agree to, so confirm those details with AWS and your compliance team. Finally, count the people who can take on-call duty for each cluster. If one engine cannot cover both workloads, running a separate vector store beside the OpenSearch domain is a valid design, and it is the option to price against a single consolidated cluster.

Which scenarios favor Amazon OpenSearch Service and which favor Milvus

This table maps common situations to the platform that usually fits better, with the condition that makes each recommendation hold. Read the condition first: if your situation does not match it, the other option may be the better choice. Most rows favor Amazon OpenSearch Service when operations and text search lead, and Milvus when vectors lead and you can run the infrastructure yourself.

ScenarioBetter fitWhy, and the condition it holds under
AWS-native team with no Kubernetes skillsAmazon OpenSearch ServiceAWS operates domains, upgrades and failure handling for you. Holds while no one can run Kubernetes or Milvus Distributed.
RAG workload built on dense vectors aloneMilvusMilvus is built for vector indexes and offers several index types. Holds if retrieval needs only vectors plus metadata filters.
Mixed keyword and vector search on one indexAmazon OpenSearch Service when text relevance leadsText search and analyzers are OpenSearch's core. Holds when keyword ranking leads. Milvus fits when vector similarity leads.
Log analytics with dashboardsAmazon OpenSearch ServiceDashboards and UltraWarm tiers suit log data. Holds when logs are the main workload, which Milvus does not target.
Air-gapped or strict data residencyMilvus, self-hostedMilvus Standalone runs on your own hardware. Holds when data cannot leave your network, but confirm the dependencies you bundle.
GPU-accelerated index buildingMilvus with NVIDIA GPUsMilvus supports GPU indexing with NVIDIA CAGRA. Holds when you have NVIDIA GPUs you can run, so confirm instance types and cost.
Small team with limited on-call capacityAmazon OpenSearch ServiceAWS handles maintenance and recovery of domains. Holds when nobody can answer pages out of hours. Confirm your support plan and maintenance windows.
Teams that need portability across cloudsMilvusApache-2.0 code can run on your clouds or on-premises hardware. Holds when moving between clouds is a stated requirement.

Why keyword search and vector retrieval call for different engines

Choose the engine from the queries you run, then check the feature list. Amazon OpenSearch Service descends from Elasticsearch 7.10 and was built as a search and analytics engine over documents and logs. Its center of gravity is the inverted index, aggregations, faceted filtering, log ingestion pipelines and OpenSearch Dashboards for exploring results. Vector search is available in OpenSearch through its k-NN features, but it sits inside a wider analytics platform, so confirm which engines and versions your domain supports. Milvus starts from the other side. It is a vector database, written in Go and C++, that organizes data around embeddings and similarity indexes such as HNSW, IVF and DiskANN. It also offers BM25 full-text search, sparse vectors and hybrid dense plus sparse search, so keyword relevance can run beside embeddings in the same collection.

Before you choose Milvus, list your top ten queries and tag each one. Mark whether it needs aggregations or facet counts, whether it depends on log ingestion from agents or pipelines, whether a team relies on dashboards or saved visualizations, and whether its ranking comes from embedding similarity. If most of the list needs aggregations, log ingestion or dashboards, your workload is analytics-shaped, and moving it to Milvus would leave those jobs to other tools that you must also run. If most queries are semantic lookups with keyword or metadata filters, Milvus matches the shape of the work. Many teams find a mixed list, so note which queries would need a second system before you decide.

Test recall and latency on your own data before you commit. Build a labeled set of queries with known relevant documents, drawn from the top-ten list, and compare Milvus results against an exact brute-force baseline so that recall reflects your index settings and your embeddings. Measure tail latency at your expected concurrency with the filters you will really use, since filtered vector search is where results and timings often change. For keyword queries, run the same set through Milvus BM25 and through your OpenSearch analyzers, and confirm how each hybrid setup combines the two score types. Record the index type, memory footprint and Milvus deployment mode (Lite, Standalone or Distributed) you tested, because the results only hold for that configuration.

How Amazon OpenSearch Service and Milvus compare on capabilities

This table compares Amazon OpenSearch Service with self-hosted Milvus on the capabilities that usually shape a vector search decision, from licensing and index types to access control and deployment modes. Where a detail of the OpenSearch column is not confirmed here, the cell tells you what to check in AWS documentation for your version. The main takeaway is that Milvus is a dedicated vector database, while OpenSearch covers full-text search and vector search in one engine, so confirm which features your workloads depend on before planning a move.

CapabilityAmazon OpenSearch ServiceMilvus
LicensingOpenSearch engine is Apache-2.0; AWS bills the managed service separatelyApache-2.0, under LF AI and Data Foundation with Zilliz as primary contributor
Vector index typesConfirm the k-NN engines and index types supported for your version in AWS documentationHNSW, IVF, FLAT, SCANN and DiskANN
GPU indexingConfirm GPU index build support for your version in AWS documentationGPU indexing with NVIDIA CAGRA
Quantization and memory-mapped filesConfirm quantization options and memory-mapped behavior in AWS documentationQuantization and memory-mapped files supported
Full-text searchLexical search with analyzers from the Elasticsearch 7.10 lineage; confirm scoring options for your versionBM25 full-text search alongside sparse vectors
Hybrid searchConfirm how lexical and vector queries combine for your version in AWS documentationHybrid dense plus sparse search
Multi-tenancyConfirm the tenancy model (indices, roles, domains) in AWS documentationIsolation at database, collection, partition or partition key level
Authentication, TLS and access controlIAM and fine-grained access control on managed domains; confirm TLS settings for your versionAuthentication, TLS encryption and role-based access control
Deployment modesAWS-managed provisioned domains and Serverless; self-managed on EC2, Kubernetes or your own hardwareMilvus Lite as a Python library, Standalone on one machine, Distributed on Kubernetes

Where your data lives under each option and what compliance teams review

Each option answers the same questions in different places: where the index and vectors are stored, which hosting model sets the operating boundary, who authenticates, and what evidence an assessor can collect. Read the four cards together, because a residency decision on one card usually changes the answers on the other three.

Data location and residency

Amazon OpenSearch Service keeps data in AWS-run domains in the regions you choose. You pick the region and account, but AWS operates the domain infrastructure. Self-hosted Milvus runs in your own cloud accounts, data centers or air-gapped networks, with object storage on Amazon S3, MinIO or Azure Blob. Map every location for the data, including etcd metadata, the write-ahead log (Woodpecker, Kafka or Pulsar) and backups, because each one falls under the same residency and retention review as the vectors.

Milvus architecture overview

Hosting models and operating boundary

Amazon OpenSearch Service offers provisioned domains and a serverless option, so AWS carries most of the cluster lifecycle. Milvus has three modes: Milvus Lite as a Python library, Standalone on a single machine and Distributed as a Kubernetes-native cluster. If you want managed Milvus with less operating effort, Zilliz Cloud offers Serverless, Dedicated and bring-your-own-cloud options, and the bring-your-own-cloud option is the one to check when data must stay in your account. Confirm which mode meets your availability and residency requirements before sizing the platform team.

Identity and access controls

On AWS, access to a domain runs through IAM policies, and OpenSearch Service adds its own access control for indices and documents. Milvus implements authentication, TLS encryption and role-based access control inside the database, so your team configures and operates that identity model directly. Confirm SSO integration for both options before you commit, including how groups map to roles, whether administrative actions reach your audit log pipeline and who approves privilege changes. Request the full role and privilege list in writing for review.

Compliance evidence and review

Assessors usually ask for configuration evidence, access reviews, change records and tested restores, and both options need a documented way to produce them. DeployOpen prepares systems, controls and evidence inside your infrastructure, so your compliance team has material to review. Independent auditors issue the audit reports and certifications. Confirm early which reports and control expectations your assessor applies, and which evidence must come from your own logs and records.

What drives Amazon OpenSearch Service cost compared with self-hosted Milvus

Amazon OpenSearch Service bills for the capacity you provision and the options you switch on. Provisioned domains pay instance hours, storage and data transfer as separate lines, while Serverless bills OCU-hours. The figures below are the US East (N. Virginia) examples on the Amazon OpenSearch Service pricing page.

  • Instance hours: The example rate is $0.335 per hour for an r6g.xlarge.search instance. Every node in the domain adds a line, so node count and size drive most of the monthly bill.
  • Storage: EBS gp2 storage is listed at $0.135 per GB-month and UltraWarm managed storage at $0.024 per GB-month. Both recur every month for as long as the data stays provisioned.
  • Reserved Instances: The pricing page lists savings of 31% for 1-year and 48% for 3-year No Upfront terms. Confirm which instance types and Regions a reservation covers before you commit.
  • Serverless OCUs: Serverless bills $0.24 per OCU-hour in the examples, with storage billed separately. Classic collections have a minimum of 2 OCUs for the first collection in an account, so small workloads keep paying that floor.
  • Snapshots and Extended Support: Automated snapshots are free and kept for 14 days per domain, so longer retention needs storage you manage yourself. From November 7, 2026, domains on listed older versions pay Extended Support equal to the instance price, doubling instance cost.

Check the pricing page for your Region, instance type and version status, then ask for an estimate that lists each line.

Who patches, scales and recovers a self-hosted Milvus cluster

Running Milvus yourself starts with a release decision your team owns. Milvus maintains two release lines, and their latest builds are v3.0.3, published October 14, 2026, and v2.6.25, published September 29, 2026. Pick one line, pin it in your deployment manifests, and decide how quickly you follow new patch releases. Every upgrade needs a test run against a copy of your collections, indexes and client code, because index parameters, SDK calls and configuration keys can change between lines. You also own sizing for proxies, coordinators and worker nodes, based on vector count, index type, query concurrency and the memory headroom your chosen index needs. Measure these in a load test on your own data before production, and confirm the support window for each line in the Milvus release notes.

The operating load depends heavily on the deployment mode. Standalone runs on a single machine, so the team patches one host, watches one set of processes and restores one set of volumes after a failure, which is a small operation with a single point of failure. Distributed runs as a Kubernetes-native cluster with stateless proxies, coordinators and worker nodes, so the team also owns the Kubernetes platform, node pools, storage classes and upgrade windows. Metadata sits in etcd, data sits in object storage such as MinIO, S3 or Azure Blob, and the write-ahead log runs on Woodpecker, Kafka or Pulsar. Backups must therefore cover etcd and object storage together, and a restore drill should prove the two still match. Review the Milvus architecture overview before you size each component.

On a managed Amazon OpenSearch Service domain, AWS documents the service as the option for teams that do not want to manage, monitor and maintain infrastructure. Once you self-host Milvus, those duties move to you: applying operating system and Milvus patches, replacing failed nodes, watching etcd latency and object storage errors, and keeping backups running on a schedule you set. Build monitoring for each component and route alerts to a named on-call rotation, with an escalation path to whoever owns the Kubernetes or storage layer. Ask any implementation partner to write down who responds at night, which alerts page someone, and how capacity is added before query latency degrades. Confirm that your team's staffing covers those hours before you set a migration date.

How do the parts of a distributed Milvus deployment connect?

Requests start at client applications and reach stateless proxies at the edge of your cloud account or data center. The proxies hand work to a coordinator, which keeps cluster metadata in etcd and assigns tasks to worker nodes. Workers write changes to the write-ahead log, Woodpecker, Kafka or Pulsar, and keep data in object storage such as MinIO, S3 or Azure Blob. Check the TLS, authentication and RBAC labels first, since you must confirm where your version enforces each control. Component placement depends on the deployment mode, so a Standalone install will not show every box.

Requests pass through proxies and a coordinator before workers touch storage.

What a move from Amazon OpenSearch Service to Milvus involves

This sequence moves an Amazon OpenSearch Service workload to self-hosted Milvus with a measured check at each stage. Each step leaves a record you can review: an index inventory, a vector decision, an archived export, a collection design, a recall and latency comparison, and a cutover log. The parallel run is the last checkpoint before the domain is retired.

  1. Inventory indices and classify each workload

    List every index on the domain with its owner, document count, field mappings, analyzers and the query types it serves. Tag each index as text search (keyword and BM25-style relevance), vector search (nearest-neighbor queries on embeddings) or hybrid (both in one query). Ask the application teams which filters and sorts their queries use, because those fields must be carried into Milvus schemas. Done when every index has one row, one owner and one tag, and the application teams have confirmed the query list.

  2. Decide whether vectors are reused or regenerated

    For each index that holds vectors, decide whether the stored embeddings are reused or regenerated. Reuse is possible only when the same embedding model and dimension produced them, and your pipeline records confirm that. If the model changes, regenerate the vectors and re-test retrieval quality on a labeled query set before any traffic moves. The index structure changes in Milvus, but reused embeddings carry over unchanged. Done when a decision record names the model, dimension and owner for each index.

  3. Export documents and vectors to storage you control

    Export documents and vectors to storage your organization controls. Automated snapshots on an Amazon OpenSearch Service domain are kept for 14 days, so they cannot serve as your long-term copy, and a separate export is needed. Snapshots are not directly loadable into Milvus, so read the data through the OpenSearch API into neutral files such as JSON lines or Parquet, then load it with scripts. Qdrant's migration tool moves data into Qdrant only, so expect custom export and load scripts for Milvus unless you confirm another tool that fits your environment. Done when per-index document counts match the inventory and a sample of vectors matches with checksums.

  4. Design Milvus collections, indexes, partitions and roles

    Map each index to a Milvus collection with a schema that includes a primary key, a dense vector field, a sparse vector field where BM25 or keyword scoring is needed, and the scalar fields used in filters. Choose index types from HNSW, IVF, FLAT, SCANN and DiskANN based on recall and memory tests you run yourself. Use partitions or partition keys for tenant or date separation, and map OpenSearch security roles to Milvus role-based access control roles with the least privilege each team needs. Done when the design document is approved and a test collection accepts a sample batch with the expected filters.

  5. Load data and compare recall and latency

    Load the exported data into a staging Milvus deployment. Milvus Standalone suits a single-machine test, and Distributed suits a Kubernetes cluster. Run the same labeled query set against both systems, covering keyword, vector, hybrid and filtered queries, and record recall at the cutoff you use in production along with latency percentiles. Agree pass criteria with the search owners before the run starts. Done when a comparison report shows results per index and per query type, with any gaps listed for a go or no-go decision.

  6. Run both systems in parallel before cutover

    Send a sample of live queries to both systems and compare the results. Keep OpenSearch as the system of record for answers until the gaps from the comparison are closed. Move query routing to Milvus once the agreed criteria hold, and keep the OpenSearch domain read-only for a rollback period your team sets. Then archive the final export, delete the domain, remove its IAM access and revoke application credentials. Done when all traffic is served by Milvus, the archive has been verified and the domain is removed from your inventory.

Questions buyers ask before moving Amazon OpenSearch Service workloads to Milvus

What drives the cost of moving from Amazon OpenSearch Service to Milvus?

Cost depends on what you run after the move, because Milvus has no license fee but still has infrastructure and staff costs. On the AWS side, the pricing page bills managed domains for instance hours, storage and data transfer, and Reserved Instance terms lower the hourly rate for committed use. On the Milvus side, the cost components are compute for query and index nodes, block storage, object storage such as MinIO, S3 or Azure Blob, etcd for metadata, the write-ahead log, monitoring, backups and the people who operate them. Costs rise with vector count, vector dimensions, replica count and retention, and fall with right-sized nodes and tiered storage. One-time costs cover planning, data export, index rebuilds, query rework and cutover testing. Recurring costs cover compute, storage, support and on-call time. Ask for a quote that lists each component separately and shows one-time and recurring items apart.

Can our internal team run Milvus without outside help?

Yes, a team that already runs Kubernetes, object storage and stateful databases can operate Milvus, but the first build is harder than the install. Milvus comes in three modes: Milvus Lite as a Python library, Standalone on a single machine and Distributed as a Kubernetes-native cluster. Distributed deployments depend on etcd, object storage and a write-ahead log such as Woodpecker, Kafka or Pulsar, and each of those needs upgrades, backups, monitoring and failure testing. Check whether your team has run comparable stateful components in production, who will answer alerts at night, and who will tune vector index settings for your data. Teams can also bring in an implementation partner for the first build, then move day-to-day operations in-house with documented runbooks. DeployOpen plans, implements, hardens, backs up and documents self-hosted platforms inside your own infrastructure under a written scope.

How long does a migration from OpenSearch Service to Milvus take?

The timeline depends on the written scope, and the schedule must be agreed in writing before work starts. Scope drivers include the number of indexes, the share of data that is vectors compared with keyword or log content, how many queries must move from the OpenSearch query DSL to Milvus APIs, how many environments need parallel running, and how your change approval process works. Ask for a scope document with named milestones: inventory, data export and load, search quality checks, parallel running, cutover and a rollback point. Each milestone should name an owner and the evidence that closes it. Be cautious with any proposal that gives a duration without listing these inputs, because the inputs decide whether a schedule holds. The same document should state what happens if a milestone slips and who approves the change.

What do we need to provide during a Milvus migration?

Plan for named data owners, cloud and cluster access and on-call coverage before work starts. Data owners confirm which indexes, fields and tenants are in scope, approve the sample queries used for search quality checks, and sign off on retention and deletion rules. Engineers need access to the OpenSearch domains, snapshot buckets and IAM roles in AWS, plus access to the target Kubernetes cluster, namespaces, secrets, storage classes and network paths. On-call coverage matters most during parallel running, cutover and the weeks after, when both stacks may raise alerts. Ask the implementation partner to list each access request, the person who approves it and the date it is needed. A written list of access and owners is one of the quickest ways to see whether the schedule holds.

Does Milvus replace OpenSearch Dashboards and log analytics?

Milvus does not replace OpenSearch Dashboards or log analytics by default, so confirm this before you plan the move. Milvus is a vector and search database, and its interfaces are aimed at application developers rather than analysts who build dashboards. If your teams use Dashboards for log exploration, saved visualizations, alerting or index lifecycle policies, those workloads need a separate decision. You can keep an OpenSearch deployment for them or move them to a dedicated log platform, and the choice affects cost, staffing and access control. Inventory every Dashboards object, alerting monitor and ingest pipeline before you scope the work. Ask the vendor or implementer to confirm in writing which of these your current setup depends on.

Does Milvus support keyword search like BM25 and hybrid search?

Yes, Milvus supports BM25 full-text search, sparse vectors and hybrid search that combines dense and sparse ranking, according to the Milvus repository. BM25 provides keyword relevance scoring, and hybrid search lets one query combine semantic similarity with keyword matching. These features cover many search needs, but the details decide the fit. Confirm whether the analyzers, language handling, phrase queries, highlighting, aggregations and filters your application uses today have equivalents in Milvus, and how relevance changes after the move. Build a test set from production query logs, run it against both engines and compare the top results before cutover. Search tuning is an application task, so name an owner on your side for it.

Is there a license fee for Milvus?

No, Milvus has no license fee because it is licensed under Apache-2.0, which allows use, modification and redistribution without a license charge from the project. You still pay for the infrastructure it runs on and for the people who operate it. The license covers the software, but it does not cover commercial support, managed hosting or the time your team spends on upgrades, security patches and incident response. Milvus operates under the LF AI and Data Foundation, with Zilliz as its primary contributor, so ask whether your support needs call for a separate commercial agreement. Also check the licenses of the components around Milvus, such as object storage and the write-ahead log, because each has its own terms and its own upgrade cycle.

Is a managed Milvus service available if we do not want to operate it?

Yes, Zilliz Cloud offers fully managed Milvus with Serverless, Dedicated and bring-your-own-cloud options, according to the Milvus README. The three options differ mainly in who operates the cluster and where the data sits, so check those points first. For each option, confirm who operates it, which region and cloud account hold the data, who holds the encryption keys, how access is logged, how backups and exports work, and what happens to your data at exit. Bring-your-own-cloud is the option to ask about if the data must stay in an account you control. If the data must stay in infrastructure your own team governs, a self-hosted Milvus deployment is the other path, and DeployOpen can implement it under a written scope.

How DeployOpen helps evaluate, implement or migrate Milvus

DeployOpen is a Chainscore Labs company that plans, implements, hardens, backs up, upgrades and documents self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For Amazon OpenSearch Service and Milvus, we start from your current search and vector workloads and recommend the Milvus mode that matches them. Security testing and compliance readiness work follow the same written scope.

How we scope

  • We inventory each OpenSearch domain, its indices, vector fields, filters and client integrations before choosing a Milvus mode.
  • The written scope names the Milvus deployment mode, Lite, Standalone or Distributed, and why it fits.
  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.

How we build

  • We deploy Milvus in your infrastructure, with etcd for metadata and MinIO, S3 or Azure Blob for objects.
  • We configure authentication, TLS and role-based access control, then test those settings against the access model your teams need.
  • We map index mappings to Milvus collections, test BM25 and hybrid queries, and record any query Milvus cannot serve.

How we hand over

  • Handover documents the architecture, runbooks, configuration and access model for your security team.
  • Migration notes list data export from Amazon OpenSearch Service and the checks your team runs before cutover.
  • Where security testing is in scope, findings arrive with fixes and a retest before cutover.

How we support

  • Ongoing support, upgrades and continuous testing for Milvus are available as a retainer.
  • Upgrade planning tracks the two Milvus release lines, v2.6.25 and v3.0.3, so you pick a line deliberately.
  • Compliance readiness work prepares access control and TLS evidence for your assessors; independent auditors issue any reports.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.