Data access in a collection of compute nodes
The system optimizes data access and resource usage in memory arrangements by enabling virtual processors to manage data independently within a shared storage system, addressing inefficiencies in data exchange and anomaly recovery.
Patent Information
- Application Number
- DE102023136251
- Authority / Receiving Office
- DE · DE
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-24
- Filing Date
- 2023-12-21
- Publication Date
- 2024-10-24
AI Technical Summary
Existing memory arrangements face inefficiencies in data access and resource consumption due to the exchange of large data between virtual processors in a cluster of computing nodes, particularly in managing data access in a shared storage system.
Implementing a system where virtual processors orchestrate data access requests without exchanging data between nodes by utilizing index and chunkstore modules, intent and commit structures, and anomaly recovery protocols to manage metadata and data independently, reducing resource consumption.
Enhances data throughput by minimizing data exchange between virtual processors, optimizing resource usage, and ensuring efficient data management and recovery from anomalies.
Smart Images

Figure 00000000_0000_ABST
Abstract
Description
background
[0001] A storage arrangement may include a cluster of compute nodes that manage access to data in a common storage system shared by the cluster of compute nodes. Each compute node of the cluster of compute nodes may execute one or more virtual processors, with each virtual processor managing access to a corresponding data partition in the shared storage system. Brief description of the drawings
[0002] Some embodiments of the present disclosure are described with reference to the following figures. Fig. 1 is a block diagram of an arrangement including a cluster of compute nodes, a shared storage system, and request devices, according to some examples. The Fig. 2A-2C are block diagrams of metadata structures according to some examples. Fig.3 is a flowchart of a write processing process involving various virtual processors, in accordance with some examples. Fig. 4 is a flowchart of a read processing process involving various virtual processors, according to some examples. Fig. 5 is a flowchart of an anomaly handling process involving various virtual processors, according to some examples. Fig. 6 is a flowchart of a receiver virtual processor process according to some examples. Fig. 7 is a block diagram of a storage medium storing machine-readable instructions according to some examples. Fig. 8 is a block diagram of a system according to some examples. Fig. 9 is a flowchart of a method according to some examples.
[0003] In the drawings, identical reference numbers indicate similar, but not necessarily identical, elements. The illustrations are not necessarily to scale, and the size of some parts may be exaggerated to clarify the example shown. Furthermore, the drawings contain examples and / or embodiments consistent with the description; however, the description is not limited to the examples and / or embodiments shown in the drawings. Detailed description
[0004] A "virtual processor" can refer to a computing unit implemented with machine-readable instructions that can be executed on a compute node. By managing access to data in different data partitions, each with a different virtual processor running on a cluster of compute nodes, data throughput can be improved when the virtual processors access data from a shared storage system in parallel. A "shared" storage system is a storage system that is shared (i.e., accessible) by every compute node in the cluster of compute nodes.
[0005] A data access request (write request or read request) may be received at a particular compute node of the cluster of compute nodes. A virtual processor within that compute node may be assigned to service the data access request. The assigned virtual processor assigned to service a particular data access request may be referred to as a "source virtual processor" with respect to the particular data access request. In some examples, the source virtual processor may not be the virtual processor that "owns" the metadata for the data subject to the data access request (i.e., manages access and / or updates). In some examples, the source virtual processor may not be the virtual processor that "owns" the data subject to the request (i.e., manages reading and writing of that data in the shared storage system).The virtual processor that owns the metadata for the data that is the subject of a given data access request may be referred to as a "virtual metadata processor" with respect to the given data access request, and the virtual processor that owns the data that is the subject of the given data access request may be referred to as a "virtual data processor" with respect to the given data access request.
[0006] Since different virtual processors may have different roles with respect to the data of a particular data access request (i.e., a source virtual processor receives a data access request, a metadata virtual processor manages the metadata for the data that is the subject of the data access request, and the data virtual processor is responsible for accessing the data in question), orchestration is performed between the different virtual processors to process the particular data access request.
[0007] However, the data subject to a read or write request can be relatively large (the data in question can be megabytes, gigabytes, terabytes, etc.), so transferring the data in question between compute nodes as part of the orchestration (sometimes referred to as "east-west" data communication) can consume significant storage array resources. The resources consumed can include communication, processing, and storage resources.
[0008] According to some implementations of the present disclosure, in a storage arrangement having a cluster of compute nodes executing virtual processors for managing access to corresponding data partitions, a data access request is processed by orchestrating the interactions between at least two virtual processors, where the orchestration may include exchanging metadata for the data in question without exchanging the data in question between the virtual processors. In other words, in order to process the data access request, the exchange of the data in question between the compute nodes may be avoided or made less likely. For a write request (e.g.In a write request (e.g., a put request to add a data object's payload to a shared storage system), a source virtual processor (on the compute node that received the write request) interacts with a metadata virtual processor to obtain metadata that can be used by the source virtual processor to update an intent structure (which stores entries indicating intentions to write data) and complete the data write operation. The intent structure can be used for error recovery if an error condition prevents the data write from completing in response to the write request.
[0009] For a read request (for example, a fetch request to retrieve a data object from the shared storage system), a source virtual processor can work with both a metadata virtual processor and a data virtual processor to read the requested data.
[0010] Fig.1 is a block diagram of an example arrangement comprising a cluster 100 of compute nodes 102-1, 102-2, ..., 102-N (N ≥ 2). A "compute node" may refer to a physical node that includes a processing resource as well as other resources (e.g., communication resources and memory resources) capable of performing various tasks. A "processing resource" may include one or more hardware processing circuits, which may include any one or a combination of a microprocessor, a core of a multi-core microprocessor, a microcontroller, a programmable integrated circuit, a programmable gate array, or other hardware processing circuitry. A "communication resource" may include a communication interface (including communication hardware such as a transceiver and any associated machine-readable instructions).A “storage resource” may include storage implemented with a collection of one or more storage devices.
[0011] The cluster 100 of compute nodes can manage access to data stored in a shared storage system 104 in response to data access requests from request devices 106. As used herein, a "request device" can refer to any electronic device capable of sending a request for data access (reading or writing data). Examples of electronic devices include any one or a combination of the following: desktop computers, notebook computers, tablet computers, server computers, gaming devices, Internet of Things (IoT) devices, vehicles, home appliances, and so on.
[0012] The shared storage system 104 can be accessed by any of the compute nodes 102-1 through 102-N via a communication link 108 between the cluster 100 of compute nodes and the shared storage system 104. The shared storage system 104 is implemented by a collection of storage devices 110. As used herein, a "collection" of items may refer to a single item or multiple items. Thus, the collection of storage devices 110 may include a single storage device or multiple storage devices. Examples of storage devices may include any one or a combination of the following devices: disk-based storage devices, solid-state drives, and so on.
[0013] The request devices 106 may send data access requests to each of the computing nodes 102-1 through 102-N over a network 112. Examples of the network 112 may include any one or a combination of the following: a storage area network (SAN), a local area network (LAN), a wide area network (WAN), and so on.
[0014] Each compute node runs a collection of virtual processors (either a single virtual processor or multiple virtual processors). A virtual processor is run by a processing resource of a compute node.
[0015] In the example of Fig. 1, the compute node 102-1 includes a virtual processor 114-1, the compute node 102-2 includes a virtual processor 114-2, and the compute node 102-N includes a virtual processor 114-N. Although in each compute node of Fig.1 illustrates only one virtual processor, it should be noted that each compute node may contain more than one virtual processor. Communication between virtual processors 114-1, 114-2, and 114-N may occur via a virtual processor communication link, such as an interprocess connection.
[0016] Virtual processors can also be migrated between compute nodes. For example, to achieve load balancing, a first virtual processor can be migrated from a current compute node to a target compute node. After the migration, the first virtual processor runs on the target compute node.
[0017] Each virtual processor 114-1 may include a corresponding index module and a chunk store module. For example, virtual processor 114-1 includes an index module 116-1 and a chunk store module 118-1, virtual processor 114-2 includes an index module 116-2 and a chunk store module 118-2, and virtual processor 114-N includes an index module 116-N and a chunk store module 118-N. In further examples, a virtual processor may include either an index module or a chunk store module (i.e., the virtual processor need not include both the index module and the chunk store module). In such further examples, each of the index modules and chunk store modules may be considered a virtual processor to enable independent management of metadata and data.
[0018] A "module" may refer to a portion of a larger structure, such as a virtual processor. For example, a module in a virtual processor may comprise a subset of the machine-readable instructions that comprise the virtual processor. An index module is a portion of a virtual processor responsible for managing various index metadata (discussed further below) associated with data objects to be stored in the shared storage system 104. A chunkstore module is a portion of a virtual processor that manages storage location metadata representing storage locations of chunks (also referred to as "data chunks") of data objects in the shared storage system 104. Although in Fig.1 the index modules and the chunkstore modules are shown as separate modules, in other examples an index module with a chunkstore module can be integrated into a module in a corresponding virtual processor.
[0019] A data object can be divided into a collection of data chunks (a single data chunk or multiple data chunks). Each data chunk has a specific size (a static size or a size that can change dynamically). The storage locations of the data chunks are memory locations in the shared storage system 104. The memory location metadata managed by the chunkstore module can contain any one or a combination of the following: an offset, a memory address, a block number, and so on.
[0020] The metadata managed by the index modules and chunkstore modules can be contained in corresponding metadata structures. The term "metadata structure" can refer to any container of metadata, which can be in the form of files, tables, trees, etc. Metadata structures associated with an index module can include an intent structure and a commit structure, while a metadata structure associated with the chunkstore module can include a chunk data structure.
[0021] In other examples, the information from the intent structure and the commit structure may be integrated into a single structure. In addition, there may be additional metadata structures associated with the index module and / or the chunkstore module.
[0022] The metadata associated with an index module, stored in an intent structure and a commit structure, is referred to as "index metadata." Index metadata includes write intent metadata, which is maintained by a source virtual processor when servicing write requests or recovering from an anomaly in a corresponding compute node. An anomaly can be a crash in a compute node, for example, due to a hardware or machine-readable instruction failure, a communication loss, a data corruption, or another cause. Another anomaly can be a loss of connection between a compute node and a requesting device that has made a data access request. Index metadata also includes commit metadata, which is maintained by a virtual metadata processor during write and read operations.The index metadata is also used when a source virtual processor recovers from an anomaly on a corresponding compute node.
[0023] The write intent metadata contained in an intent structure indicates that a corresponding source virtual processor is currently processing a write request to write data to the shared memory system 104 (the write operation in response to the write request is in progress). The intent structure is updated by the source virtual processor.
[0024] The commit metadata contained in a commit structure indicates whether a write operation to a data object is in progress (e.g., with a virtual processor assigned to handle the write operation) or whether a write operation to the data object is no longer in progress (i.e., a write operation to the data object has completed). Note that a write operation to the data object in question is completed when the data object in question has been written either to a write buffer (see below) or to the shared memory system 104. The commit structure is updated by a virtual metadata processor (i.e., the virtual processor that owns the data object metadata for the data object in question).The data object metadata may include a list of chunk identifiers (IDs) that identify chunks of a data object, and a virtual processor ID that identifies a virtual data processor that owns the chunks identified by the list of chunk IDs. The list of chunk IDs may contain a single chunk ID or multiple chunk IDs. The data object metadata may further include a version ID that represents a version of a data object. When a data object is modified by one or more write requests, corresponding distinct versions of the data object are created (and identified by corresponding version IDs).
[0025] As used here, an "ID" may refer to any piece of information (e.g., a name, a string, etc.) that can be used to distinguish one element from another (e.g., to distinguish between blocks of data, or between data objects, or between versions of a data object, or between virtual processors, etc.).
[0026] The chunk data structure stores memory location metadata representing memory locations. The chunk data structure is updated by a virtual data processor (i.e., the virtual processor that manages reading and writing data).
[0027] The metadata structures can be stored in non-volatile memory (NV memory) of a corresponding compute node. NV memory is memory that can store data persistently, so that the data stored in NV memory is not lost if the power supply to the NV memory or a compute node in which the NV memory is located is interrupted. NV memory can comprise a collection of NV memory devices (a single NV memory device or multiple NV memory devices), such as flash memory devices and / or other types of NV memory devices.
[0028] Compute node 102-1 includes an NV store 120-1 that stores an intent structure 122-1, a commit structure 124-1, and a chunk data structure 126-1. The intent structure 122-1 and the commit structure 124-1 are associated with the index module 116-1 (i.e., the index module 116-1 can access information in the intent structure 122-1 and the commit structure 124-1). The chunk data structure 126-1 is associated with the chunk store module 118-1 (i.e., the chunk store module 118-1 can access information in the chunk data structure 126-1).
[0029] The index module 116-2 in the virtual processor 114-2 is connected to an intent structure 122-2 and a commit structure 124-2 stored in an NV memory 120-2 of the compute node 102-2, and the chunkstore module 118-2 in the virtual processor 114-2 is connected to a chunk data structure 126-2 stored in the NV memory 120-2. Similarly, the index module 116-N in the virtual processor 114-N is connected to an intent structure 122-N and a commit structure 124-N stored in an NV memory 120-N of the compute node 102-N, and the chunkstore module 118-N is connected to a chunk data structure 126-N stored in the NV memory 120-N.
[0030] In some examples, a virtual processor is connected to a write buffer that stores write data during write operations on shared memory system 104. When the write request is received from the virtual processor, the corresponding write data is written to the write buffer. The write buffer is stored in NV memory so that the data objects in the write buffer are not lost if power is interrupted to the NV memory or a compute node in which the NV memory is located. At a later time, the data objects in the write buffer may be transferred (written) to shared memory system 104. A write operation for a particular write request may be considered complete when the corresponding data has been written to the write buffer.
[0031] In Fig.1, the virtual processor 114-1 is connected to a write buffer 128-1 stored in the NV memory 120-1, the virtual processor 114-2 is connected to a write buffer 128-2 stored in the NV memory 120-2, and the virtual processor 114-N is connected to a write buffer 128-N stored in the NV memory 120-N.
[0032] Each virtual processor is also connected to a cleanup log used in anomaly recovery. A "log" can refer to any data structure for storing data, such as a file, a text document, a spreadsheet, and so on. Virtual processor 114-1 is connected to an intent cleanup log 130-1 stored in NV memory 120-1, virtual processor 114-2 is connected to an intent cleanup log 130-2 stored in NV memory 120-2, and virtual processor 114-N is connected to an intent cleanup log 130-N stored in NV memory 120-N.
[0033] Each commit structure 124-i (i = 1 to N) may contain information as indicated in Table 1 below. The commit structure 124-i contains information about data objects that are currently being transferred or have already been transferred. A data object that is the subject of a write request is in the process of being transferred when a write operation to write the data object has been initiated but is not yet in a state where the data object in question is permanently stored. The data object in question is "committed" when the write operation triggered by the write request has permanently stored the data object in question, making the data object available for later retrieval. For example, the data object in question may be permanently stored in a write buffer (e.g., 130-i) or permanently stored in the shared storage system 104. TABLE 1 Commitment structure (124-i) Commit Structure ID = f1 (Bucket ID, Partition ID) Key = f2(Object ID, Version ID) Value = Chunk list
[0034] The commit structure 124-i is identified by a Commit Structure ID, which is a value generated by f1 (bucket ID, partition ID), where "f1()" represents a function applied to the contents contained within the bracket. A "function" can be a concatenation, a hash function, or any other type of function. In the example in Table 1, the Commit Structure ID is based on the function f1() applied to a bucket ID and a partition ID.
[0035] In some examples, data may be contained in buckets, where a bucket can refer to any type of container containing a collection of data objects. Each bucket is identified by a bucket ID. A specific example of a bucket is an S3 bucket in an Amazon cloud storage. In other examples, other types of buckets may also be used. Although some examples refer to buckets, in others, the data is not organized into buckets.
[0036] The data processing (write and / or read processing) to be performed by the cluster 100 of compute nodes can be divided into several data processing partitions (or more simply: "partitions"). Each virtual processor is responsible for performing the data processing of one or more partitions. In one example, there are M (M ≥ 2) partitions and P (P ≥ 2) virtual processors. In such an example, each virtual processor of the P virtual processors is responsible for the data processing of MP responsible for partitions.
[0037] A partition is identified by a partition ID. In some examples, a partition ID is based on applying a hash function (such as a cryptographic hash function or another type of hash function) to information associated with a data object. The information associated with the data object to which the hash function is applied includes a bucket ID that identifies the bucket to which the data object belongs and an object ID that identifies the data object. The hash function applied to the information associated with the data object produces a hash value that represents the partition ID.
[0038] In some examples, there is one commit structure per bucket partition. If there are M partitions, then each bucket has M commit structures, identified by corresponding commit structure IDs.
[0039] As listed in Table 1, the commit structure 124-i also contains a key and a corresponding value (a key-value pair). The key of the key-value pair is generated by f2(object ID, version ID), a function applied to the object ID and version ID of a given data object. The function f2() used to generate the key of a key-value pair can be the same as or different from the function f1() used to generate the commit structure ID.
[0040] Each data object can have one or more versions. When a particular data object is first created, an initial version of the data object is created. When the given data object is subsequently modified (e.g., overwritten, replaced, etc.), subsequent versions of the given data object are created. Each version of a data object (referred to as a "data object version") is identified by a version ID. The key generated by f2(object ID, version ID) points to a corresponding data object version.
[0041] The value of the key-value pair is a chunk list, that is, a list of chunk IDs that identify one or more data chunks that are part of the data object version pointed to by the key.
[0042] Fig.Figure 2A shows an example of the commit structure 124-i, which contains multiple entries 202-1, 202-2, etc. for the respective data object versions. Each entry of the commit structure 202 contains a key-value pair. Fig. For example, in Figure 2A, entry 202-1 has a key-value pair KV1, entry 202-2 has a key-value pair KV2, and so on. The key and value of each key-value pair are defined in Table 1 above.
[0043] Each entry of commit structure 202 also contains a corresponding status flag. Entry 202-1 has a status flag 204-1, entry 202-2 has a status flag 204-2, and so on. The status flag may have a first status flag value indicating that a data object version identified by the key of the respective key-value pair is currently being committed, and a second status flag value (different from the first status flag value) indicating that the data object version is no longer being committed (e.g., that the data object version has been committed). Setting the status flag to the first status flag value is referred to as setting an "in-progress" flag for the data object version, and setting the status flag to the second status flag value is referred to as clearing the in-progress flag.
[0044] Each intent structure 122-i may contain information as specified in Table 2 below. The intent structure 122-i contains information about data objects currently being transferred (i.e., data objects to be transferred from a source virtual processor). The intent structure is updated by the source virtual processor during write operations and is used during anomaly recovery if an anomaly interrupts the write operations so that they cannot be completed. TABLE 2 Intention structure (122-i) Key = f3(Bucket ID, Partition ID, Object ID, Version ID) Value = Chunk list
[0045] In some examples, there is one intent structure per virtual processor. In other words, each virtual processor has its own intent structure. As listed in Table 2, the intent structure 122-i contains a key and a corresponding value (a key-value pair). The key of the key-value pair is generated by f3(bucket ID, partition ID, object ID, version ID), a function applied to the bucket ID, partition ID, object ID, and version ID of a respective data object version contained in a bucket identified by bucket ID and processed in a partition identified by partition ID. The function f3() applied to generate the key of each key-value pair in the intent structure 122-i may be the same as or different from the functions f1() and f2() in Table 1.
[0046] The associated value of the key-value pair is a chunk list, that is, a list of chunk IDs that identify one or more data chunks that are part of the data object version to which the key refers.
[0047] Fig. Figure 2B shows an example of the intent structure 122-i, which contains multiple entries 212-1, 212-2, etc. for the respective data object versions. Each entry of the intent structure 122-i contains a key-value pair. Fig. For example, in Figure 2B, entry 212-1 has a key-value pair KV1, entry 212-2 has a key-value pair KV2, and so on. The key and value of each key-value pair contain information defined in Table 2 above.
[0048] Each chunk data structure 126-i may contain information as specified in Table 3 below. The chunk data structure 126-i contains storage location metadata about the storage locations in the shared storage system 104 where data objects are stored. TABLE 3 Chunk data structure (126-i) Key = f4(Bucket ID, Partition ID, Chunk ID) Value = Information about the storage location
[0049] In some examples, there is one chunk data structure per virtual processor. In other words, each virtual processor has its own chunk data structure.
[0050] As listed in Table 3, the chunk data structure 126-i contains a key and a corresponding value (a key-value pair). The key of the key-value pair is generated by f4(Bucket ID, Partition ID, Chunk ID), a function applied to the Bucket ID, Partition ID, and Chunk ID of a respective data object contained in a bucket identified by Bucket ID and processed in a partition identified by Partition ID. The function f4() applied to generate the key of each key-value pair in the chunk data structure 126-i may be the same as or different from the functions f1(), f2(), and f3() in Tables 1 and 2.
[0051] The value of the key-value pair contains storage space information that specifies the storage location of the data packet identified by the key in the shared storage system 104.
[0052] Fig. Figure 2C shows an example of the chunk data structure 126-i, which contains multiple entries 222-1, 222-2, etc. for corresponding data objects. Each entry of the chunk data structure 126-i contains a key-value pair. Fig. For example, in Figure 2C, entry 222-1 has a key-value pair KV1, entry 222-2 has a key-value pair KV2, and so on. The key of a key-value pair in chunk data structure 126-i contains information defined in Table 3 above. There is one entry per data chunk in chunk data structure 126-i. WRITING
[0053] Fig. Figure 3 is a flowchart illustrating a write operation performed in response to an incoming write request received from a request device 106 in Fig. 1 can be received. Although in Fig.3 depicts a particular order of tasks, in other examples the tasks may be executed in a different order or in parallel, and / or some of the tasks may be omitted and / or other tasks may be included. In this example, virtual processor 114-1 is the source virtual processor responsible for servicing the incoming write request received from compute node 102-1 in which source virtual processor 114-1 resides. The compute node that received the incoming write request is referred to as the "receiving compute node." In other examples, a different compute node received the incoming write request, and a different source virtual processor is tasked with servicing the incoming write request.
[0054] In examples where the receiving compute node 102-1 is running multiple virtual processors, the receiving compute node 102-1 selects the source virtual processor 114-1 from the multiple virtual processors of the receiving compute node using a selection process. For example, the selection process may be a random selection process in which the source virtual processor 114-1 is randomly selected from the multiple virtual processors. In another example, the selection process may be based on determining the relative load of the virtual processors in the receiving compute node 102-1 and selecting a virtual processor with the lowest load as the source virtual processor 114-1.
[0055] In further examples, the source virtual processor 114-1 selected from the plurality of virtual processors may be based on which of the virtual processors of the compute nodes of the cluster 100 is the virtual metadata processor. In the example of Fig.3, it is assumed that the virtual processor 114-2 is the virtual metadata processor. The various virtual processors of the cluster 100 of compute nodes are assigned corresponding virtual processor IDs. In the further examples, the selection process may include the receiving compute node determining which virtual processor is the virtual metadata processor for the respective data object of a write request. Based on the identified virtual metadata processor, the receiving compute node 102-1 may select the corresponding virtual processor in the receiving compute node as the source virtual processor 114-1. The determination of the virtual metadata processor is based on the determination of the partition for the respective data object, and based on the determined partition, the receiving compute node 102-1 identifies the virtual metadata processor for the partition.A hash function or other type of function may be applied to the virtual processor ID of the virtual metadata processor to produce an output value (e.g., a hash value or other value) that is used to select the source virtual processor 114-1.
[0056] In response to the incoming write request, the source virtual processor 114-1 sends (at 302) an initiation control message to the virtual metadata processor 114-2. A "message" can refer to any information that can be exchanged between entities such as virtual processors. A "control message" is a message used by one entity to notify another entity of an event or to cause another entity to perform an action. The initiation control message includes the bucket ID, partition ID, and object ID of the data object in question, as well as an indication that a write operation is being initiated by the source virtual processor 114-1.
[0057] In response to the initiation control message, the index module 116-2 of the virtual metadata processor 114-2 generates (at 304) a version ID that uniquely identifies a new version of the data object in question (the new version is the version of the data object in question after the write operation has completed). The virtual metadata processor 114-2 sends (at 306) the version identifier for the data object in question back to the virtual source processor 114-1. The version identifier can be sent, for example, in a response message (in response to the initiation control message).
[0058] The index module 116-1 of the virtual source processor 114-1 inserts (at 308) a new entry into the intent structure 122-1 associated with the virtual source processor 114-1. The key of the key-value pair added to the new entry in the intent structure 122-1 is derived by f3(Bucket ID, Partition ID, Object ID, Version ID), where the Version ID was passed (at 306) from the virtual metadata processor 114-2 to the virtual source processor 114-1.
[0059] At this point, the chunk list for the value of the key-value pair in the new entry is not yet known. As a result, the value of the key-value pair in the new entry of the intent structure 122-1 may be null (invalid) or another predefined value.
[0060] The virtual source processor 114-1 sends (at 310) a pre-write control message to the virtual metadata processor 114-2. The pre-write control message contains the bucket ID, partition ID, object ID, and version ID of the data object in question. The pre-write control message is intended to indicate to the virtual metadata processor 114-2 that the virtual source processor 114-1 is ready to start the write operation for the incoming write request.
[0061] In response to the pre-write control message, the index module 116-2 of the virtual metadata processor 114-2 adds a new entry (at 312) to the commit structure 124-2 associated with the virtual metadata processor 114-2. The new entry of the commit structure 124-2 contains a key-value pair that includes the content shown in Table 1 above. Furthermore, the index module 116-2 of the virtual metadata processor 114-2 sets (at 314) the status flag in the new entry of the commit structure 124-2 to the first status flag value (thereby setting the progress flag in the new entry for the data object in question).
[0062] The index module 116-2 of the virtual metadata processor 114-2 also generates (at 316) a list of chunk IDs that identify one or more data chunks for the data object in question. The generated chunk ID(s) depend on the size of the data object in question—the size of the data object in question determines how many data chunks must be separated from the data object in question. The virtual metadata processor 114-2 sends (at 318) the list of chunk IDs to the virtual source processor 114-1.
[0063] In response to receiving the list of chunk IDs from the virtual metadata processor 114-2, the chunk store module 118-1 of the virtual source processor 114-1 writes (at 320) the data chunk(s) of the respective data object using the chunk ID(s) contained in the list of chunk IDs. The chunk store module 118-1 of the virtual source processor 114-1 may write the data chunk(s) to the write buffer (128-1) associated with the virtual source processor 114-1 and / or to the shared storage system 104.
[0064] As part of writing the data chunk(s), the chunkstore module 118-1 also creates (at 322) a new entry in the chunk data structure 126-1 associated with the source virtual processor 114-1. The new entry in the chunk data structure 126-1 contains a key defined in Table 3 above and a value containing information about the location(s) of the data chunk(s) to be written.
[0065] After writing the data chunk(s), the virtual source processor 114-1 (at 324) sends a post-write control message to the virtual metadata processor 114-2. The post-write control message contains the bucket ID, partition ID, object ID, and version ID associated with the data object in question. The post-write control message indicates that the write operation for the data chunk(s) of the data object in question has been completed.
[0066] In response to receiving the post-write control message, the index module 118-2 of the virtual metadata processor 114-2 (at 326) clears the in-progress flag from the new entry of the commit structure 124-2 by setting the status flag to the second status flag value.
[0067] The source virtual processor 114-1 sends (at 328) a write acknowledgment to the requesting device that submitted the incoming write request. The write acknowledgment indicates to the requesting device that the write operation for the incoming write request has completed. Note that the data object in question for the incoming write request may be located in the write buffer 128-1 and / or the shared memory system 104. In some examples, the chunkstore module 118-1 may track whether the data object in question is located in the write buffer 128-1 or has been flushed to the shared memory system 104. This may be tracked using flush indicators 132-1 (e.g., stored in NV memory 120-1) associated with the respective data objects (e.g., the flush indicators 132-1 may be associated with the respective data objects using mapping information).A flush indicator may have a first value to indicate that a corresponding data object is in write buffer 128-1 and has not yet been flushed to shared storage system 104, and the flush indicator may have a second value to indicate that the corresponding data object has been flushed to shared storage system 104. Compute nodes 102-2 and 102-N similarly include corresponding flush indicators 132-2 and 132-N stored in respective NV memories 120-2 and 120-N.
[0068] Since the source virtual processor 114-1 is the virtual processor that performed the write operation for the incoming write request, the source virtual processor 114-1 is also considered the virtual data processor for the data of the subject data object that was written in response to the incoming write request. In some examples, the source virtual processor 114-1 may send information to the metadata virtual processor 114-2 indicating that the virtual processor 114-1 is the owner virtual processor of the subject data object. The metadata virtual processor 114-2 may record information in the commit structure 124-2 or another structure that identifies the virtual processor 114-1 (using a virtual processor identifier) as the virtual data processor of the subject data object.
[0069] Additionally, the index module 118-1 of the virtual source processor 114-1 deletes the new entry in the intent structure 122-1 (at 330), for example, by removing the new entry from the intent structure 122-1. Once an entry is removed, the intent structure 122-1 no longer indicates that a corresponding write operation is still in progress.
[0070] As in Fig. As shown in Figure 3, the source virtual processor 114-1 is capable of processing the incoming write request by performing a write operation that does not require the data object in question for the incoming write request to be exchanged between virtual processors. Instead, the source virtual processor 114-1 can perform the write operation by retrieving metadata for the data object in question for the incoming write request. The size of the metadata is typically much smaller than the size of the data object in question. READ PROCESSING
[0071] Fig. Figure 4 is a flowchart of a process for handling an incoming read request from a requesting device. Although Fig. 4 a specific order of tasks is shown, in other examples the tasks may be performed in a different order or in parallel and / or some of the tasks may be omitted and / or other tasks may be included.
[0072] Fig. 4 assumes an example in which compute node 102-1 is the receiving compute node, virtual processor 114-1 is the source virtual processor, virtual processor 114-2 is the metadata virtual processor, and virtual processor 114-N is the data processor that owns the data object of the incoming read request.
[0073] The receiving compute node 102-1 may select a virtual processor (from among multiple virtual processors, assuming there are multiple virtual processors in the receiving compute node) using a selection process similar to the selection process used for processing an incoming write request, as shown in Fig. 3 shown.
[0074] In response to the incoming read request, the virtual source processor 114-1 sends (at 402) a chunk ID control message to the virtual metadata processor 114-2 to request a list of chunk IDs identifying data chunk(s) containing data of the data object to be read. The chunk ID control message contains the object ID and version ID of the data object in question. The object ID and version ID may already be included in the incoming read request.
[0075] In response to the chunk ID control message, the index module 118-2 of the virtual metadata processor 114-2 performs a search (at 404) in the commit structure 124-2 to find a corresponding entry in the commit structure 124-2. The object ID and version ID of the data object in question, contained in the chunk ID control message, are used to derive a key (e.g., based on f2(object ID, version ID)) that matches a key in the commit structure 124. If a match occurs, the entry in the commit structure 124-2 containing the matching key is the "matching entry."
[0076] The matching entry found by the search contains the list of chunk IDs for the data chunk(s) of the data object in question. The virtual metadata processor 114-2 sends (at 406) to the virtual source processor 114-1 the list of chunk IDs and a virtual processor ID identifying the virtual data processor 114-N. In response to receiving the list of chunk IDs, the virtual source processor 114-1 sends (at 408) a space control message to the virtual data processor 114-N requesting the storage locations of the data object in question. The control message sent (at 408) contains the list of chunk IDs.
[0077] In response to receiving the storage location control message, the chunkstore module 118-N of the virtual data processor 114-N determines (at 410) whether the data object in question is in the write buffer 128-N or has been flushed to the shared memory system 104. This may be done, for example, based on the flush indicators 132-N in the NV memory 120-N.
[0078] If the chunkstore module 118-N of the virtual data processor 114-N determines (based on a corresponding flush indicator 132-N) that the data object in question is in the write buffer 128-N (has not yet been flushed), the chunkstore module 118-N of the virtual data processor 114-N sets (at 412) a Data Transfer Required flag to indicate that a data transfer must be performed before the data object in question can be read. Setting the Data Transfer Required flag may refer to setting the Data Transfer Required flag to a specific value.
[0079] On the other hand, if the chunkstore module 118-N of the virtual data processor 114-N determines that the data of the respective data object has been flushed to the shared storage system 104, the chunkstore module 118-N obtains (at 414) the list of storage locations by querying the data chunk structure 126-N associated with the virtual data processor 114-N. The lookup involves applying f4(Bucket ID, Partition ID, Chunk ID) to obtain the key for each chunk ID in the list of chunk IDs received from the virtual metadata processor 114-N. Matching entries in the chunk data structure 126-N contain corresponding key-value pairs that contain information about the storage locations for the corresponding data chunks.
[0080] The virtual data processor 114-N sends (at 416) response information (responsive to the memory location control message) to the source virtual processor 114-1. The response information may include either the "data transfer required" flag or the list of memory locations, depending on whether the data object in question has been emptied or not.
[0081] In response to the response information, the source virtual processor 114-1 performs a data read (at 418) to retrieve the data object in question. If the response information from the virtual data processor 114-N includes the list of storage locations, the chunkstore module 118-1 of the source virtual processor 114-1 can read the data chunks from the storage locations of the shared storage system 104.
[0082] On the other hand, if the data transfer required flag was received from the virtual data processor 114-N (or if an error occurred while reading the data blocks from the memory locations of the shared memory system 104), the source virtual processor 114-1 establishes a data session with the virtual data processor 114-N, and the source virtual processor 114-1 retrieves the data blocks of the respective data object from the virtual data processor 114-N in the data session.
[0083] In the above example, if the data object in question is already located in the shared storage system 104, the source virtual processor 114-1 can retrieve the data object in question from the shared storage system 104 without having to exchange the data object in question with the virtual data processor 114-N.
[0084] After receiving the data object in question (either directly from the shared storage system 104 or indirectly via the virtual data processor 114-N), the source virtual processor 114-1 sends the data object in question (at 420) to the requesting device that made the incoming read request. RECOVERY OF ANOMALIES
[0085] During one or more write operations initiated in response to one or more incoming write requests, an anomaly may occur that prevents the write operation(s) from completing at a particular source virtual processor 114-i. As examples, the anomaly may include a crash caused by a hardware failure in compute node 102-i, a failure of machine-readable instructions in compute node 102-i (such as a failure of source virtual processor 114-i or another program), a loss of communication of source virtual processor 114-i (e.g., source virtual processor 114-i is unable to communicate with a metadata virtual processor), or another cause. When the crash occurs, some entries of intent structure 122-i associated with source virtual processor 114-i may not yet have been deleted.Each undeleted entry in the intent structure 122-i represents a data object associated with a write operation that has not yet been completed due to the crash.
[0086] Another anomaly involves the loss of connection to a requesting device that has submitted an incoming write request. The loss of connection may be due to a timeout or another cause.
[0087] Fig. Figure 5 is a flowchart of an anomaly recovery procedure. Although Fig. While a particular order of tasks is depicted in Figure 5, in other examples, the tasks may be executed in a different order or in parallel, and / or some of the tasks may be omitted and / or other tasks may be included. This example assumes that the source virtual processor 114-1 has crashed.
[0088] The source virtual processor 114-1 may detect the anomaly (at 502) in several ways. If the anomaly is a loss of connection to a requesting device, the source virtual processor 114-1 may detect the loss of connection, for example, by a timeout in communication with the requesting device. For a write request, the loss of connection may occur, for example, during the transfer of write data from the requesting device to the receiving compute node. If the anomaly is a crash, the source virtual processor 114-1 may detect an indication that a crash has occurred when the source virtual processor 114-1 starts up (e.g., due to a reset of the compute node 102-1 or due to a restart of the source virtual processor 114-1). The indication may be in the form of a crash indicator (e.g.,a flag or other value) that is written to the NV memory 120-1 of the computer node 102-1.
[0089] In response to detecting the anomaly, the source virtual processor 114-1 updates (at 504) the intent cleanup log 130-1 with information corresponding to data objects that are subject to incomplete writes (incomplete due to the anomaly). In some examples, the update of the intent cleanup log 130-1 may perform opportunistic batching by including in the intent cleanup log 130-1 all information related to data objects (subject to incomplete writes) associated with the same virtual metadata processor 114-2 (i.e., the same virtual metadata processor 114-2 owns the metadata for the data objects).
[0090] Updating the intent cleanup log 130-1 includes adding intent entries to the intent cleanup log 130-1. Each entry added to the cleanup log 130-1 contains the object ID and version ID of the data object that is subject to an incomplete write operation interrupted by an anomaly.
[0091] If a crash has occurred, the source virtual processor 114-1 may include information from the undeleted entries of the intent structure 122-1 in the intent cleanup log 130-1. An undeleted entry in the intent structure 122-1 is an entry that has not yet been removed, so the entry indicates that a write operation for a corresponding data object is still in progress. Note that the source virtual processor 114-1 may be processing multiple write requests at a given time, so there may be multiple undeleted entries in the intent structure 122-1.
[0092] If a connection loss has occurred with the request device that submitted a write request, the source virtual processor 114-1 updates the intent cleanup log 130-1 by adding the entry in the intent structure 122-1 corresponding to the write request to the intent cleanup log 130-1. The information added to the intent cleanup log 130-1 may include the key-value pair(s) of the corresponding entry(s) of the intent structure 122-1.
[0093] In response to detecting the anomaly, the virtual source processor 114-1 sends (at 506) an intent cleanup control message to the virtual metadata processor 114-2. The intent cleanup control message may include the object ID and version ID of each intent entry in the intent cleanup log 130-1. If multiple intent entries exist in the intent cleanup log 130-1, the intent cleanup control message includes multiple object ID / version ID pairs corresponding to the multiple intent entries. The multiple object ID / version ID pairs represent the respective data object versions.
[0094] In response to the intent cleanup control message, the virtual metadata processor 114-2 performs a search (at 508) in the commit structure 124-2. A key is derived from each object ID and version ID (by applying f1(object ID, version ID) in the intent cleanup control message) and compared with the entries in the commit structure 124-2. For each matching entry in the commit structure 124-2, the corresponding status flag (e.g., 204-1, 204-2, etc. in Fig. 2A).
[0095] The virtual metadata processor 114-2 sends (at 510) response information to the source virtual processor 114-1 responsive to the intent cleanup control message. The response information includes the status indicator for each of the object ID, version ID pairs included in the intent cleanup control message.
[0096] The virtual source processor 114-1 can (at 512) perform appropriate recovery actions in various scenarios. In scenario 1, a status flag for a data object version (represented by a pair of object ID, version ID) indicates that the writing of the data object version is in progress. Scenario 1 can occur if the anomaly occurs after task 314 in Fig. 3 (when the status flag is set in a new entry of the commit structure), but before task 326 in Fig.3 (when the status flag in the new entry of the commit structure is cleared). In Scenario 1, the source virtual processor 114-1 (at 512-1) sends a "Delete Version" control message to the virtual metadata processor 114-2 to cause the virtual metadata processor 114-2 to remove the corresponding entry from the commit structure 124-2. The version deletion message contains the object ID and version ID pair of the data object version whose metadata is to be deleted. The entry removed from the commit structure 124-2 in response to the version deletion message is the entry containing the key corresponding to the object ID and version ID pair. In response to the "Delete Version" control message, the virtual metadata processor 114-2 may also send a control message to the virtual data processor to delete the corresponding data blocks and free up storage space.The virtual source processor 114-1 also deletes (at 512-2) the corresponding entry (the entry corresponding to the pair object ID, version ID) from the intent structure 122-1.
[0097] In scenario 2, a status flag for a data object version (represented by a pair of object ID, version ID) indicates that writing the data object version is not in progress. Scenario 2 can occur if the anomaly occurs after task 326 in Fig. 3, but before task 330 in Fig. 3 (when the new intent structure entry is deleted). In this second scenario, the source virtual processor 114-1 deletes (at 512-2) the corresponding entry (the entry corresponding to the object ID, version ID pair) from the intent structure 122-1.
[0098] In scenario 3, the virtual metadata processor 114-2 responds with the message "Object not found," which means that no entry exists in the commit structure 124-2 for the version of the data object represented by a pair of object ID and version ID. The third scenario may occur if an entry for the pair of object ID and version ID has not yet been added to the commit structure 124-2 in response to an incoming write request. Scenario 3 may also occur if the anomaly occurs after task 326 in Fig. 3 (the in-progress flag of the new commit structure entry was cleared), but before task 328 in Fig.3 (the write acknowledgment was sent to the requesting device). The requesting device can send a request to delete the data object version because the requesting device has not received the write acknowledgment. In the third scenario, the source virtual processor 114-1 (at 512-2) deletes the corresponding entry (the entry corresponding to the object ID, version ID pair) from the intent structure 122-1. PROBLEMATIC CONTROL MESSAGES
[0099] Anomalies can lead to problems with control messages. In some cases, control messages may be outdated. In other cases, duplicate control messages may occur. Outdated or duplicate control messages are referred to as "problematic" control messages. Three examples of problematic control messages are described below.
[0100] In a first case, a stale control message can occur when a virtual source processor initially sends a control message (control message 1) to a virtual metadata processor, but the virtual source processor crashes before the virtual source processor receives a response to control message 1 from the virtual metadata processor. The virtual metadata processor has not yet processed control message 1. When the virtual source processor restarts, the virtual source processor can send another control message (control message 2) to the virtual metadata processor. Control message 2 invalidates control message 1 (which was sent and received by the virtual metadata processor before the crash) at the virtual metadata processor.A stale control message may linger at the virtual metadata processor, and the stale control message may be processed at the virtual metadata processor after control message 2 is issued, which may result in an inconsistent state.
[0101] An example of the first case is as follows. The virtual source processor sends a post-write control message, which is received by the virtual metadata processor (e.g., 324 in Fig. 3). The virtual source processor then crashes. When the virtual source processor restarts, the virtual source processor sends a version deletion control message to the virtual metadata processor (e.g., 512-1 in Fig.5). In this example, the "Delete Version" control message is a current control message processed by the virtual metadata processor, while the "After Write" control message is a stale control message in the virtual metadata processor.
[0102] In a second case, a stale control message can arise when a virtual source processor initially sends a control message (control message 1) to a virtual metadata processor, but after sending control message 1, the communication link between the virtual source and virtual metadata processors breaks (neither the virtual source nor the virtual metadata processor crashed in this second case). When the communication link is restored and the virtual source processor sends another control message (control message 2), the older message 1 (stale control message) can linger at the virtual metadata processor and lead to an inconsistent state when processed by the virtual metadata processor.
[0103] An example of the second case is as follows. The virtual source processor sends a first pre-write control message, which is received by the virtual metadata processor. The communication connection between the virtual source and the virtual metadata processor is then interrupted. The virtual source processor re-establishes the communication connection with the virtual metadata processor, and the virtual source processor then sends a second pre-write control message to the virtual metadata processor. The second pre-write control message is processed in the virtual metadata processor (e.g., with tasks 312, 314, 316, and 318 in Fig. 3). Note that at this point, the first pre-write control message may not have been processed yet (since there is no order guarantee for the execution of the control message). Then, the virtual source processor deletes an entry from the intent structure (e.g., 330 in Fig.3). At this point, the first pre-write control message is a stale control message.
[0104] In a third case, duplicate control messages can occur if the virtual source processor sends a control message (control message 1), but the virtual source processor does not receive a response, even though control message 1 has been processed in the virtual metadata processor. The virtual source processor can resend the same control message.
[0105] An example of the third case is as follows. The source virtual processor sends a post-write control message (post-write control message 1), which is received by the virtual metadata processor. The virtual metadata processor is then migrated from a current compute node to a target compute node. After the migration, the source virtual processor reconnects to the virtual metadata processor, and the source virtual processor again sends the post-write control message (post-write control message 2). The source virtual processor then crashes. After the restart, the source virtual processor sends a version deletion control message to the virtual metadata processor (e.g., 512-1 in Fig. 5). At this point, the "Delete Version" control message is a current control message, and the rewrite control message 2 is a duplicate of the rewrite control message 1 and is also outdated.
[0106] To address the problematic control messages mentioned above, virtual processors in the cluster 100 of compute nodes may implement a lock to prevent the processing of older control messages that may have been replaced by new control messages in the various cases mentioned above. An older control message may refer to a control message issued before a virtual processor crashed or a communication link was lost between virtual processors.
[0107] The lock to prevent the processing of older control messages can be implemented by assigning generation indicators to control messages. A generation indicator represents a specific round of control messages issued by a virtual processor. For example, a first generation indicator may represent a first round in which a virtual processor may issue a collection of control messages, e.g., before an anomaly (e.g., a crash or a loss of communication). A second generation indicator may represent a second round in which a virtual processor may issue a collection of control messages, e.g., after recovery from the anomaly. The generation indicators may take the form of generation identifiers that can be incremented or decremented upon successive rounds of control messages issued by a virtual processor.
[0108] A generation indicator can be linked to a control message to indicate which round the control message belongs to. Assigning the generation indicator to the control message may involve including the generation indicator in the control message or maintaining assignment information that associates the control message with the generation indicator.
[0109] In accordance with some examples of the present disclosure, as in Fig.As shown in Figure 6, a receiving virtual processor (which is a virtual processor, such as a metadata virtual processor, that has received control messages from a sending virtual processor, such as a source virtual processor) advances a generation indicator (at 602) to represent a current round (round j) in which one or more control messages are to be received from the receiving virtual processor. Advancing the generation indicator may refer to incrementing or decrementing the generation indicator.
[0110] The receiving virtual processor determines (at 604) whether an anomaly has occurred, such as a crash of the sending virtual processor or a loss of communication with the sending virtual processor. If no anomaly has occurred, the receiving virtual processor continues to receive (at 606) the control message(s) in round j.
[0111] In response to determining (at 604) that an anomaly has occurred, the receiving virtual processor advances (at 608) the generation indicator (e.g., increments j) to represent a new round (round j+1, which is after round j). The receiving virtual processor receives (at 610) one or more control messages in round j+1. Advancing the generation indicator from j to j+1 implements a barrier with respect to the processing of control messages by the receiving virtual processor. The receiving virtual processor performs (at 612) processing of the control messages based on the barrier.
[0112] In one example, the lock prevents the receiving virtual processor that received one or more control messages in round j+1 from processing control messages in round j+1 until all control messages in the previous round(s) (round j or earlier) have been aborted. Aborting a control message may refer to deleting the control message or otherwise indicate that the control message should not be executed. In another example, the lock prevents the receiving virtual processor from executing control messages in earlier rounds, that is, rounds represented by generation indicators before a current generation indicator. MORE EXAMPLES
[0113] Fig.7 is a block diagram of a non-transitory machine-readable or computer-readable storage medium 700 that stores machine-readable instructions that, when executed, cause a processing system to perform various tasks. The processing system may include the cluster 100 of compute nodes of Fig. 1 include.
[0114] The machine-readable instructions include instructions for receiving write requests (702) to receive a write request at a first compute node, wherein the first compute node is part of a collection of multiple compute nodes (e.g., the cluster 100 of compute nodes). Multiple virtual processors are executable in the multiple compute nodes to manage access to data in a shared memory system (e.g., 104 in Fig. 1). The write request can be made by the first compute node from a request device (e.g., 106 in Fig. 1) can be received.
[0115] The machine-readable instructions include instructions for sending metadata requests (704) to send, in response to the write request, a request for metadata stored by the second virtual processor from a first virtual processor at the first compute node to a second virtual processor. The first virtual processor may be a source virtual processor, and the second virtual processor may be a virtual metadata processor. In some examples, the second virtual processor may be executing in a second compute node separate from the first compute node. The request for metadata may be in the form of a control message, such as an initiation control message (e.g., 302 in Fig. 3) or a pre-write control message (e.g. 310 in Fig. 3).
[0116] The machine-readable instructions include instructions for updating the intent structure (706) to create, by the first virtual processor, an intent structure (e.g., one of 122-1 to 122-N in Fig. 1) Update an NV memory with information indicating an intent to write data for the write request. For example, the first virtual processor can insert a new entry into the intent structure. The new entry corresponds to a data identifier and a data version.
[0117] The machine-readable instructions include write initiation instructions 708 for initiating a write of the data in response to the metadata the first virtual processor receives from the second virtual processor to cause the data to be stored in the shared memory system. The data may be written to a write buffer (e.g., one of 128-1 to 128-N) that is later flushed to the shared memory system.
[0118] In some examples, the write request is to write a data object to the shared storage system. The first virtual processor identifies the second virtual processor to which the request for metadata should be sent by applying a function (e.g., a hash function or other type of function) to an input value that contains an identifier of the data object. The input value may, for example, contain an object ID and a bucket ID. The function produces different output values for different input values, where the different output values are associated with different partitions associated with corresponding virtual processors of the plurality of virtual processors.
[0119] In some examples, writing the data for the write request to the shared memory system is performed without any exchange of data between the first virtual processor and any other virtual processor in the plurality of virtual processors.
[0120] In some examples, the metadata includes one or more chunk identifiers representing one or more chunks for storing the data. Initiating the writing of the data includes initiating the writing of the one or more chunks represented by the one or more chunk identifiers received at the first virtual processor from the second virtual processor.
[0121] In some examples, in response to the write request, the first virtual processor sends an initiation indication to the second virtual processor indicating that a write operation for the data should be initiated. The initiation indication may include an initiation control message (e.g., 302 in Fig. 3). The first virtual processor receives version information representing a version of the data from the second virtual processor in response to the initiation indication. The version information may include a version ID (e.g., 306 in Fig. 3).
[0122] In some examples, sending the metadata request from the first virtual processor to the second virtual processor occurs after updating the intent structure in NV memory with the information indicating the intent to write the data for the write request.
[0123] In some examples, in response to the request for metadata, the second virtual processor inserts an entry into a commit structure (e.g., one of entries 124-1 through 124-N in Fig. 1) to indicate that data writing is in progress.
[0124] In some examples, the machine-readable instructions detect an anomaly condition and, in response to detecting the anomaly condition, find an entry in the intent structure containing corresponding information indicating an intent to write a data object. The first virtual processor sends a recovery indication containing an identifier of the data object to a target virtual processor of the plurality of virtual processors. An example of the recovery indication is an intent cleanup control message (e.g., 506 in Fig.5). The first virtual processor receives a status related to the data object from the target virtual processor. The status can be based on a status flag (e.g., 204-1, 204-2, etc. in Fig. 2A). The first virtual processor performs a recovery action in response to the status.
[0125] In some examples, the recovery action involves removing the entry from the intent structure.
[0126] In some examples, the recovery action includes sending an indication to delete the data object from the first virtual processor to the destination virtual processor.
[0127] In some examples, the recovery action responds to the status indicating that a commit structure of the target virtual processor has an entry indicating that a write of the data object is in progress.
[0128] In some examples, the machine-readable instructions associate with each respective request received by a receiving virtual processor from the first virtual processor a generation indicator representing a round in which the receiving virtual processor received the respective request. In response to an anomaly, the machine-readable instructions implement a lock to control the execution of the requests received by the receiving virtual processor.
[0129] In some examples, the barrier prevents the receiving virtual processor that has received one or more requests in a current round from processing the one or more requests until all control messages in one or more previous rounds have been canceled.
[0130] In some examples, the barrier prevents the receiving virtual processor from executing control messages in a previous round that precedes a current round in which the receiving virtual processor received one or more control messages.
[0131] In some examples, the first virtual processor receives a read request to read more data. In response to the read request, the first virtual processor sends a request for more metadata to the second virtual processor. The request for more metadata may, for example, Fig.4 under 402 sent chunk ID control message. The first virtual processor receives from the second virtual processor the further metadata containing an identifier of a third virtual processor. The third virtual processor may be a virtual data processor. The first virtual processor sends to the third virtual processor a request for storage space information for the further data. The request for storage space information may, for example, be the one in Fig. 4 contain memory control message sent at 408.
[0132] Fig.8 is a block diagram of a system 800 according to some examples. The system 800 includes a cluster 801 of compute nodes executing respective virtual processors 802, 804, and 806 to manage access to data in a shared storage system. A first virtual processor 802 is executable in a first compute node of the cluster of compute nodes to receive a read request to read data at the first virtual processor 802. In response to the read request, the first virtual processor 802 sends a request for metadata 808 to a second virtual processor 804 executable in a second compute node of the cluster of compute nodes. The request for metadata 808 may, for example, include the information shown at 402 in Fig. 4 sent chunk ID control message included.
[0133] The first virtual processor 802 receives metadata 810 from the second virtual processor 804, which includes an identifier of a third virtual processor 806. The first virtual processor 802 may be a source virtual processor, the second virtual processor 804 may be a metadata virtual processor, and the third virtual processor 806 may be a data virtual processor.
[0134] The first virtual processor 802 sends a request for storage location information 812 for the data to the third virtual processor 806. The request for storage location information 812 may, for example, be the Fig. 4 contain memory control message sent under 408.
[0135] The first virtual processor 802 receives response information 814 from the third virtual processor 806 in response to the request for the memory location information 812. The first virtual processor 802 performs a data read based on the response information 814.
[0136] In some examples, the response information includes the storage location information of the data. In this case, the first virtual processor 802 retrieves the data from the shared memory system using the storage location information. The data is received from the shared memory system without passing through the third virtual processor.
[0137] In some examples, the response information includes an indication that the data is stored in a write buffer and has not yet been transferred to the shared storage system. For example, this response information may include a "data transfer required" flag. In this case, the first virtual processor 802 establishes a session between the first virtual processor 802 and the third virtual processor 806. The first virtual processor 802 retrieves the data from the shared storage system via the third virtual processor 806 in the session.
[0138] Fig. 9 is a flowchart of a process 900 according to some examples. Process 900 may, for example, be performed by a cluster 100 of compute nodes.
[0139] Process 900 includes receiving (at 902) a write request at a first compute node. The first compute node is part of a collection of multiple compute nodes, and multiple virtual processors are executable in the multiple compute nodes to manage access to data in a shared storage system.
[0140] In response to the write request, process 900 includes the first compute node selecting (at 904) a first virtual processor from among a plurality of virtual processors at the first compute node to service the write request. The selection is performed according to a selection method described above.
[0141] The process 900 includes sending (at 906) a request for metadata stored by the second virtual processor from the first virtual processor to a second virtual processor in a second compute node. The request for metadata may, for example, be an initiation control message (e.g., 302 in Fig. 3) or a pre-write control message (e.g. 310 in Fig. 3) are included.
[0142] The process 900 includes updating (at 908) an intent structure in NV memory by the first virtual processor with information indicating an intent to write data for the write request.
[0143] The process 900 includes, in response to the metadata that the first virtual processor receives from the second virtual processor, initiating (at 910) a write operation of the data to cause storage of the data in the shared storage system.
[0144] Process 900 includes, in response to an anomaly detected by the first virtual processor, performing (at 912) an anomaly recovery using the precedent structure in the first virtual processor. The anomaly may include a crash or a loss of a communication link between virtual processors.
[0145] A storage medium (e.g., 700 in Fig.7) may include any one or a combination of the following: a semiconductor storage device such as dynamic or static random access memory (DRAM or SRAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), and flash memory; a magnetic disk such as a hard disk, floppy disk, and removable disk; other magnetic medium, including tape; an optical medium such as a compact disk (CD) or digital video disk (DVD); or another type of storage device. It should be noted that the instructions described above may be provided on a single computer- or machine-readable storage medium, or alternatively, on multiple computer- or machine-readable storage media distributed throughout a large system, possibly with multiple nodes.Such computer-readable or machine-readable storage medium or media are considered part of an article (or article of manufacture). An article or article of manufacture may refer to each manufactured individual component or to multiple components. The storage medium or media may be located either in the machine on which the machine-readable instructions are executed or at a remote location from which machine-readable instructions can be downloaded over a network for execution.
[0146] In this disclosure, the use of the term "a," "an," or "the" includes the plural forms unless the context clearly indicates otherwise. Likewise, the term "comprises," "including," "comprises," "includes," "has," or "have," when used in this disclosure, specifies the presence of the specified elements but does not preclude the presence or addition of other elements.
[0147] In the foregoing description, numerous details are set forth to provide an understanding of the subject matter disclosed herein. However, implementations may be practiced without some of these details. Other implementations may include modifications and variations from the details described above. The appended claims are intended to cover such modifications and variations.
Claims
[1] A non-transitory, machine-readable storage medium containing instructions that, when executed, cause a processing system to: Receiving a write request at a first compute node, wherein the first compute node is part of a collection of multiple compute nodes and wherein multiple virtual processors are executable in the multiple compute nodes to manage access to data in a shared storage system; in response to the write request from a first virtual processor at the first compute node, send to a second virtual processor a request for metadata stored by the second virtual processor, wherein the first and second virtual processors are part of the plurality of virtual processors; updating, by the first virtual processor, an intent structure in non-volatile memory with information indicating an intent to write data for the write request; and in response to the metadata received in the first virtual processor from the second virtual processor, initiate a write of the data to cause the data to be stored in the shared storage system. [2] The non-transitory machine-readable storage medium of claim 1, wherein the write request is to write a data object to the shared storage system, and wherein the instructions, when executed, cause the processing system to: Identification by the first virtual processor of the second virtual processor to which the request for metadata is to be sent, based on the application of a function to an input value comprising an identifier of the data object, wherein the function produces different output values for different input values, the different output values being associated with different partitions associated with corresponding virtual processors of the plurality of virtual processors. [3] The non-transitory machine-readable storage medium of claim 1, wherein writing the data for the write request to the shared storage system is performed without any exchange of the data between the first virtual processor and any other virtual processor of the plurality of virtual processors. [4] The non-transitory machine-readable storage medium of claim 1, wherein the metadata comprises one or more chunk identifiers representing one or more chunks for storing the data, and wherein initiating the writing of the data comprises initiating the writing of the one or more chunks represented by the one or more chunk identifiers received at the first virtual processor from the second virtual processor. [5] The non-transitory machine-readable storage medium of claim 1, wherein the instructions, when executed, cause the processing system to: in response to a write request from the first virtual processor, send to the second virtual processor an initiation indication indicating that a write of the data is to be initiated; and Receiving version information representing a version of the data in the first virtual processor from the second virtual processor in response to the initiation indication. [6] The non-transitory machine-readable storage medium of claim 5, wherein updating the intent structure in the non-volatile memory with the information indicating the intent to write the data for the write request comprises adding an entry to the intent structure, the added entry corresponding to an identifier of the data and the version of the data. [7] The non-transitory machine-readable storage medium of claim 6, wherein sending the request for metadata from the first virtual processor to the second virtual processor occurs after updating the intent structure in the non-volatile memory with the information indicating the intent to write the data for the write request. [8] The non-transitory machine-readable storage medium of claim 7, wherein the instructions, when executed, cause the processing system to: in response to the second virtual processor requesting metadata, add an entry to a commit structure to indicate that the data write is in progress. [9] The non-transitory machine-readable storage medium of claim 1, wherein the instructions, when executed, cause the processing system to: to detect an anomaly; in response to the detection of the anomaly condition, find an entry in the intent structure containing corresponding information indicating an intent to write a data object; Sending a recovery indication including an identifier of the data object from the first virtual processor to a target virtual processor of the plurality of virtual processors; receive, in the first virtual processor, a status regarding the data object from the target virtual processor; and perform a recovery action on the first virtual processor in response to the status. [10] The non-transitory machine-readable storage medium of claim 9, wherein the recovery action comprises removing the entry from the header structure. [11] The non-transitory machine-readable storage medium of claim 9, wherein the recovery action comprises sending an indication to delete the data object from the first virtual processor to the target virtual processor. [12] The non-transitory machine-readable storage medium of claim 9, wherein the recovery action is responsive to the status indicating that a commit structure of the target virtual processor has an entry indicating that a write of the data object is in progress. [13] The non-transitory machine-readable storage medium of claim 1, wherein the instructions, when executed, cause the processing system to: Associating a generation indicator representing a round in which the receiving virtual processor received the respective request with each respective request received by a receiving virtual processor from the first virtual processor; and In response to an anomaly, establish a lock to control the execution of requests received by the receiving virtual processor. [14] The non-transitory machine-readable storage medium of claim 13, wherein the lock prevents the receiving virtual processor that has received one or more requests in a current round from processing the one or more requests until all control messages in one or more previous rounds have been aborted. [15] The non-transitory machine-readable storage medium of claim 13, wherein the lock prevents the recipient virtual processor from executing any control messages in a previous round prior to a current round in which the recipient virtual processor received one or more control messages. [16] The non-transitory machine-readable storage medium of claim 1, wherein the instructions, when executed, cause the processing system to: receive a read request on the first virtual processor to read more data; in response to the read request from the first virtual processor, send a request for further metadata to the second virtual processor; receive at the first virtual processor from the second virtual processor the further metadata comprising an identifier of a third virtual processor; and send a request for storage space information of the additional data from the first virtual processor to the third virtual processor. [17] A system comprising: a cluster of computing nodes, each running virtual processors to manage access to data in a shared storage system, wherein a first virtual processor is executable in a first compute node of the cluster of compute nodes to: receive a read request to read data on the first virtual processor; in response to the read request, send a request for metadata from the first virtual processor to a second virtual processor executable in a second compute node of the cluster of compute nodes; receive, in the first virtual processor, from the second virtual processor the metadata comprising an identifier of a third virtual processor; send a request for storage location information of the data from the first virtual processor to the third virtual processor; Receiving response information in the first virtual processor from the third virtual processor in response to the request for the storage location information of the data; and perform a data reading based on the response information. [18] The system of claim 17, wherein the response information includes the storage location information of the data, and wherein the first virtual processor in the first compute node is executable to: Retrieving the data from the shared memory system by the first virtual processor using the memory location information, wherein the retrieved data is received from the shared memory system without passing through the third virtual processor. [19] The system of claim 17, wherein the response information includes an indication that the data is stored in a write buffer and has not yet been flushed to the shared memory system, and wherein the first virtual processor in the first compute node is executable to: Establishing a session between the first virtual processor and the third virtual processor; and on the first virtual processor, retrieve the data from the shared memory system via the third virtual processor in the session. [20] A procedure comprising: Receiving a write request at a first compute node, wherein the first compute node is part of a collection of multiple compute nodes, and wherein multiple virtual processors are executable in the multiple compute nodes to manage access to data in a shared storage system; in response to the write request, the first compute node selecting a first virtual processor from among a plurality of virtual processors at the first compute node to service the write request; Sending a request for metadata stored by the second virtual processor from the first virtual processor to a second virtual processor at a second compute node, wherein the first and second virtual processors are part of the plurality of virtual processors; updating, by the first virtual processor, an intent structure in non-volatile memory with information indicating an intent to write data for the write request; in response to the metadata received at the first virtual processor from the second virtual processor, initiating a write operation of the data to cause storage of the data in the shared storage system; and in response to an anomaly detected by the first virtual processor, performing anomaly recovery using the intent structure in the first virtual processor.
