This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11230|Reply: 0

Elasticsearch (ES) replicates the clone index

[Copy link]
Posted on 1/28/2021 3:01:38 PM | | | |
Scenario: When operating on document data in ES, we may need to back up the data and use Elasticsearch (ES) to copy the clone index.

Method 1:

With the _reindex command, in its most basic form_reindex simply copying documents from one index to another. However, it does not copy the configuration information such as shard (shard) and replicas of the original index.



Method 2:

Use the clone command

To clone an index, it must be marked as read-only and the cluster health is green.

For example, the following request prevents a write operation on it, my_source_index can therefore clone it. Metadata changes, such as deleting indexes, are still allowed.


Resources:The hyperlink login is visible.




Previous:Elasticsearch(ES) cluster health: yellow (6 of 7) status
Next:SQL Server multi-version concurrency control
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com