As information volumes proceed to develop exponentially, there may be rising strain to optimize search infrastructure prices whereas sustaining the excessive efficiency and reliability that mission-critical workloads demand. Many corporations discover themselves managing advanced, costly search programs that require important operational overhead and restrict their means to scale effectively. The problem turns into much more acute when organizations have to migrate between search programs, a course of that historically entails substantial downtime, advanced information synchronization, and important influence on enterprise operations. Enterprise purposes can’t afford service interruptions that would influence buyer experiences, enterprise intelligence, or operational continuity. Migration methods have to ship value optimization and operational enhancements whereas sustaining zero downtime and facilitating full information integrity all through the transition course of.
Based in 2013, Octus, previously Reorg, is the important credit score intelligence and information supplier for the world’s main purchase facet corporations, funding banks, regulation corporations and advisory corporations. By surrounding unparalleled human experience with confirmed expertise, information and AI instruments, Octus unlocks highly effective truths that gasoline decisive motion throughout monetary industries.
This submit highlights how Octus migrated its Elasticsearch workloads working on Elastic Cloud to Amazon OpenSearch Service. The journey traces Octus’s shift from managing a number of programs to adopting a cost-efficient answer powered by OpenSearch Service. Alongside the best way, we share the structure decisions and implementation methods that made the migration profitable. The result’s uninterrupted service availability all through migration, with improved efficiency and better value effectivity.
Strategic necessities
We recognized a number of necessities that made Amazon OpenSearch Service the proper alternative for his or her migration:
- Price effectivity: The OpenSearch Service pricing mannequin enabled us to optimize cloud spend with out compromising efficiency.
- Responsive assist: AWS supplied reliable, high-quality assist to speed up situation decision and instill confidence.
- Constant reliability: OpenSearch Service gives an SLA as much as 99.99% providing the reliability required for Octus’s mission-critical workloads.
- Seamless migration with no question downtime: Migration Assistant for Amazon OpenSearch Service supplied Octus with a migration path whereas sustaining uninterrupted question availability through the migration, facilitating enterprise continuity.
- Operational simplification: Consolidating onto AWS diminished infrastructure complexity whereas sustaining excessive safety requirements.
Answer overview
The Migration Assistant for Amazon OpenSearch Service gives a set of instruments to help in Elasticsearch to OpenSearch Service migrations. Octus use the next capabilities for his or her migration:
- Metadata migration: The device enabled Octus emigrate dozens of indices with numerous mappings and settings. When a backward incompatibility was recognized with timestamp metadata, a customized JavaScript transformation, built-in straight into the Migration Assistant tooling, was utilized to mechanically alter the mappings throughout the indices and facilitate compatibility.
- Historic information migration: Octus used Reindex-from-Snapshot emigrate the historic paperwork from a point-in-time snapshot of the supply cluster, scaling this course of with out impacting the supply cluster for the reason that snapshot was saved in Amazon Easy Storage Service (Amazon S3). Reindex-from-Snapshot additionally enabled Octus to regulate the sharding scheme throughout migration, serving to to optimize cluster efficiency on the goal.
- Reside Visitors Replay: As soon as backfill was full, Octus used Migration Assistant’s Visitors Replayer to ship the captured reside visitors (from the Visitors Seize Proxy) to the goal cluster with required request transformations for OpenSearch Service compatibility, ensuing within the goal cluster containing the paperwork from the supply cluster with updates being carried out in actual time.
The next diagram illustrates the implementation structure diagram for this migration.
Determine 1 – Migration Assistant structure with migration steps
For extra details about the Migration Assistant for Amazon OpenSearch Service, go to the AWS Options residence web page.
Every node within the diagram correlates to the next steps within the migration course of:
- Consumer visitors is directed to the present cluster.
- An Software Load Balancer with seize proxies relays visitors to a supply whereas replicating information to Amazon Managed Streaming for Apache Kafka (Amazon MSK).
- Utilizing the migration console, a point-in-time snapshot is taken. As soon as the snapshot completes, the Metadata Migration Device is used to determine indexes, templates, element templates, and aliases on the goal cluster. With steady visitors seize in place, Reindex-from-Snapshot, migrates information from the supply.
- As soon as Reindex-from-Snapshot is full, captured visitors is replayed from Amazon Managed Streaming for Apache Kafka (Amazon MSK) to the goal cluster by Visitors Replayer.
- Efficiency and habits of visitors despatched to the supply and goal clusters are in contrast by reviewing logs and metrics.
- After confirming that the goal cluster’s performance meets expectations, purchasers are redirected to the brand new goal.
Full migration and optimization journey
Octus’s migration from Elastic Cloud to Amazon OpenSearch Service encompassed each the core migration effort and subsequent optimization phases. The objective was to efficiently migrate the search infrastructure, purposes, and information from Elastic Cloud to a brand new OpenSearch Service area with minimal disruption, whereas repeatedly optimizing efficiency and prices primarily based on real-world utilization information.
Octus used their in-house customized infrastructure frameworks (their inner tooling for infrastructure automation) to construct, deploy and monitor the goal OpenSearch Service 1.3 area, establishing a strong basis for the migration. This strategy used acquainted inner processes whereas shifting to the totally managed AWS service. Confer with AWS documentation to implement safety greatest practices when utilizing OpenSearch Service.
Pre-migration optimization
Previous to initiating the migration, Octus carried out optimization actions on the supply Elasticsearch cluster to streamline the migration course of. This included eradicating unused indexes that had collected over time and eradicating giant paperwork that may unnecessarily prolong migration length and enhance storage switch prices. These preparatory steps considerably diminished the information quantity requiring migration and minimized the general migration complexity, enabling extra environment friendly use of the Migration Assistant instruments.
Technical constraints and model issues
The migration concerned particular model compatibility challenges that influenced the technical strategy. The supply Elasticsearch cluster was working model 7.17, and the Python shopper purposes had been additionally constrained to Elasticsearch 7.17 compatibility. To assist the transition, the crew used Reindex-from-Snapshot, which permits cross-system migrations by reindexing information from current snapshots into a brand new OpenSearch Service cluster. RFS additionally rewrites indices created on older variations of Lucene, simplifying future upgrades to the newest model of OpenSearch Service. Whereas evaluating a transfer to OpenSearch 1 or 2, Octus chosen OpenSearch 1.3 because the goal to attenuate client-side modifications and scale back migration complexity, whereas positioning themselves for less complicated upgrades later.
The model choice significantly impacted the R utility surroundings, as R language (an open-source programming language for statistical computing and information evaluation) lacked native OpenSearch 1.3 shopper assist. This constraint required Octus to develop a customized shopper answer utilizing the ropensci/elastic library to combine with the brand new OpenSearch Service area. The Python surroundings offered related challenges, the place the Elasticsearch 7.17 shopper constraints necessitated cautious consideration of the migration strategy. These shopper compatibility considerations had been among the many components that influenced the selection of Migration Assistant instruments over conventional snapshot-based strategies, because the Migration Assistant supplied higher assist for managing version-specific shopper interactions through the transition.
Trying ahead, Octus plans to improve to newer OpenSearch variations as their utility stack evolves and shopper library assist matures, in order that they will leverage the newest options and efficiency enhancements whereas sustaining the soundness achieved by way of this migration.
Software modernization throughout a number of languages
The appliance modifications represented a big technical endeavor throughout a number of programming environments:
- Legacy PHP programs (5.6 and Laravel 4.2): Octus dealt with mapping sort deprecation on OpenSearch requests as specifying these mapping sorts are usually not supported, whereas persevering with to make use of the elasticsearch connector library with username/password authentication.
- Fashionable PHP purposes (8.1 and Laravel 9): These underwent extra complete modifications, changing the elasticsearch/elasticsearch library with the opensearch-project/opensearch-php shopper and leveraging IAM authentication to hook up with the clusters.
- Python surroundings: Functions spanning variations 3.8, 3.10, 3.11, and three.13 with Django frameworks 2.1, 3.2, and 5.2 required changing the elasticsearch library with opensearch-py and transitioning to IAM authentication.
- R purposes: For R 4.5.1 purposes, Octus utilized a customized library ropensci/elastic to facilitate compatibility.
Visitors routing and enhanced monitoring
To facilitate the migration, Octus redirected their current purchasers to route requests to the supply cluster by way of Migration Assistant’s Visitors Seize Proxy, migrating the information from reside visitors to their goal cluster.
The monitoring infrastructure underwent important enhancement throughout this course of. Octus’s observability infrastructure screens the general well being of OpenSearch Service clusters which incorporates cluster supervisor and information nodes, community, information storage, safety and IAM entry. It additionally screens the indexing and search efficiency of their purposes. This alleviated the necessity for a separate monitoring cluster as logs and metrics had been shipped on to Datadog, considerably enhancing observability. The Datadog screens had been outlined utilizing Infrastructure-as-Code and built-in seamlessly into their infrastructure frameworks.
Cutover and preliminary outcomes
The Web site Reliability Engineering crew meticulously deliberate the discharge, attaining a profitable migration from Elasticsearch to OpenSearch Service and cutover of the Elasticsearch shopper to the OpenSearch Service purchasers with no downtime for the system utility and nil information loss. The preliminary migration section resulted in a 52% value discount whereas attaining operational advantages together with zero downtime for the system app, no information loss, full Infrastructure-as-Code implementation for infrastructure and monitoring, and enhanced observability.
Submit-migration optimization
Following the migration, Octus carried out complete optimization primarily based on operational information from manufacturing and different environments within the new OpenSearch Service setup. This real-world utilization information supplied precious insights into precise useful resource consumption, enabling knowledgeable choices relating to additional cluster resizing.
By utilization metric evaluation and strategic resizing, Octus aligned cluster measurement extra exactly with operational wants, facilitating continued efficiency whereas minimizing expenditure. This optimization section delivered a further 33% value discount in comparison with the unique Elastic Cloud prices, bringing the full discount to 85% whereas sustaining constant and optimum efficiency.
Operational monitoring
Octus makes use of Datadog to observe each search and indexing latency offering real-time visibility into Amazon OpenSearch Service cluster efficiency. The next screenshot showcases how customized Datadog dashboards present a reside view of the OpenSearch Service clusters. This visualization presents each a high-level overview and detailed insights into the ingestion course of, serving to us perceive the storage and doc depend. The underside half of the dashboard presents a time-series view of particular person node well being and efficiency metrics like learn and write latency, throughput and IOPS.

