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

[Discuss] [Remote Store] Supporting multiple remote stores per index #4437

Open
sachinpkale opened this issue Sep 7, 2022 · 1 comment
Open
Labels
discuss Issues intended to help drive brainstorming and decision making enhancement Enhancement or improvement to existing feature or request Storage:Remote

Comments

@sachinpkale
Copy link
Member

Is your feature request related to a problem? Please describe.
Currently, we support providing a repository name while creating a remote store enabled index. A repository points to a remote store and with this setting, only one remote store can be configured for a given index.
Sample payload:

{
  "settings": {
    "index": {
      "number_of_shards": 1,
      "number_of_replicas": 0,
      "replication": {
        "type": "SEGMENT"
      },
      "remote_store": {
        "enabled": true,
        "repository": "my-repo-1"
      }
    }
  }
}

In this issue, we want to discuss potential requirement of supporting multiple remote stores for an index.
One thing to note: Decision to support single vs multi repositories should not change the existing API contract. It can be handled in the same way _snapshot/_restore API handles indices:

if (name.equals("indices")) {
if (entry.getValue() instanceof String) {
indices(Strings.splitStringByCommaToArray((String) entry.getValue()));
} else if (entry.getValue() instanceof ArrayList) {
indices((ArrayList<String>) entry.getValue());
} else {
throw new IllegalArgumentException("malformed indices section, should be an array of strings");
}

@sachinpkale sachinpkale added enhancement Enhancement or improvement to existing feature or request untriaged labels Sep 7, 2022
@sachinpkale
Copy link
Member Author

@dblock @Bukhtawar

@dreamer-89 dreamer-89 added discuss Issues intended to help drive brainstorming and decision making distributed framework and removed untriaged labels Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discuss Issues intended to help drive brainstorming and decision making enhancement Enhancement or improvement to existing feature or request Storage:Remote
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants