You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Varun Thacker (JIRA)" <ji...@apache.org> on 2015/05/13 15:38:02 UTC

[jira] [Updated] (SOLR-5750) Backup/Restore API for SolrCloud

     [ https://issues.apache.org/jira/browse/SOLR-5750?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Varun Thacker updated SOLR-5750:
--------------------------------
    Attachment: SOLR-5750.patch

First pass at the feature.

*BACKUP:*
Required params - collection, name, location

Example API: 
{{/admin/collections?action=backup&name=my_backup&location=/my_location&collection=techproducts}}

It will create a backup directory called my_location inside which it will store the following -

/my_location
 /my_backup
  /shard1
  /shard2
  /zk_backup
   /zk_backup/configs/configName ( The config which was being used for the backup collection )
   /zk_backup/collection_state.json ( Always store the cluster state for that collection in collection_state.json )
   /backup.properties ( Metadata about the backup )

If you have setup any aliases or roles or any other special property then that will not be backed up. That might not be that useful to restore as the it could be restored in some other cluster. We can add it later if its required.

*BACKUPSTATUS:*
Required params - name

Example API: {{/admin/collections?action=backupstatus&name=my_backup}}

*RESTORE:*
Required params - collection, name, location

Example API: {{/admin/collections?action=restore&name=my_backup&location=/my_location&collection=techproducts_restored}}

You can't restore into an existing collection. Provide a collection name where you want to restore the index into. The restore process will create the collection similar to the backed up collection and restore the indexes.

Restoring in the same collection would be simple to add. But in that case we should only restore the indexes.

{{RESTORESTATUS:}}
Required params - name

Example API: {{/admin/collections?action=restorestatus&name=my_backup}}

Would appreciate a review on this. I'll work on adding more tests

> Backup/Restore API for SolrCloud
> --------------------------------
>
>                 Key: SOLR-5750
>                 URL: https://issues.apache.org/jira/browse/SOLR-5750
>             Project: Solr
>          Issue Type: Sub-task
>          Components: SolrCloud
>            Reporter: Shalin Shekhar Mangar
>            Assignee: Varun Thacker
>             Fix For: Trunk, 5.2
>
>         Attachments: SOLR-5750.patch
>
>
> We should have an easy way to do backups and restores in SolrCloud. The ReplicationHandler supports a backup command which can create snapshots of the index but that is too little.
> The command should be able to backup:
> # Snapshots of all indexes or indexes from the leader or the shards
> # Config set
> # Cluster state
> # Cluster properties
> # Aliases
> # Overseer work queue?
> A restore should be able to completely restore the cloud i.e. no manual steps required other than bringing nodes back up or setting up a new cloud cluster.
> SOLR-5340 will be a part of this issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org