Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

In case new requirements, either in terms of load capacity or functionality (i.E. new supported languages), are introduced to a Momentum System during production, it may become necessary to overhaul the backend Elasticsearch cluster by performing a Reindex operation. The operation itself is slow and resource-intensive, as it essentially creates a copy of the orignal Elasticsearch Index within the same Elasticsearch cluster, so make sure enough storage space is available and optionally create more data nodes which can be shut down after the operation

An Elasticsearch Reindex entails the creation of a new Momentum-capable Index, the migration of Elasticsearch data from the original Index into said new Index, and finally the removal of the old Index. These steps are achieved by interaction with the Elasticsearch API, which is exposed by Elasticsearch through Port 9200 on elected Master Nodes. It's highly recommended to create an Elasticsearch snapshot using the same API before attempting the Reindex.

Below you can find a detailed overview of the CURL commands needed to successfully perform a Reindex in yuuvis® Momentum. Note that all commands assume you have port-forwarded the ElasticSearch API to http:\\localhost:9200.

1. Creating a Momentum-Capable Elasticsearch Index

Two steps are required to create an Elasticsearch Index that can interact with yuuvis® Momentum:

1. Creating a new Elasticsearch Index

A new index needs to be created to fit the specifications of the new requirements. 

 CURL command & more information
CURL command
 



2. Apply yuuvis® Momentum Elasticsearch Index Mapping

The yuuvis® Momentum services require Elasticsearch to use a custom mapping. Using Elasticsearchs' automatic mapping algorithm for reindexing renders the new index unusable for the Momentum System.

 CURL command & more information
CURL command
 

2. Migrating the Data to the new Index

Once a compatible Index has been created, the Reindex operation can be triggered through the Elasticsearch API.

 CURL command & more information
CURL command
 

After the reindex has completed, the new Index must be activated by reassigning the 'yuuvis' alias from the old Index to the new.  

 CURL command & more information
CURL command
 

3. Deleting the original Index

To free up space in the Elasticsearch Cluster, it's sensible to remove the original Index after verifying the Momentum system has accepted the new Index.

 CURL command & more information
CURL command
 
  • No labels