OpenSearch 1.x to 2.x upgrade

Clusters on OpenSearch 1.x are past end of life, so the upgrade to 2.x needs a planned path covering mapping types, JDK 8, alerting and backups. This page explains what changes, how to sequence the work and what drives effort.

On this page

Why an OpenSearch 1.x cluster needs a 2.x upgrade plan now

If your self-managed OpenSearch cluster is still on 1.x, you need a dated plan to move it to 2.x, because version 1 reached end of life on May 6, 2025 and no longer receives bug fixes or security patches. The supported path runs through 2.x. Rolling upgrades are supported only between adjacent major versions, so a 1.x cluster cannot jump straight to 3.x with an in-place rolling upgrade. The 2.x line is the step your cluster has to take first, and the work involved (removing mapping types from API calls, moving to a supported JDK, and replacing the alerting setup with the Notifications plugins) is the same whether you go on to 3.x soon or later. OpenSearch is licensed under the Apache License, Version 2.0 and no paid edition is involved, so the decision rests on your own infrastructure and operating model, not on licensing.

Confirm three things before you pick a method. First, list every client, script, index template and alerting monitor that calls the API, because the removal of the type parameter from all API endpoints in 2.0.0 breaks any code that still sends it. Second, confirm that every node runs a JDK that OpenSearch 2.x supports, since 2.0.0 dropped JDK 8. Third, export your alerting monitors and destinations, since alerting was integrated with the new Notifications plugins in 2.0.0 and needs to be validated on a test cluster. Use the OpenSearch breaking changes documentation as the checklist for each of these items against the exact target version you intend to run.

Plan the 2.x stop as the first leg of a two-stage path. Rolling upgrades to 3.x require at least 2.19.0, so a cluster that lands on an early 2.x release will need further upgrades before it can reach 3.x. Ask your team or partner to state the target 2.x version and the 3.x version you expect to reach, and check the current release list at the OpenSearch releases page before fixing dates. Each stage needs its own backup, health checks between nodes and a rollback decision, so budget for two cycles rather than treating the move as one event.

Which 2.0.0 changes affect your cluster and what to do about them

This table lists the three headline 2.0.0 changes, what each one does to a running 1.x cluster, and the action to take before upgrading. Read each row against your own client code, index templates and plugin settings, because the impact depends on what your cluster actually uses. The main takeaway is that the API and client changes are the ones most likely to break applications, so they should be inventoried before any node is touched.

ChangeImpactAction needed
Type parameter removed from all API endpointsRequests that pass a mapping type or the type parameter can fail after the upgrade.Search your application code, scripts and ingest pipelines for type parameters and mapping types, then test each call against a 2.x test cluster.
JDK 8 support droppedNodes must run a newer Java runtime, so hosts and container images that pin JDK 8 cannot start 2.0.0.Confirm the Java runtime on every node, container image and base image, and plan the runtime change alongside the package change.
Alerting integrated with new Notifications pluginsAlert destinations and notification channels depend on the Notifications plugins, so alerting configuration may need review after the upgrade.Export existing alerting monitors and destinations, confirm the Notifications plugins are installed on the target version, and verify that each alert still fires in a test run.
Client libraries and HTTP callsClients built for 1.x may send requests the 2.x API no longer accepts.Confirm which client library versions your applications use and check each one against the 2.x API documentation before cutover.
Index templatesTemplates that define mapping types or rely on removed parameters may not apply as expected to new indexes.Review every index template and component template, then create a test index from each one on a 2.x cluster and compare the resulting mappings.
Plugin configurationThird-party and custom plugins may not be compatible with 2.x, and their settings may change.List all installed plugins and their versions, confirm 2.x compatibility with each vendor or project, and retest plugin settings in a non-production cluster.

What to inventory and back up before touching a 1.x node

Most failed OpenSearch 1.x to 2.x upgrades trace back to work skipped before the first node restarts. The cards below cover the recovery point, the code and clients that will break, the hosts, the alerting objects, the custom extensions and the rehearsal environment that connect the inventory to a safe rolling upgrade.

Snapshot repositories and a verified backup

Confirm that every index you need has a recent snapshot in a repository that is registered, reachable from all nodes and readable. Run a test restore of a representative index into a scratch cluster, because a snapshot that has never been restored is not yet a backup. Record the repository location, the retention rule and who can delete snapshots. Rolling upgrades cannot be reversed by downgrading, so this snapshot is the recovery point if the upgrade goes wrong.

Rolling upgrade docs

Client code that passes a type parameter

OpenSearch 2.0.0 removed the type parameter from all API endpoints, so any indexing, search or bulk call that still sends a type will fail after the upgrade. Search the application repositories, ingestion pipelines, scripts and scheduled jobs for type in request paths, bodies and client library calls. Include Logstash, Beats, Fluent Bit and any custom ETL code, since these often hide the parameter in configuration. Assign an owner to each caller and test it against a 2.x endpoint before the cutover.

Breaking changes docs

JDK audit of every host

OpenSearch 2.0.0 dropped JDK 8 support, so every node must run a supported JDK before its binary is replaced. Check the JDK bundled with each package, the JAVA_HOME setting and any override in service files or container images, on every node including cluster manager and coordinating nodes. Hosts that rely on a system-wide Java install are a common source of surprises. Confirm the required JDK version in the 2.x release notes for the exact release you plan to install.

Alerting monitors and destinations to migrate

OpenSearch 2.0.0 integrated alerting with the new Notifications plugins, so alert destinations and channel configurations need to be reviewed before the upgrade. Export every monitor, trigger and destination, note which ones send to email, Slack or webhooks, and record who receives each alert. Plan how each destination maps to a notification channel on 2.x and test one alert end to end after the upgrade. Missed alerts during the change window are usually the first failure users notice.

Custom plugins and index mappings

List every installed plugin, its version and whether a 2.x build exists for it. Third-party and custom plugins must be rebuilt or replaced before the upgrade, and a plugin that is missing on one node can block the rolling process. Review index mappings for the removed mapping type structure and for field types that depend on plugins such as k-NN or security analytics. Ask the plugin authors or your internal developers to confirm compatibility in writing.

Test environment built from a recent snapshot

Restore a recent snapshot into an isolated cluster with the same node count, plugins and security configuration as production, then run the full client and alerting test set against it. Use the rehearsal to measure restore duration, check dashboards and saved objects, and confirm that shard allocation behaves as expected. Treat the test cluster as disposable, and document the exact steps so the production change matches what was rehearsed.

How to run the rolling upgrade from 1.x to 2.x in order

This sequence moves a self-managed OpenSearch 1.x cluster to 2.x one node at a time, with a verified snapshot, a health check after every node and a clear rollback point at each stage. Because downgrades are not possible, the snapshot is the only way back.

  1. Confirm the target adjacent version

    Confirm that the target is the 2.x release line, since rolling upgrades are supported only between adjacent major versions. Check the version you plan to land on against the OpenSearch releases page and the rolling upgrade documentation, and confirm every plugin you run has a 2.x build. Rollback point: nothing has changed yet, so stopping here costs nothing. Done when the target version and plugin matrix are written down and signed off by the platform owner.

  2. Take and verify snapshots before any change

    Register a snapshot repository on storage outside the cluster, take a full snapshot, and confirm it reports success and lists every index you need to keep. Also export the cluster settings, index templates, security configuration and Dashboards saved objects. Rollback point: this snapshot is the only recovery path, because downgrading a node in place is not possible. Done when a test restore of at least one index succeeds in a separate environment.

  3. Upgrade the JDK on each node

    Move every node to a JDK version that OpenSearch 2.0.0 supports, because 2.0.0 dropped JDK 8 support. Do this on one node at a time while the node runs the 1.x build, using the Java version your package or container image requires, and confirm the bundled runtime in your configuration. Rollback point: revert the JDK package on that node before restarting OpenSearch on it. Done when every node reports the new Java runtime and the cluster stays green between node checks.

  4. Remove client type parameters from applications

    Find every client, script, ingest pipeline and index template that still sends the type parameter, because OpenSearch 2.0.0 removed it from all API endpoints. Update the client libraries and request code, then test each path against a non-production cluster running 2.x. Rollback point: keep the previous client build deployable until the new one passes. Done when a log of test requests shows no calls that include the type parameter.

  5. Restart nodes one at a time with health checks

    Disable shard allocation as your runbook directs, stop one node, upgrade its package to 2.x, start it, re-enable allocation and wait for the cluster to return to green before touching the next node. Repeat for each node, with cluster managers and data nodes in the order your topology requires. Rollback point: a failed node can be stopped and left out while the cluster serves reads from replicas, but the node cannot be downgraded. Done when every node runs 2.x and the cluster reports green with no unassigned shards.

  6. Migrate alerting to the Notifications plugins

    Install the Notifications plugins that 2.0.0 integrated with alerting, then confirm that alerting monitors, destinations and channels load and still send messages. Export the alerting configuration before this step so you can compare it afterwards. Rollback point: keep the 1.x alert definitions in the snapshot and the exported configuration so they can be recreated if a channel fails. Done when a test alert reaches each destination and the monitor history shows a successful run.

  7. Validate search, security and dashboards

    Run your standard query set against the upgraded cluster and compare results and latency with the baseline you recorded before the upgrade. Confirm that authentication, roles, audit logging and TLS behave as before, and that Dashboards loads its saved objects and visualizations. Rollback point: if validation fails, restore the snapshot into a new cluster rather than attempting to reverse the upgrade. Done when the query results match the baseline and the owners of search, security and reporting sign off in writing.

How the rolling path continues from 2.x toward 3.x

2.x is the stop before 3.x. A cluster that finishes its 1.x to 2.x move is not finished with upgrades. Rolling upgrades are supported only between adjacent major versions, so the path from 1.x runs through 2.x first, and the next rolling step is 2.x to 3.x. Upgrades to 3.x require at least 2.19.0, so the cluster should be on 2.19.0 or a later 2.x release before the 3.x step is scheduled. Check the exact 2.x minor and patch level on every node, including dedicated cluster manager nodes, and confirm the 3.x target in the rolling upgrade documentation before planning dates.

Two other methods apply when the cluster is far behind or cannot be rolled node by node. Migration Assistant can move workloads across several major versions in one step and supports live traffic capture, which can reduce the write freeze that a snapshot cutover needs. Snapshot and restore builds a new cluster and loads its data from a repository, which suits cases where the existing nodes cannot be restarted in place. Choose between them by asking how much downtime the business accepts, whether the snapshot repository is current, and whether the team can run two clusters side by side for a period. Record the choice and the rollback plan in the change request so the 2.x work is not repeated later.

Work on 3.x is substantial enough to have its own page. Reindexing indexes created before 2.x, the move to JDK 21, removed settings and plugins, and new request limits all need checks against your own indexes and applications. Read the sibling page on the 2.x to 3.x upgrade before setting the 2.x exit criteria, because some findings from your 1.x work, such as deprecated mapping types and alerting configurations, will carry forward. Treat the 2.x cluster as a tested baseline: keep snapshots from before each step and confirm that the team has a current inventory of plugins and their versions.

The supported upgrade path runs from 1.x through 2.19.0 to 3.x

The path starts with a 1.x cluster that is backed up to a snapshot repository before anything changes. Each node is then upgraded in a rolling upgrade, with a health check that must pass before the next node restarts. Alerting moves to the Notifications plugins during the 2.x stage, and the cluster must reach 2.19.0 before any move to 3.x. If a health gate fails, the team restores from the snapshot instead of downgrading in place.

The supported path from 1.x through 2.19.0 to 3.x, with a snapshot rollback branch.

Choosing rolling upgrade, snapshot and restore, or Migration Assistant

A rolling upgrade restarts nodes one at a time while the cluster keeps serving requests, which makes it the most direct path for a cluster that is already one major version behind. The OpenSearch rolling upgrade documentation supports this path only between adjacent major versions, so a 1.x cluster can move to 2.x this way, but a cluster further back cannot. Teams should expect the cluster to run mixed versions for a period and should plan capacity for shards moving during each restart.

  • Adjacent version only: Confirm the exact 1.x minor version in use and that the target 2.x release is adjacent to it.
  • Node restart tolerance: Confirm that every node can restart in turn and that the platform team can hold health checks between restarts.
  • Capacity headroom: Confirm that the remaining nodes can carry the load and the shards relocating during each restart.
  • Backups first: Confirm a tested snapshot exists before the first node is touched, because downgrades are not possible.
  • Client compatibility: Confirm that application clients and Dashboards plugins match the target version before the upgrade starts.

Before choosing this tab, confirm your index and mapping state against the breaking changes documentation, since removed mapping types affect how clients write data during the upgrade window.

What makes a 1.x to 2.x upgrade take longer

This table lists the factors that change how much work a 1.x to 2.x upgrade takes and how far it reaches into client applications, plugins and operations. Read each row as a question to answer about your own estate before you agree on a window or a scope, since most of the effort sits in the inventory rather than in the restart itself.

DriverWhy it changes effortHow to keep it down
Client applications using type parametersRemoving the type parameter in 2.0.0 means every application, script and ingest pipeline that still sends it must change and be retestedSearch code and client libraries for type parameters before the project starts, then fix them in one release
Nodes and data volumeMore nodes and larger indices lengthen each rolling restart and the health checks between nodesConfirm restart time on a copy of production data and plan windows around the slowest node
Custom plugins and their 2.x compatibilityPlugins built for 1.x may have no 2.x release, forcing replacement or removal before the upgrade can proceedList every installed plugin and confirm a 2.x build with the plugin owner before scheduling
Alerting monitors to rebuildAlerting moved onto the new Notifications plugins in 2.0.0, so monitors and destinations need to be recreated and testedExport monitor definitions and notification channels now, then rebuild them in a non-production cluster
JDK estimate across hostsJDK 8 support was dropped in 2.0.0, so every host, container image and build pipeline needs a supported JDKInventory the JDK on each host and image, including hosts that run only Dashboards or ingest tools
Change windowsFreeze periods, approval cycles and dependent teams set how many rolling steps fit in each windowAgree the window, rollback decision point and communication plan with application owners up front

Questions teams ask before upgrading OpenSearch 1.x

What does a 1.x to 2.x upgrade cost, and who pays for what?

The cost is mostly labor, plus any infrastructure needed to run the upgrade safely. OpenSearch is Apache 2.0 licensed and the project does not describe a paid edition, so there is no license fee to the project itself. Your costs fall into three groups: internal staff time for planning, testing and change approval; partner time if you hire an implementation firm, billed against a written scope; and temporary capacity such as a staging cluster, extra snapshot storage or spare nodes. Some costs are one-time (the upgrade itself, client and index changes, test runs) and some recur (monitoring and patching after the upgrade). Ask any provider for a written scope that lists each cluster, each plugin, each client application and the testing you expect, because those items drive the quote more than the version number does.

How long does an OpenSearch 1.x upgrade take?

Duration depends on how many clusters you run, how much data they hold, how many client applications and plugins touch them, and how much testing your change process requires. A single small cluster with few integrations is far simpler than a multi-cluster estate with custom plugins and Dashboards content. The schedule usually breaks into inventory, a staging upgrade, fixing breaking changes, a rolling production upgrade and post-upgrade checks. Each node restart adds time because the cluster must return to a healthy state before the next node moves. DeployOpen does not publish durations; a written scope should give a timeline with stated assumptions, and you should ask for the cluster count, data volume and test plan that the timeline depends on.

What does the internal team need to provide for the upgrade?

Your team needs to supply knowledge of the environment and decisions that only you can make. Expect to provide access to the clusters and their configuration, a list of client applications and the queries or index templates they use, the plugins installed on each cluster, and a named owner for approving production changes. You will also need a maintenance window that fits your business, someone who can test application behavior after the upgrade, and a backup and restore path you have verified. Ask the provider to confirm in writing which of these tasks they perform and which they expect your staff to perform, so that no step falls between the two teams.

Can our own team perform the 1.x to 2.x upgrade?