Determine 2 – DataDog dashboards
Migration observability
Migration Assistant for Amazon OpenSearch Service gives a number of dashboards to watch and validate the progress of a migration. By utilizing these observability options prospects can monitor each backfill and reside seize and replay progress, facilitating confidence earlier than switching manufacturing workloads to the goal cluster.The next graphs are an instance from Octus’s migration, the place roughly 4TB of knowledge was migrated in about 9 hours (from 08:00 to 17:00).

Determine 3 – Backfill progress by disk utilization

Determine 4 – Backfill progress by searchable paperwork
As soon as the backfill is full, the captured visitors is replayed to synchronize ongoing exercise between the supply and goal clusters.
On the time the backfill completed (round 17:00), the goal cluster was roughly 467 minutes behind the supply. The replay course of quickly diminished this lag by processing captured visitors at a quicker price than it was initially ingested on the supply.

Determine 5 – Replay lag after backfill completion
When the lag time reached 0, the goal cluster was totally in sync and manufacturing visitors might safely be rerouted. Octus selected to watch replayed visitors on the goal for a number of days earlier than making the ultimate switchover.
Attaining excellence
Octus’s migration to Amazon OpenSearch Service has yielded exceptional outcomes:
- Scalability – Octus has nearly doubled the variety of paperwork out there for Q&A throughout three environments in days as a substitute of weeks. Their use of Amazon Elastic Container Service (Amazon ECS) with AWS Fargate with auto scaling guidelines and controls provides them elastic scalability for his or her companies throughout peak utilization hours.
- Price discount – By shifting away from Elastic Cloud to OpenSearch Service, Octus’s month-to-month infrastructure prices are actually 85% decrease.
- Enhanced search efficiency – Octus maintained constant response occasions all through the migration with no detrimental influence on latency, whereas attaining a 20% enchancment in question throughput and general search efficiency.
- Zero downtime – Octus skilled zero downtime throughout migration and 100% uptime general for the entire utility.
- Diminished operational overhead – Submit-migration, Octus’s DevOps and SRE groups see 30% much less upkeep burden and overheads. Supporting SOC2 compliance can also be easy now that they’re utilizing one system.
- Accelerated timeline supply – Your entire migration was accomplished forward of schedule, shifting from planning to full completion in underneath one quarter.
“Transferring from Elastic Cloud to Amazon OpenSearch Service was a key element of our broader technique to attenuate third-party dependencies and strengthen the reliability of Octus’ system infrastructure. Migration Assistant for Amazon OpenSearch Service enabled us to execute a seamless transition with zero information loss and just about no downtime for our customers.” – Vishal Saxena, CTO, Octus
Conclusion
On this submit, we confirmed you ways Octus efficiently migrated their Elasticsearch workloads from Elastic Cloud to Amazon OpenSearch Service utilizing the Migration Assistant for OpenSearch Service, attaining zero downtime and important operational enhancements.
The Migration Assistant for OpenSearch Service supported this advanced migration by way of its complete suite of instruments. The Metadata Migration functionality migrated dozens of indices with numerous mappings and settings, with customized JavaScript transformations dealing with backward incompatibilities. Reindex-from-Snapshot migrated the historic paperwork from point-in-time snapshots with out impacting the supply cluster, whereas additionally optimizing the sharding scheme for improved efficiency. Reside Visitors Replay made positive the goal cluster remained synchronized with real-time updates all through the migration course of.
The migration delivered substantial outcomes throughout the size. Octus achieved an 85% discount in month-to-month infrastructure prices whereas practically doubling the variety of paperwork out there for search throughout three environments. Search efficiency improved by 20% in question throughput with constant response occasions and no detrimental influence on latency. The migration maintained zero downtime and 100% uptime for the whole utility, with DevOps and SRE groups experiencing 30% much less upkeep burden and operational overhead. Your entire migration was accomplished forward of schedule in underneath one quarter.
To be taught extra in regards to the Migration Assistant for OpenSearch Service and the way it can assist you obtain related outcomes, go to the AWS Options residence web page.
Go to Octus to find out how we ship rigorously verified intelligence at velocity and create an entire image for professionals throughout the whole credit score lifecycle. Observe Octus on LinkedIn and X.
In regards to the Authors
