Technique for creating an in-memory compact state of snapshot metadata
Abstract
A technique creates a compact state of snapshot metadata and associated selected snapshots that are frequently used and maintained in memory of a node of a cluster to facilitate processing of workflow operations associated with a logical entity in a disaster recovery (DR) environment. The compact state represents a minimal subset of snapshot metadata that is frequently used to perform operations in accordance with the DR workflow operations. In addition, metadata associated with the progress of the DR workflow operations processed by the node is periodically consolidated within the compact state. Illustratively, the selected frequently used snapshots of the logical entity include (i) a recently created snapshot; (ii) one or more reference snapshots; (iii) a snapshot scheduled for replication; and (iv) any snapshot that is queued for a current or future-scheduled operation. The technique is also directed to a snapshot and metadata eviction policy that is configured to evict infrequently used snapshots and snapshot metadata to improve memory space consumption of the memory.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 22 · Forward citations: 0.
Claims (30 — 3 Independent, 27 Dependent)
- Claim 1Independent Claim
A method comprising: scheduling creation of a first snapshot to support application operations processed by a node; retaining a first compact state for the first snapshot in a memory of the node based on a predicted use of one or more fields of metadata of the first snapshot by a first application operation, wherein the one or more fields of the first compact state represent a filtered subset of metadata including frequently referenced attributes of the first snapshot, wherein the filtered subset of metadata is retrieved from a backing store based on frequency of use of the referenced attributes to demand-page the metadata from the backing store to reduce memory consumption; completing the first application operation using the first compact state; and in response to predicting that the first compact state is not needed by a future application operation, evicting the first compact state from the memory.
- Claim 2Depends on #1
The method of claim 1 further comprising: predicting whether an additional field of metadata of a second snapshot is needed by a second application operation; and in response to predicting that the additional field of metadata of the second snapshot is needed by the second application operation, retaining a second compact state in the memory by demand-paging the one or more fields and an additional field of metadata of the second snapshot from the backing store into the second compact state.
- Claim 3Depends on #1
The method of claim 1 wherein in response to the prediction that at least one of the one or more fields of metadata are unused, removing the at least one of the one or more fields from the first snapshot in the memory.
- Claim 4Depends on #2
The method of claim 2 further comprising in response to determining that the additional field of metadata of the second snapshot is not needed for the future operation, removing the additional field from the second compact state to further reduce the memory consumption.
- Claim 5Depends on #2
The method of claim 2 wherein the first snapshot is a reference snapshot and wherein the second snapshot represents an incremental change from the first snapshot.
- Claim 6Depends on #1
The method of claim 1 further comprising demand paging additional snapshot metadata into the memory needed to complete the first application operation.
- Claim 7Depends on #1
The method of claim 1 further comprising, in response to failure of the node, performing one or more recovery operations using the first compact state of the first snapshot, wherein the snapshot metadata of the first compact state is needed to recover point-in-time information of the first snapshot.
- Claim 8Depends on #1
The method of claim 1 wherein the one or more fields of metadata is retained in memory based on a status in a disaster recovery (DR) workflow hierarchy as represented by a DR state.
- Claim 9Depends on #8
The method of claim 8 wherein the DR state comprises meta-information that indicates current or future progress of DR workflow operations, as well as the snapshots needed to process those operations.
- Claim 10Depends on #8
The method of claim 8 wherein the status is defined by eviction rules and their reference to current or future application operations.
- Claim 11Independent Claim
A non-transitory computer readable medium including program instructions for execution on a processor of a node, the program instructions configured to: schedule creation of a first snapshot to support application operations processed by the node; retain a first compact state for the first snapshot in a memory of the node based on a predicted use of one or more fields of metadata of the first snapshot by a first application operation, wherein the one or more fields of the first compact state represent a filtered subset of metadata including frequently referenced attributes of the first snapshot, wherein the filtered subset of metadata is retrieved from a backing store based on frequency of use of the referenced attributes to demand-page the metadata from the backing store to reduce memory consumption; complete the first application operation using the first compact state; and in response to predicting that the first compact state is not needed by a future application operation, evict the first compact state from the memory.
- Claim 12Depends on #11
The non-transitory computer readable medium of claim 11, wherein the program instructions are further configured to: predict whether an additional field of metadata of a second snapshot is needed by a second application operation; and in response to predicting that the additional field of metadata of the second snapshot is needed by the second application operation, retain a second compact state in the memory by demand-paging the one or more fields and an additional field of metadata of the second snapshot from the backing store into the second compact state.
- Claim 13Depends on #11
The non-transitory computer readable medium of claim 11, wherein the program instructions are further configured to in response to the prediction that at least one of the one or more fields of metadata are unused, removing the at least one of the one or more fields from the first snapshot in the memory.
- Claim 14Depends on #12
The non-transitory computer readable medium of claim 12, wherein the program instructions are further configured to in response to determining that the additional field of metadata of the second snapshot is not needed for the future operation, remove the additional field from the second compact state to further reduce the memory consumption.
- Claim 15Depends on #12
The non-transitory computer readable medium of claim 12, wherein the first snapshot is a reference snapshot and wherein the second snapshot represents an incremental change from the first snapshot.
- Claim 16Depends on #11
The non-transitory computer readable medium of claim 11, wherein the program instructions are further configured to demand page additional snapshot metadata into the memory needed to complete the first application operation.
- Claim 17Depends on #11
The non-transitory computer readable medium of claim 11, wherein the program instructions are further configured to, in response to failure of the node, perform one or more recovery operations using the first compact state of the first snapshot, wherein the snapshot metadata of the first compact state is needed to recover point-in-time information of the first snapshot.
- Claim 18Depends on #11
The non-transitory computer readable medium of claim 11, wherein the program instructions are further configured to retain the one or more fields of metadata in memory based on a status in a disaster recovery (DR) workflow hierarchy as represented by a DR state.
- Claim 19Depends on #12
The non-transitory computer readable medium of claim 12, wherein the program instructions are further configured to store the compact states in a write-ahead log data structure configured to, in response to failure of the node, facilitate loading of the filtered subsets of metadata substantially fast in the memory during reboot of the node.
- Claim 20Independent Claim
An apparatus comprising: a node having a memory and a processor configured to execute program instructions to: schedule creation of a first snapshot to support application operations processed by the node; retain a first compact state for the first snapshot in the memory based on a predicted use of one or more fields of metadata of the first snapshot by a first application operation, wherein the one or more fields of the first compact state represent a filtered subset of metadata including frequently referenced attributes of the first snapshot, wherein the filtered subset of metadata is retrieved from a backing store based on frequency of use of the referenced attributes to demand-page the metadata from the backing store to reduce memory consumption; complete the first application operation using the first compact state; and in response to predicting that the first compact state is not needed by a future application operation, evict the first compact state from the memory.
- Claim 21Depends on #20
The apparatus of claim 20, wherein the program instructions further include program instructions to: predict whether an additional field of metadata of a second snapshot is needed by a second application operation; and in response to predicting that the additional field of metadata of the second snapshot is needed by the second application operation, retain a second compact state in the memory by demand-paging the one or more fields and an additional field of metadata of the second snapshot from the backing store into the second compact state.
- Claim 22Depends on #20
The apparatus of claim 20, wherein the program instructions further include program instructions to in response to the prediction that at least one of the one or more fields of metadata are unused, remove the at least one of the one or more fields from the first snapshot in the memory.
- Claim 23Depends on #21
The apparatus of claim 21, wherein the program instructions further include program instructions to, in response to determining that the additional fields of metadata of the second snapshot is not needed for the future operation, remove the additional field from the second compact state to further reduce the memory consumption.
- Claim 24Depends on #21
The apparatus of claim 21, wherein the first snapshot is a reference snapshot and wherein the second snapshot represents an incremental change from the first snapshot.
- Claim 25Depends on #20
The apparatus of claim 20, wherein the program instructions further include program instructions to demand page additional snapshot metadata into the memory needed to complete the first application operation.
- Claim 26Depends on #20
The apparatus of claim 20, wherein the program instructions further include program instructions to, in response to failure of the node, perform one or more recovery operations using the first compact state of the first snapshot, wherein the snapshot metadata of the first compact state is needed to recover point-in-time information of the first snapshot.
- Claim 27Depends on #20
The apparatus of claim 20, wherein the program instructions further include program instructions to retain the one or more fields of metadata in memory based on a status in a disaster recovery (DR) workflow hierarchy as represented by a DR state.
- Claim 28Depends on #27
The apparatus of claim 27 wherein the DR state comprises meta-information that indicates current or future progress of DR workflow operations, as well as the snapshots needed to process those operations.
- Claim 29Depends on #27
The apparatus of claim 27 wherein the status is defined by eviction rules and their reference to current or future application operations.
- Claim 30Depends on #21
The apparatus of claim 21, wherein the program instructions further include program instructions to store the compact states in a write-ahead log data structure configured to, in response to failure of the node, facilitate loading of the filtered subsets of metadata substantially fast in the memory during reboot of the node.
Technical Overview & Description
CROSS-REFERENCE TO RELATED APPLICATIONS The present application claims the benefit of India Provisional Patent Application Serial No. 202141020922, which was filed on May 8, 2021, by Abhishek Gupta, et al. for TECHNIQUE FOR CREATING AN IN-MEMORY COMPACT STATE OF SNAPSHOT METADATA, which is hereby incorporated by reference. BACKGROUND Technical Field The present disclosure relates to snapshots and, more specifically, to use of snapshots and snapshot metadata to facilitate processing of workflow operations in a disaster recovery (DR) environment. Background Information Data failover generally involves copying or replicating data of workloads among one or more nodes of clusters embodied as, e.g., datacenters to enable continued operation of data processing operations in a multi-site data replication environment, such as disaster recovery (DR). Such data replication may involve a large number of point-in-time images or “ snapshots ” of workloads that include data of the snapshot (e.g., a virtual disk exported to the VM) as well as snapshot metadata. However, not all snapshots and snapshot metadata may be needed for all snapshot operations as many snapshots are created to support arbitrary roll-back, which is rarely used. Yet, all of the snapshot metadata associated with each snapshot is typically maintained in memory even if some of the snapshots and metadata are infrequently used. Maintenance of infrequently used snapshots and snapshot metadata needlessly increases consumption of resources such as memory (i.e., memory footprint). BRIEF DESCRIPTION OF THE DRAWINGS The above and further advantages of the embodiments herein may be better understood by referring to the following description in conjunction with the accompanying drawings in which like reference numerals indicate identically or functionally similar elements, of which: FIG. 1 is a block diagram of a plurality of nodes interconnected as a cluster in a virtualized environment; FIG. 2 is a block diagram of a virt
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (22)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- Cano, Ignacio,
- “
- Curator: Self-Managing Storage for Enterprise Clusters
- ”
- University of Washington; published Mar. 2017; pp. all.
- Poitras, Steven
- “
- The Nutanix Bible
- ”
- from http://stevenpoitras.com/the-nutanix-bible/ Oct. 15, 2013 (Publication date based on indicated capture date by Archive.org first publication date unknown) pp. all.