Yes, if your team has operational experience with OpenSearch or Elasticsearch, can run a test upgrade first, and has time to review the breaking changes. The 2.0.0 release removed the type parameter from all API endpoints, dropped JDK 8 support, and integrated alerting with new Notifications plugins, so every client, index template, script and alerting configuration needs review. Teams often hand the work to a partner when they lack the time, when several clusters must move in parallel, or when the change must produce evidence for a compliance review. Whichever path you choose, the upgrade should be rehearsed on a copy of production data before any production node is touched.

Can we roll back after nodes have restarted on 2.x?

Not by simply reverting nodes in a rolling upgrade, so plan the rollback before the first restart. Rolling upgrades are supported only between adjacent major versions, and the rolling upgrade documentation covers the node-by-node sequence and the checks between nodes. In practice, your fallback is a verified snapshot taken before the upgrade, combined with a tested restore into a cluster on the old version or a parallel cluster. Confirm the exact downgrade and restore constraints in the rolling upgrade documentation for your target version before you agree on a rollback plan, and make sure the snapshot repository is reachable and its contents have been tested.

Do we need Migration Assistant for a 1.x to 2.x upgrade?

Usually not. Migration Assistant is designed for moving workloads across several major versions in one step and for live traffic capture with low or zero downtime, so it matters most when you are changing platforms or skipping versions. For a move from 1.x to 2.x, which is one major version, a rolling upgrade is the standard path when your clusters meet its conditions. Snapshot and restore into a new cluster is the other common option, and it suits teams that prefer a fresh build and can accept write downtime during cutover. Check the migration options in the OpenSearch docs against your topology, data volume and downtime tolerance before choosing a method.

Which OpenSearch 1.x version should we upgrade from first?

Your first step is to confirm your current version, because 1.x reached end of life on May 6, 2025 and receives no security patches. Version 1 is no longer maintained, so an unsupported cluster carries open risk from the day you find it. Record the exact build on every node, including Dashboards and plugins, since mismatched plugin versions are a common cause of failed upgrades. Then confirm the path to your target release, including any intermediate step your team needs. Ask the provider to confirm the starting build in its written scope, and treat the end-of-life date as a reason to schedule the work now rather than later.

How DeployOpen scopes and delivers a 1.x to 2.x upgrade

DeployOpen starts a 1.x to 2.x upgrade with an inventory and a test environment, not with a change window. The inventory records every cluster, its exact OpenSearch 1.x build, the JDK on each node, every installed plugin and its version, the index templates and any API calls that still pass the type parameter, and the alerting monitors and destinations that will need the new Notifications plugins. Because the 2.0.0 release removed the type parameter from all API endpoints and dropped JDK 8 support, these are the items most likely to break client code and automation. Before any work is priced, the client should confirm the OpenSearch version in use, which is in scope because version 1 reached end of life on May 6, 2025, and whether the cluster also feeds Dashboards, Security or other plugins that need matching versions.

The written scope follows from that inventory and is agreed before work starts. It names the clusters covered, the target 2.x release, the upgrade method (rolling upgrade or snapshot and restore, depending on the findings), the test environment that will mirror production data shape, the acceptance checks and who signs them off, and the deliverables: a runbook, a rollback plan, and a verification report. The runbook sets explicit rollback points, such as a verified snapshot before the first node restarts and a go or no-go check after each stage. Rolling upgrades are supported only between adjacent major versions, so the runbook must confirm the path from 1.x through the intermediate release rather than assume a direct jump. Ask the vendor to show how each rollback point is tested, not only documented.

After the upgrade, DeployOpen verifies cluster health, shard allocation, search and indexing results against the baseline, alerting monitors and their notification channels, security roles and audit logging, and client integrations that depended on removed type-based calls. Verification is written up so the client's operations team can rerun the same checks later. Ongoing support, upgrades and continuous testing are available as a retainer, which suits teams that will repeat the 2.x to 3.x path on their own schedule. Ask any provider for the written scope, the rollback evidence and the retest terms, and for a quote that separates the one-time upgrade from recurring support.

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.