Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Clone Index API #44267

Merged
merged 4 commits into from
Jul 25, 2019
Merged

Add Clone Index API #44267

merged 4 commits into from
Jul 25, 2019

Conversation

ywelsch
Copy link
Contributor

@ywelsch ywelsch commented Jul 12, 2019

Adds an API to clone an index. This is similar to the index split and shrink APIs, just with the difference that the number of primary shards is kept the same. In case where the filesystem provides hard-linking capabilities, this is a very cheap operation.

Indexing cloning can be done by running POST my_source_index/_clone/my_target_index and it supports the same options as the split and shrink APIs.

Relates to #44128

@ywelsch ywelsch added >enhancement :Data Management/Indices APIs APIs to create and manage indices and templates v8.0.0 v7.4.0 labels Jul 12, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-features

@jakelandis jakelandis requested a review from dakrone July 18, 2019 15:00
Copy link
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I left one really minor (optional) commit

docs/reference/indices/clone-index.asciidoc Outdated Show resolved Hide resolved
@ywelsch ywelsch merged commit 76fcc81 into elastic:master Jul 25, 2019
ywelsch added a commit that referenced this pull request Jul 25, 2019
Adds an API to clone an index. This is similar to the index split and shrink APIs, just with the
difference that the number of primary shards is kept the same. In case where the filesystem
provides hard-linking capabilities, this is a very cheap operation.

Indexing cloning can be done by running `POST my_source_index/_clone/my_target_index` and it
supports the same options as the split and shrink APIs.

Closes #44128
ywelsch added a commit that referenced this pull request Jul 25, 2019
Changes the BWC conditions for the clone index API after backport of the feature to 7.x
jkakavas pushed a commit that referenced this pull request Jul 31, 2019
Adds an API to clone an index. This is similar to the index split and shrink APIs, just with the
difference that the number of primary shards is kept the same. In case where the filesystem
provides hard-linking capabilities, this is a very cheap operation.

Indexing cloning can be done by running `POST my_source_index/_clone/my_target_index` and it
supports the same options as the split and shrink APIs.

Closes #44128
jkakavas pushed a commit that referenced this pull request Jul 31, 2019
Changes the BWC conditions for the clone index API after backport of the feature to 7.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants