CPC G06F 3/0647 (2013.01) [G06F 3/0604 (2013.01); G06F 3/0679 (2013.01)] | 16 Claims |
1. A method for live migration of an index in a document store, the method comprising:
creating a new index based on a change request, wherein the change request designates at least one change relative to a current index, wherein the new index includes mappings and settings of the current index together with the at least one requested change, wherein the new index and the current index are properties of the document store;
initiating a reindexing process of the new index by copying documents from the current index to the new index, wherein the current index remains active during the reindexing of the new index;
resharding the current index, wherein resharding the current index comprises:
checking if a size of each shard defined in the current index exceeds an allowable size of the shard;
determining a new number of shards based on the current index, wherein the new number of shards is higher than a current number of shards defined for the current index;
creating a new index based on same mappings of the current index, wherein the new index is set with the determined new number of shards; and
migrating the current index to the new index, wherein the current index remains activate during the migration store; and
upon successful completion of the reindexing process, deleting the current index and directing write and read requests to the new index.
|