Data access in set of compute nodes

By orchestrating the interactions between virtual processors in the computing node cluster and only exchanging metadata to process data access requests, the problem of resource waste in data access requests is solved, improving efficiency and providing a fault recovery mechanism.

CN118838705APending Publication Date: 2024-10-25HEWLETT PACKARD ENTERPRISE DEV LP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410223067.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-04-24
Filing Date
2024-02-28
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

In a computing node cluster, transmitting large amounts of topic data during data access requests consumes a large amount of resources, resulting in a waste of communication, processing, and storage resources.

Method used

By orchestrating interactions between virtual processors in a cluster of compute nodes, direct transfer of topic data is avoided and only metadata is exchanged to handle data access requests, such as when a write request is updated by the source virtual processor interacting with the metadata virtual processor Intent structure, when a read request is made, the source virtual processor interacts with the metadata and data virtual processors to obtain data.

Benefits of technology

It effectively reduces topic data exchange between computing nodes, reduces resource consumption, improves data access efficiency, and provides a fault recovery mechanism in abnormal situations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118838705A_ABST
    Figure CN118838705A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to data access in a set of compute nodes. In some examples, a first compute node receives a write request, where the first compute node is part of a set of a plurality of compute nodes, and a plurality of virtual processors executable in the plurality of compute nodes to manage access to data in a shared storage system. In response to a write request, a first virtual processor at a first computing node sends a request for metadata stored by a second virtual processor to the second virtual processor. The first virtual processor updates an intent structure in the non-volatile memory with information indicating an intent to write data for the write request. In response to metadata received at the first virtual processor from the second virtual processor, a write of data is initiated to cause the data to be stored in the shared storage system.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] The storage arrangement may include a cluster of computing nodes that manages access to data in a shared storage system shared by the cluster of computing nodes. Each computing node in the cluster of computing nodes may execute one or more virtual processors, wherein each virtual processor manages access to a corresponding data partition in the shared storage system. BRIEF DESCRIPTION OF THE DRAWINGS

[0002] Some implementations of the present disclosure are described with respect to the following figures.

[0003] Figure 1 is a block diagram of an arrangement including a cluster of computing nodes, a shared storage system, and a requestor device according to some examples.

[0004] Figure 2A-2C is a block diagram of a metadata structure according to some examples.

[0005] Figure 3 is a flow diagram of a write process involving various virtual processors according to some examples.

[0006] Figure 4 is a flow diagram of a read process involving various virtual processors according to some examples.

[0007] Figure 5 is a flow chart of an exception handling process involving various virtual processors according to some examples.

[0008] Figure 6 is a flow diagram of a process for a receiver virtual processor according to some examples.

[0009] Figure 7 is a block diagram of a storage medium storing machine-readable instructions according to some examples.

[0010] Figure 8 is a block diagram of a system according to some examples.

[0011] Fig. 9 is a flow diagram of a process according to some examples.

[0012] Throughout the drawings, the same reference numerals indicate similar, but not necessarily identical, elements. The drawings are not necessarily drawn to scale, and the size of certain components may be exaggerated to more clearly illustrate the examples shown. In addition, the drawings provide examples and / or implementations consistent with the description; however, the description is not limited to the examples and / or implementations provided in the drawings. DETAILED DESCRIPTION

[0013] A "virtual processor" may refer to a computing entity implemented using machine-readable instructions executable on a computing node. By managing access to data in different data partitions using respective different virtual processors executing in a cluster of computing nodes, data throughput may be increased when the virtual processors access data in parallel from a shared storage system. A "shared" storage system is a storage system that is shared (i.e., accessible) by any computing node in a cluster of computing nodes.

[0014] A data access request (write request or read request) may be received at a given computing node of a computing node cluster. A virtual processor in a given computing node may be assigned to process the data access request. The assigned virtual processor assigned to process a given data access request may be referred to as a "source virtual processor" relative to the given data access request. In some examples, the source virtual processor may not be a virtual processor that "owns" the metadata of the data that is the subject of the data access request (i.e., manages access and / or updates to it). In some examples, the source virtual processor may not be a virtual processor that "owns" the data that is the subject of the request (i.e., it manages reading and writing of the data in the shared storage system). A virtual processor that owns the metadata of the data that is the subject of a given data access request may be referred to as a "metadata virtual processor" relative to the given data access request, and a virtual processor that owns the data that is the subject of a given data access request may be referred to as a "data virtual processor" relative to the given data access request.

[0015] Because different virtual processors can have different roles with respect to the data of a given data access request (i.e., a source virtual processor receives a data access request, a metadata virtual processor maintains metadata for the data that is the subject of the data access request, and a data virtual processor is responsible for accessing the subject data), orchestration is performed between different virtual processors to process a given data access request.

[0016] However, the data that is the subject of a read or write request may be relatively large (the subject data may include megabytes, gigabytes, terabytes, etc. of data), and therefore transmitting the subject data between computing nodes as part of the orchestration (sometimes referred to as "east-west" communication of data) may consume significant resources of the storage arrangement. The resources consumed may include communication resources, processing resources, and storage resources.

[0017] According to some implementations of the present disclosure, in a storage arrangement of a computing node cluster including a virtual processor that executes access to manage corresponding data partitions, data access requests are processed by orchestrating interactions between at least two virtual processors, wherein the orchestration may include exchanging metadata for subject data without exchanging the subject data itself between virtual processors. In other words, in order to process data access requests, the exchange of subject data between computing nodes may be avoided or made less likely. For a write request (e.g., a placement request to add a payload of a data object to a shared storage system), a source virtual processor (at a computing node that receives the write request) interacts with a metadata virtual processor to obtain metadata, which may be used by the source virtual processor to update an intent structure (which stores entries indicating the intent to write data) and complete the data write. The intent structure may be used to perform fault recovery in the event of a fault condition that prevents the completion of data writes in response to a write request.

[0018] For a read request (eg, a get request to retrieve a data object from a shared storage system), the source virtual processor may interact with the metadata virtual processor and the data virtual processor to read the requested data.

[0019] Figure 1 102-1, 102-2, ..., 102-N (N≥2). A "computing node" may refer to a physical node that includes processing resources and other resources (e.g., communication resources and memory resources) that can perform various tasks. A "processing resource" may include one or more hardware processing circuits, which may include any one or some combination of a microprocessor, a core of a multi-core microprocessor, a microcontroller, a programmable integrated circuit, a programmable gate array, or another hardware processing circuit. A "communication resource" may include a communication interface (including communication hardware such as a transceiver and any related machine-readable instructions). A "memory resource" may include a memory implemented with a collection of one or more memory devices.

[0020] The computing node cluster 100 can manage access to data stored in the shared storage system 104 in response to data access requests received from the requesting device 106. As used herein, a "requesting device" may refer to any electronic device capable of sending a request to access data (read data or write data). Examples of electronic devices include any one or some combination of the following: a desktop computer, a notebook computer, a tablet computer, a server computer, a gaming device, an Internet of Things (IoT) device, a vehicle, a home appliance, and the like.

[0021] The shared storage system 104 is accessible by any of the computing nodes 102-1 to 102-N through a communication link 108 between the computing node cluster 100 and the shared storage system 104. The shared storage system 104 is implemented using a collection of storage devices 110. As used herein, a "collection" of items may refer to a single item or multiple items. Thus, a collection of storage devices 110 may include a single storage device or multiple storage devices. Examples of storage devices may include any one or some combination of the following: disk-based storage devices, solid-state drives, and the like.

[0022] Requester device 106 may send a data access request to any of computing nodes 102-1 through 102-N via network 112. Examples of network 112 may include any one or some combination of a storage area network (SAN), a local area network (LAN), a wide area network (WAN), and the like.

[0023] Each compute node executes a collection of virtual processors (either a single virtual processor or multiple virtual processors). A virtual processor is executed by the processing resources of the compute node.

[0024] exist Figure 1 In the example of FIG. 1 , compute node 102 - 1 includes virtual processor 114 - 1 , compute node 102 - 2 includes virtual processor 114 - 2 , and compute node 102 -N includes virtual processor 114 -N. Figure 1 Only one virtual processor is depicted in each computing node of , but note that each computing node may include more than one virtual processor. Communication between virtual processors 114-1, 114-2, and 114-N may occur via communication links (such as inter-process links) between virtual processors.

[0025] The virtual processor can also be migrated between computing nodes. For example, in order to achieve load balancing, the first virtual processor can be migrated from the current computing node to the destination computing node. Once migrated, the first virtual processor will execute at the destination computing node.

[0026] Each virtual processor 114-1 may include a corresponding index module and a chunk storage module. For example, virtual processor 114-1 includes index module 116-1 and chunk storage module 118-1, virtual processor 114-2 includes index module 116-2 and chunk storage module 118-2, and virtual processor 114-N includes index module 116-N and chunk storage module 118-N. In another example, a virtual processor may include an index module or a chunk storage module (i.e., a virtual processor does not have to include both an index module and a chunk storage module). In such another example, each of the index module and the chunk storage module may be considered as a virtual processor for implementing independent management of metadata and data.

[0027] 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 include a subset of the machine-readable instructions that make up the virtual processor. An index module is a portion of a virtual processor that is responsible for maintaining various index metadata associated with data objects to be stored to the shared storage system 104 (discussed further below). A chunk storage module is a portion of a virtual processor that maintains storage location metadata that indicates the storage location of chunks (also referred to as "data chunks") of data objects in the shared storage system 104. Although Figure 1 The index module and the chunk storage module are depicted as separate modules, but in other examples, the index module may be integrated with the chunk storage module into one module in the corresponding virtual processor.

[0028] The data object may be divided into a collection of data chunks (a single data chunk or multiple data chunks). Each data chunk has a specified size (a static size or a size that can be changed dynamically). The storage location of the data chunk is a storage location in the shared storage system 104. The storage location metadata maintained by the chunk storage module may include any one or some combination of the following: offset, storage address, block number, etc.

[0029] The metadata maintained by the index module and the chunk storage module may be contained in corresponding metadata structures. As used herein, a "metadata structure" may refer to any container of metadata, which may be in the form of (multiple) files, (multiple) tables, (multiple) trees, etc. The metadata structures associated with the index module may include an intent structure and a commit structure, while the metadata structures associated with the chunk storage module may include a chunk data structure.

[0030] In other examples, information of the intent structure and the submission structure may be integrated into one structure. Additionally, there may be other metadata structures associated with the index module and / or the chunk storage module.

[0031] The metadata stored in the intent structure and the commit structure associated with the index module is referred to as "index metadata". The index metadata includes write intent metadata maintained by the source virtual processor when processing a write request or when recovering from an exception in the corresponding compute node. The exception may include a crash in the compute node, such as due to a failure of hardware or machine-readable instructions, a loss of communication, a data error, or any other reason. Another exception may include a loss of connection between the compute node and the requesting device that submitted the request to access the data. The index metadata also includes commit metadata maintained by the metadata virtual processor during write operations and read operations. The index metadata is also used when the source virtual processor is recovering from an exception at the corresponding compute node.

[0032] The write intent metadata contained in the intent structure indicates that the corresponding source virtual processor is in the process of processing a write request (a write operation in response to the write request is in progress) to write data to the shared storage system 104. The intent structure is updated by the source virtual processor.

[0033] The commit metadata contained in the commit structure indicates whether a write of the subject data object is in progress (e.g., at the virtual processor assigned to handle the write) or whether a write of the subject data object is no longer in progress (i.e., the write of the subject data object has been completed). Note that the write of the subject data object is complete if the subject data object has been written to a write buffer (discussed further below) or to the shared storage system 104. The commit structure is updated by the metadata virtual processor (i.e., the virtual processor that owns the data object metadata for the subject data object). The data object metadata may include: a list of chunk identifiers (IDs) identifying chunks of the data object, and a virtual processor ID that identifies the data virtual processor that owns the chunks identified by the chunk ID list. The chunk ID list may include a single chunk ID or multiple chunk IDs. The data object metadata may also include a version ID that represents a version of the data object. When a data object is modified by (multiple) write requests, corresponding different versions of the data object are created (and identified by corresponding version IDs).

[0034] As used herein, "ID" may refer to any information (e.g., a name, a string, etc.) that can be used to distinguish one item from another (e.g., to distinguish between data chunks, or to distinguish between data objects, or to distinguish between versions of data objects, or to distinguish between virtual processors, etc.).

[0035] The group block data structure stores storage location metadata representing the storage location. The group block data structure is updated by a data virtual processor (ie, a virtual processor that manages the reading and writing of data).

[0036] The metadata structure may be stored in a non-volatile (NV) memory of the corresponding computing node. NV memory is a memory capable of persistently storing data so that when the NV memory or the computing node where the NV memory is located is powered off, the data stored in the NV memory is not lost. The NV memory may include 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.

[0037] The compute node 102-1 includes an NV memory 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 an 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 a chunk storage module 118-1 (i.e., the chunk storage module 118-1 can access information in the chunk data structure 126-1).

[0038] The index module 116-2 in the virtual processor 114-2 is associated with the intent structure 122-2 and the commit structure 124-2 stored in the NV memory 120-2 of the computing node 102-2, and the chunk storage module 118-2 in the virtual processor 114-2 is associated with the 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 associated with the intent structure 122-N and the commit structure 124-N stored in the NV memory 120-N of the computing node 102-N, and the chunk storage module 118-N is associated with the chunk data structure 126-N stored in the NV memory 120-N.

[0039] In some examples, a virtual processor is associated with a write buffer that stores write data during a write operation to the shared storage system 104. When a virtual processor receives a write request, the corresponding write data is written to the write buffer. The write buffer is stored in the NV memory so that when the NV memory or the computing node where the NV memory is located is powered off, the data objects in the write buffer are not lost. At a later time, the data objects in the write buffer can be flushed (written) to the shared storage system 104. When the corresponding subject data is written to the write buffer, the write operation for a given write request can be considered complete.

[0040] exist Figure 1, virtual processor 114-1 is associated with write buffer 128-1 stored in NV memory 120-1, virtual processor 114-2 is associated with write buffer 128-2 stored in NV memory 120-2, and virtual processor 114-N is associated with write buffer 128-N stored in NV memory 120-N.

[0041] Each virtual processor is also associated with an intent cleanup log used during exception recovery. A "log" may refer to any data structure that stores data, such as a file, text document, table, etc. Virtual processor 114-1 is associated with intent cleanup log 130-1 stored in NV memory 120-1, virtual processor 114-2 is associated with intent cleanup log 130-2 stored in NV memory 120-2, and virtual processor 114-N is associated with intent cleanup log 130-N stored in NV memory 120-N.

[0042] Each commit structure 124-i (i=1 to N) may include information as indicated in Table 1 below. The commit structure 124-i includes information of data objects that are in the process of being committed or have been committed. A data object that is the subject of a write request is in the process of being committed when a write operation to the data object has begun but is not yet in a state where the subject data object is persistently stored. A subject data object is "committed" if a write operation initiated by a write request has persistently stored the subject data object so that the subject data object is available for later retrieval. For example, the subject data object may be persistently stored in a write buffer (e.g., 130-i) or persistently stored in the shared storage system 104.

[0043] Table 1

[0044] Submit Structure (124-i) Submit structure ID = f1 (bucket ID, partition ID) Key = f2(object ID, version ID) value = list of chunks

[0045] 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 content included in the brackets. A "function" can be a concatenation, a hash function, or any other type of function. In the example of Table 1, the commit structure ID is based on the function f1() applied to the bucket ID and the partition ID.

[0046] In some examples, data may be included in buckets, where a bucket may refer to any type of container that includes a collection of data objects. Each bucket is identified by a bucket ID. A particular example of a bucket is an S3 bucket in Amazon cloud storage. In other examples, other types of buckets may be used. Although reference is made to buckets in some examples, in other examples, data is not arranged in buckets.

[0047] The data processing (write processing and / or read processing) to be performed by the computing node cluster 100 can be divided into multiple data processing partitions (or more simply "partitions"). Each virtual processor is responsible for performing data processing for one or more partitions. In the example, there are M (M ≥ 2) partitions and P (P ≥ 2) virtual processors. In such an example, each of the P virtual processors is responsible for performing data processing for one or more partitions. Processing of data in each partition.

[0048] The partition is identified by a partition ID. In some examples, the partition ID is based on applying a hash function (e.g., a cryptographic hash function or another type of hash function) to information associated with the data object. The information associated with the data object to which the hash function is applied includes a bucket ID identifying a bucket and an object ID identifying a data object, where the data object is part of the bucket. The hash function applied to the information associated with the data object produces a hash value, i.e., the partition ID.

[0049] In some examples, there is one commit structure per bucket partition. If there are M partitions, then for each bucket, there will be M commit structures identified by corresponding commit structure IDs.

[0050] As listed in Table 1, the submission structure 124-i also includes a key and an associated value (key-value pair). The key of the key-value pair is generated by f2 (object ID, version ID), which is a function applied to the object ID and version ID of the corresponding data object. The function f2() applied to generate the key of the key-value pair can be the same or different from the function f1() used to generate the submission structure ID.

[0051] Each data object may have one or more versions. When a given data object is initially created, a first version of the given data object is generated. When a given data object is subsequently modified (e.g., overwritten, replaced, etc.), (multiple) subsequent versions of the given data object are generated. 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) refers to the corresponding data object version.

[0052] The value of the key-value pair is a chunk list, which is a list of chunk IDs identifying one or more data chunks that are part of the data object version referenced by the key.

[0053] Figure 2A An example of a commit structure 124-i is shown, which includes a plurality of entries 202-1, 202-2, etc. for corresponding data object versions. Each entry of the commit structure 202 includes a key-value pair. For example, in Figure 2A, entry 202-1 has a key-value pair KV1, entry 202-2 has a key-value pair KV2, etc. The key and value of each key-value pair are defined by Table 1 above.

[0054] Each entry of the commit structure 202 also includes 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 the data object version identified by the key of the corresponding key-value pair is in the process of being committed and a second status flag value (different from the first status flag value), the first status flag value indicating that the data object version is no longer in the process of being committed (e.g., the data object version has been committed). The status flag set to the first status flag value is referred to as setting an "in progress" flag for the data object version, and the status flag set to the second status flag value is referred to as clearing the in progress flag.

[0055] Each intent structure 122-i may include information as shown in Table 2 below. The intent structure 122-i includes information about data objects that are in the process of being committed (i.e., data objects to be committed by the source virtual processor). The intent structure is updated by the source virtual processor during a write operation and is used during exception recovery in case an exception interrupts the write operation and prevents the write operation from being completed.

[0056] Table 2

[0057] Intention Structure (122-i) Key = f3 (bucket ID, partition ID, object ID, version ID) value = list of chunks

[0058] In some examples, there is one intent structure for each virtual processor. In other words, each virtual processor has its own intent structure. As listed in Table 2, the intent structure 122-i includes keys and associated values ​​(key-value pairs). The key of the key-value pair is generated by f3 (bucket ID, partition ID, object ID, version ID), which is a function applied to the bucket ID, partition ID, object ID, version ID of the corresponding data object version contained in the bucket identified by the bucket ID and being processed in the partition identified by the partition ID. The function f3() applied to generate the key of each key-value pair in the intent structure 122-i can be the same as or different from the functions f1() and f2() in Table 1.

[0059] The associated value of the key-value pair is a chunk list, which is a list of chunk IDs identifying one or more data chunks that are part of the data object version referenced by the key.

[0060] Figure 2BAn example of an intent structure 122-i is shown, which includes multiple entries 212-1, 212-2, etc. for corresponding data object versions. Each entry of the intent structure 122-i includes a key-value pair. 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 by Table 2 above.

[0061] Each chunk data structure 126 - i may include information as indicated in Table 3 below. The chunk data structure 126 - i includes storage location metadata regarding storage locations in the shared storage system 104 where data objects are stored.

[0062] Table 3

[0063] Chunk data structure (126-i) Key = f4(bucket ID, partition ID, chunk ID) Value = storage location information

[0064] In some examples, each virtual processor has a group block data structure. In other words, each virtual processor has its own group block data structure.

[0065] As listed in Table 3, the chunk data structure 126-i includes keys and associated values ​​(key-value pairs). The keys of the key-value pairs are generated by f4 (bucket ID, partition ID, chunk ID), which is a function of the bucket ID, partition ID, chunk ID of the corresponding data object contained in the bucket identified by the bucket ID and being processed in the partition identified by the 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.

[0066] The value of the key-value pair includes storage location information that specifies the storage location of the data chunk identified by the key in the shared storage system 104 .

[0067] Figure 2C An example of a chunk data structure 126-i is shown, which includes a plurality of entries 222-1, 222-2, etc. for corresponding data objects. Each entry of the chunk data structure 126-i includes a key-value pair. Figure 2C , entry 222-1 has a key-value pair KV1, entry 222-2 has a key-value pair KV2, etc. The keys of the key-value pairs in chunk data structure 126-i include the information defined by Table 3 above. There is one entry per data chunk in chunk data structure 126-i.

[0068] Write Processing

[0069] Figure 3is a flow chart illustrating a write operation performed in response to an incoming write request, which may be from Figure 1 The requesting device 106 receives the Figure 3 A particular order of tasks is depicted, but in other examples, the tasks may be performed in a different order or in parallel, and / or some tasks may be omitted and / or other tasks may be included. In this example, virtual processor 114-1 is a source virtual processor that is assigned to process an incoming write request received by compute node 102-1 where source virtual processor 114-1 is located. A compute node that receives an incoming write request is referred to as a "receiving compute node." In other examples, different compute nodes receive the incoming write request, and different source virtual processors are assigned to process the incoming write request.

[0070] In an example where the receiving compute node 102-1 executes multiple virtual processors, the receiving compute node 102-1 uses a selection process to select the source virtual processor 114-1 from the multiple virtual processors of the receiving compute node. For example, the selection process can 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 can be based on determining the relative loads of the virtual processors in the receiving compute node 102-1, and selecting the virtual processor with the smallest load as the source virtual processor 114-1.

[0071] In another example, selecting the source virtual processor 114-1 from the plurality of virtual processors may be based on which of the virtual processors of the computing node cluster 100 is the metadata virtual processor. Figure 3 In the example of , it is assumed that virtual processor 114-2 is a metadata virtual processor. Different virtual processors of computing node cluster 100 are assigned corresponding virtual processor IDs. In another example, the selection process may include the receiving computing node determining which virtual processor is the metadata virtual processor for the subject data object of the write request. Based on the identified metadata virtual processor, the receiving computing node 102-1 can select the corresponding virtual processor in the receiving computing node as the source virtual processor 114-1. The determination of the metadata virtual processor is based on determining the partition for the subject data object, and based on the determined partition, the receiving computing node 102-1 identifies the metadata virtual processor for the partition. A hash function or another type of function can be applied to the virtual processor ID of the metadata virtual processor to generate an output value (e.g., a hash value or another value) used to select the source virtual processor 114-1.

[0072] In response to the incoming write request, the source virtual processor 114-1 sends (at 302) an initiate control message to the metadata virtual processor 114-2. A "message" may refer to any information that may 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 initiate control message contains the bucket ID, partition ID, and object ID of the subject data object and contains an indication that the source virtual processor 114-1 is initiating a write operation.

[0073] In response to the initiation control message, the index module 116-2 of the metadata virtual processor 114-2 generates (at 304) a version ID that uniquely identifies a new version of the subject data object (the new version is the version of the subject data object after the write operation is completed). The metadata virtual processor 114-2 sends the version ID of the subject data object back to the source virtual processor 114-1 (at 306). For example, the version ID can be sent in a response message (which is responsive to the initiation control message).

[0074] The index module 116-1 of the source virtual processor 114-1 adds (at 308) a new entry to the intent structure 122-1 associated with the source virtual processor 114-1. The key of the key-value pair of the new entry added to the intent structure 122-1 is derived from f3 (bucket ID, partition ID, object ID, version ID), where the version ID is provided from the metadata virtual processor 114-2 to the source virtual processor 114-1 (at 306).

[0075] At this point, the chunk list of values ​​for the key-value pair in the new entry is unknown. As a result, the value of the key-value pair in the new entry of the intent structure 122-1 may have a null value (invalid) or other predetermined value.

[0076] The source virtual processor 114-1 sends (at 310) a pre-write control message to the metadata virtual processor 114-2. The pre-write control message contains the bucket ID, partition ID, object ID, and version ID of the subject data object. The pre-write control message is used to indicate to the metadata virtual processor 114-2 that the source virtual processor 114-1 is ready to start a write operation for the incoming write request.

[0077] In response to the pre-write control message, the index module 116-2 of the metadata virtual processor 114-2 adds (at 312) a new entry to the commit structure 124-2 associated with the metadata virtual processor 114-2. The new entry of the commit structure 124-2 includes a key-value pair that contains the content as set forth in Table 1 above. In addition, the index module 116-2 of the metadata virtual processor 114-2 sets (at 314) a state flag in the new entry of the commit structure 124-2 to a first state flag value (which sets an in-progress flag in the new entry of the subject data object).

[0078] The index module 116-2 of the metadata virtual processor 114-2 also generates (at 316) a list of chunk IDs that identify one or more data chunks of the subject data object. The chunk ID(s) generated depend on the size of the subject data object—the size of the subject data object determines how many data chunks will be divided from the subject data object. The metadata virtual processor 114-2 sends (at 318) the list of chunk IDs to the source virtual processor 114-1.

[0079] In response to receiving the chunk ID list from the metadata virtual processor 114-2, the chunk storage module 118-1 of the source virtual processor 114-1 writes (at 320) data chunks of the subject data object using the chunk ID(s) included in the chunk ID list. The chunk storage module 118-1 of the source virtual processor 114-1 may write the data chunk(s) to a write buffer (128-1) associated with the source virtual processor 114-1 and / or to the shared storage system 104.

[0080] As part of writing the data chunk(s), the chunk storage 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 includes a key defined by Table 3 above and a value including information of the storage location(s) of the data chunk(s) being written.

[0081] After writing the data chunk(s), source virtual processor 114-1 sends (at 324) a post-write control message to metadata virtual processor 114-2. The post-write control message contains the bucket ID, partition ID, object ID, and version ID associated with the subject data object. The post-write control message indicates that the writing of the data chunk(s) of the subject data object has been completed.

[0082] In response to receiving the post-write control message, the index module 118 - 2 of the metadata virtual processor 114 - 2 clears (at 326 ) the in-progress flag from the new entry in the commit structure 124 - 2 by setting the status flag to a second status flag value.

[0083] The source virtual processor 114-1 sends (at 328) a write acknowledgement to the requestor device that submitted the incoming write request. The write acknowledgement indicates to the requestor device that the write for the incoming write request has been completed. Note that the subject data object of the incoming write request may be in the write buffer 128-1 and / or in the shared storage system 104. In some examples, the chunk storage module 118-1 may track whether the subject data object is in the write buffer 128-1 or has been flushed to the shared storage system 104. This may be tracked using a flush indicator 132-1 (e.g., stored in the NV memory 120-1) associated with the corresponding data object (e.g., the flush indicator 132-1 may be mapped to the corresponding data object using mapping information). The flush indicator may have a first value to indicate that the corresponding data object is in the write buffer 128-1 and has not yet been flushed to the shared storage system 104, and the flush indicator may have a second value to indicate that the corresponding data object has been flushed to the 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.

[0084] Since source virtual processor 114-1 is the virtual processor that performs the write for the incoming write request, source virtual processor 114-1 is also considered to be the data virtual processor for the data of the subject data object that is written in response to the incoming write request. In some examples, source virtual processor 114-1 may send information to metadata virtual processor 114-2 indicating that virtual processor 114-1 is the owner virtual processor of the subject data object. Metadata virtual processor 114-2 may record information identifying virtual processor 114-1 (using a virtual processor identifier) ​​as the data virtual processor of the subject data object in commit structure 124-2 or another structure.

[0085] Additionally, the index module 118-1 of the source virtual processor 114-1 clears (at 330) the new entry of the intent structure 122-1, such as by removing the new entry from the intent structure 122-1. Once the entry is removed, the intent structure 122-1 no longer indicates that the corresponding write operation is still in progress.

[0086] like Figure 3As depicted in , the source virtual processor 114-1 is able to process the incoming write request by performing a write operation that does not involve exchanging the subject data object for the incoming write request between virtual processors. Instead, the source virtual processor 114-1 can perform the write operation by obtaining metadata for the subject data object for the incoming write request. The size of the metadata is typically much smaller than the size of the subject data object.

[0087] Read Processing

[0088] Figure 4 is a flow chart of the process of processing an incoming read request from a requesting device. Figure 4 A particular order of tasks is depicted, but in other examples the tasks may be performed in a different order or in parallel, and / or some tasks may be omitted and / or other tasks may be included.

[0089] Figure 4 Assume an example in which compute node 102-1 is a receiving compute node, virtual processor 114-1 is a source virtual processor, virtual processor 114-2 is a metadata virtual processor, and virtual processor 114-N is a data virtual processor that owns the subject data object of the incoming read request.

[0090] The receiving computing node 102-1 may use Figure 3 A virtual processor is selected (from multiple virtual processors, assuming that multiple virtual processors exist in the receiving compute node) using a selection process similar to the selection process depicted in for processing incoming write requests.

[0091] In response to the incoming read request, the source virtual processor 114-1 sends (at 402) a chunk ID control message to the metadata virtual processor 114-2 to request a chunk ID list identifying the data chunk(s) containing the data of the subject data object to be read. The chunk ID control message includes the object ID and version ID of the subject data object. The object ID and version ID may have been included in the incoming read request.

[0092] In response to the chunk ID control message, the index module 118-2 of the metadata virtual processor 114-2 performs a lookup (at 404) of the commit structure 124-2 to find a corresponding entry in the commit structure 124-2. The object ID and version ID of the subject data object included in the chunk ID control message are used (e.g., based on f2 (object ID, version ID)) to derive a key that matches the key in the commit structure 124. If a match occurs, the entry of the commit structure 124-2 that contains the matching key is a "matching entry."

[0093] The matching entry found by the lookup includes a list of chunk IDs of the data chunks of the subject data object. Metadata virtual processor 114-2 sends (at 406) the list of chunk IDs and the virtual processor ID identifying data virtual processor 114-N to source virtual processor 114-1. In response to receiving the list of chunk IDs, source virtual processor 114-1 sends (at 408) a storage location control message requesting the storage location of the subject data object to data virtual processor 114-N. The control message sent (at 408) includes the list of chunk IDs.

[0094] In response to receiving the storage location control message, the chunk storage module 118-N of the data virtual processor 114-N determines (at 410) whether the subject data object is in the write buffer 128-N or has been flushed to the shared storage system 104. This may be based on the flush indicator 132-N in the NV memory 120-N, for example.

[0095] If the chunk storage module 118-N of the data virtual processor 114-N determines (based on the corresponding flush indicator 132-N) that the subject data object is in the write buffer 128-N (has not been flushed), the chunk storage module 118-N of the data virtual processor 114-N sets (at 412) a data transfer required flag to indicate that a data transfer must be performed before the subject data object can be read. Setting the data transfer required flag may refer to setting the data transfer required flag to a specified value.

[0096] On the other hand, if the chunk storage module 118-N of the data virtual processor 114-N determines that the data of the subject data object has been flushed to the shared storage system 104, then the chunk storage module 118-N obtains (at 414) a list of storage locations by performing a lookup of the data chunk structure 126-N associated with the data virtual processor 114-N. The lookup includes 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 metadata virtual processor 114-2. The matching entry in the chunk data structure 126-N includes a corresponding key-value pair containing information about the storage location for the corresponding data chunk.

[0097] Data virtual processor 114-N sends (at 416) response information (which is responsive to the storage location control message) to source virtual processor 114-1. The response information may include a data transfer required flag or a list of storage locations, depending on whether the subject data object has been flushed.

[0098] In response to the response information, the source virtual processor 114-1 performs (at 418) a data read to retrieve the subject data object. If the response information from the data virtual processor 114-N includes a list of storage locations, the chunk storage module 118-1 of the source virtual processor 114-1 may read the data chunks from the storage locations of the shared storage system 104.

[0099] On the other hand, if a data transfer required flag is received from the data virtual processor 114-N (or if an error occurs when reading a data chunk from a storage location in the shared storage system 104), the source virtual processor 114-1 establishes a data session with the data virtual processor 114-N, and the source virtual processor 114-1 retrieves the data chunk of the subject data object from the data virtual processor 114-N in the data session.

[0100] In the above example, if the subject data object is already in the shared storage system 104, the source virtual processor 114-1 can retrieve the subject data object from the shared storage system 104 without having to exchange the subject data object with the data virtual processor 114-N.

[0101] Upon receiving the subject data object (either directly from the shared storage system 104 or indirectly via the data virtual processor 114-N), the source virtual processor 114-1 sends (at 420) the subject data object to the requestor device that submitted the incoming read request.

[0102] Abnormal recovery

[0103] During one or more write operations initiated in response to one or more incoming write requests, an exception may occur that may prevent (multiple) write operations from completing at a given source virtual processor 114-i. As examples, the exception may include a crash caused by a hardware failure at a compute node 102-i, a failure of a machine-readable instruction at a compute node 102-i (such as a failure of the source virtual processor 114-i or another program), a loss of communication experienced by the source virtual processor 114-i (e.g., the source virtual processor 114-i is unable to communicate with the metadata virtual processor), or due to any other reason. When the crash occurs, some entries of the intent structure 122-i associated with the source virtual processor 114-i may not have been cleared. Any uncleared entries in the intent structure 122-i represent data objects associated with write operations that have not been completed due to the crash.

[0104] Another exception involves the loss of connectivity to the requesting device that submitted the incoming write request. The connection loss could be due to a timeout or other reasons.

[0105] Figure 5is a flowchart of the abnormal recovery process. Figure 5 A particular order of tasks is depicted, but in other examples, the tasks may be performed in a different order or in parallel, and / or some tasks may be omitted and / or other tasks may be included. In this example, assume that source virtual processor 114-1 experiences a crash.

[0106] The source virtual processor 114-1 can detect (at 502) an exception in a variety of different ways. For example, if the exception is a loss of connection with the requesting device, the source virtual processor 114-1 can detect the loss of connection based on a communication timeout with the requesting device. As an example, for a write request, a connection loss may occur during the transfer of write data from the requesting device to the receiving computing node. If the exception is a crash, when the source virtual processor 114-1 starts (e.g., due to a reset of the computing node 102-1 or due to a restart of the source virtual processor 114-1), the source virtual processor 114-1 can detect an indication that a crash has occurred. The indication can be in the form of a crash indicator (e.g., a flag or another value) written to the NV memory 120-1 of the computing node 102-1.

[0107] In response to detecting the exception, the source virtual processor 114-1 updates (at 504) the intent-clean log 130-1 with information corresponding to the data object that is the subject of the incomplete write operation (incomplete due to the exception). In some examples, when updating the intent-clean log 130-1, opportunistic batching may be performed by including in the intent-clean log 130-1 all information related to the data object that is mapped to the same metadata virtual processor 114-2 that is the subject of the incomplete write operation (i.e., the same metadata virtual processor 114-2 owns the metadata for the data object).

[0108] The updating of the intent cleanup log 130-1 includes adding intent entries to the intent cleanup log 130-1. Each intent entry added to the intent cleanup log 130-1 includes the object ID and version ID of the data object that was the subject of the incomplete write operation that was aborted.

[0109] If a crash occurs, the source virtual processor 114-1 can collect information about the uncleared entries from the intent structure 122-1 into the intent cleanup log 130-1. An "uncleared" entry of the intent structure 122-1 is an entry that has not been removed, such that the entry indicates that a write operation for the corresponding data object is still in progress. Note that at any given point in time, the source virtual processor 114-1 can process multiple write requests, such that there may be multiple uncleared entries in the intent structure 122-1.

[0110] If a connection loss occurs with the requesting device that submitted the write request, the source virtual processor 114-1 updates the intent cleanup log 130-1 by adding an 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 (multiple) key-value pairs of (multiple) corresponding entries of the intent structure 122-1.

[0111] In response to detecting the exception, the source virtual processor 114-1 sends (at 506) an intent cleanup control message to the metadata virtual processor 114-2. The intent cleanup control message may include an object ID and a version ID for each intent entry in the intent cleanup log 130-1. If there are multiple intent entries 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 corresponding data object versions.

[0112] In response to the intent-to-clean control message, metadata virtual processor 114-2 performs a lookup of commit structure 124-2 (at 508). A key is derived from each object ID and version ID in the intent-to-clean control message (by applying f1(object ID, version ID)), and the key is matched to an entry in commit structure 124-2. For each matching entry in commit structure 124-2, the corresponding status flag (e.g., Figure 2A 204-1, 204-2, etc.).

[0113] The metadata virtual processor 114-2 sends (at 510) response information in response to the intent-to-clean control message to the source virtual processor 114-1. The response information includes a status flag for each object ID, version ID pair included in the intent-to-clean control message.

[0114] The source virtual processor 114-1 may perform (at 512) corresponding recovery actions in different scenarios. In scenario 1, the status flag (represented by the object ID, version ID pair) for the data object version indicates that the write of the data object version is in progress. Figure 3 After task 314 in (when the status flag is set in the new entry of the commit structure) but before Figure 3Scenario 1 may occur if an exception occurs before task 326 in the commit structure (when the status flag is cleared in the new entry of the commit structure). In scenario 1, the source virtual processor 114-1 sends (at 512-1) a delete version control message to the metadata virtual processor 114-2 to cause the metadata virtual processor 114-2 to remove the corresponding entry from the commit structure 124-2. The delete version control message includes 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 delete version control message is an entry containing a key corresponding to the object ID and version ID pair. In response to the delete version control message, the metadata virtual processor 114-2 may also send a control message to the data virtual processor to delete the corresponding data chunk to free up storage space. The source virtual processor 114-1 also clears (at 512-2) the corresponding entry (the entry corresponding to the object ID and version ID pair) from the intent structure 122-1.

[0115] In scenario 2, the status flag for the data object version (represented by an object ID, version ID pair) indicates that the writing of the data object version is not in progress. Figure 3 After task 326 in Figure 3 Scenario 2 may occur if an exception occurs before task 330 in (when the new entry of the intent structure is cleared). In this second scenario, source virtual processor 114-1 clears (at 512-2) the corresponding entry (the entry corresponding to the object ID, version ID pair) from intent structure 122-1.

[0116] In scenario 3, metadata virtual processor 114-2 responds with an object not found indication indicating that an entry for the data object version represented by the object ID, version ID pair does not exist in commit structure 124-2. The third scenario may occur if an entry for the object ID, version ID pair has not yet been added to commit structure 124-2 in response to an incoming write request. Figure 3 After task 326 in (the in-progress flag of the new entry of the commit structure is cleared), but in Figure 3 Scenario 3 may also occur if an exception occurs before task 328 in (the write confirmation has been sent to the requesting device). Since the requesting device does not receive the write confirmation, the requesting device can send a request to delete the data object version. In the third scenario, the source virtual processor 114-1 clears (at 512-2) the corresponding entry (the entry corresponding to the object ID, version ID pair) from the intent structure 122-1.

[0117] Problematic control message

[0118] Anomalies may cause problems with control messages. In some cases, a control message may become outdated. In other cases, there may be duplicate control messages. Outdated or duplicate control messages are referred to as "problematic" control messages. Three example cases of problematic control messages are discussed below.

[0119] In the first case, an obsolete control message may occur when the source virtual processor initially sends a control message (control message 1) to the metadata virtual processor, but the source virtual processor crashes before the source virtual processor receives a response to control message 1 from the metadata virtual processor. The metadata virtual processor has not yet processed control message 1. When the source virtual processor restarts, the source virtual processor may send another control message (control message 2) to the metadata virtual processor. Control message 2 causes control message 1 (sent before the crash and received at the metadata virtual processor) to become obsolete at the metadata virtual processor. The obsolete control message may remain at the metadata virtual processor, and the obsolete control message may be processed at the metadata virtual processor after control message 2 has been issued, which may result in an inconsistent state.

[0120] An example of the first case is as follows. The source virtual processor sends a post-write control message, which is sent by the metadata virtual processor (e.g., Figure 3 324) is received. Then the source virtual processor crashes. When the source virtual processor restarts, the source virtual processor sends a delete version control message (e.g., Figure 5 512-1 in FIG. 512-1). In this example, the delete version control message is a current control message to be processed by the metadata virtual processor, and the write-after control message is an outdated control message at the metadata virtual processor.

[0121] In the second case, an obsolete control message may appear when the source virtual processor initially sends a control message (control message 1) to the metadata virtual processor, but the communication link between the source virtual processor and the metadata virtual processor is disconnected after sending control message 1 (in the second case, neither the source virtual processor nor the metadata virtual processor crashes). When the communication link is reestablished and the source virtual processor sends another control message (control message 2), the older message 1 (obsolete control message) may be retained at the metadata virtual processor, and if processed at the metadata virtual processor, an inconsistent state may be caused.

[0122] An example of the second case is as follows. The source virtual processor sends a first pre-write control message, which is received by the metadata virtual processor. The communication link between the source virtual processor and the metadata virtual processor is then disconnected. The source virtual processor re-establishes the communication link with the metadata virtual processor, and the source virtual processor then sends a second pre-write control message to the metadata virtual processor. The second pre-write control message is processed at the metadata virtual processor (e.g., resulting in Figure 3 312, 314, 316, and 318 in . Note that at this point, the first pre-written control message may not have been processed (because there is no order guarantee regarding control message execution). The source virtual processor then clears the entry from the intent structure (e.g., Figure 3 At this time, the first pre-written control message is an outdated control message.

[0123] In the third case, if the source virtual processor sends a control message (control message 1), but the source virtual processor does not receive a response even though control message 1 has been processed at the metadata virtual processor, a duplicate control message may occur. The source virtual processor may send the same control message again.

[0124] 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 metadata virtual processor. The metadata virtual processor is then migrated from the current compute node to the destination compute node. The source virtual processor reconnects with the metadata virtual processor after the migration, and the source virtual processor resends the post-write control message (Post-Write Control Message 2). The source virtual processor then crashes. After restarting, the source virtual processor sends a delete version control message (e.g., Figure 5 At this time, the delete version control message is the current control message, and the write-after control message 2 is a copy of the write-after control message 1 and is also outdated.

[0125] To resolve the aforementioned problematic control messages, the virtual processors in the computing node cluster 100 can implement barriers to prevent processing of old control messages that may have been replaced by new control messages in the various situations noted above. The older control messages may refer to control messages issued before the virtual processor crashes or the communication link between the virtual processors is lost.

[0126] A barrier to prevent processing of older control messages may be implemented by assigning a generation indicator to the control messages. The generation indicator represents a corresponding round of control messages issued by the virtual processor. For example, a first generation indicator may represent a first round during which the virtual processor may, for example, issue a set of control messages before an exception (e.g., a crash or loss of communication). A second generation indicator may represent a second round during which the virtual processor may, for example, issue a set of control messages after recovering from an exception. The generation indicator may be in the form of a generation identifier that may be incremented or decremented with successive rounds of control messages issued by the virtual processor.

[0127] A generation indicator may be associated with the control message to indicate which round the control message is part of. The association of the generation indicator with the control message may include including the generation indicator in the control message or maintaining association information mapping the control message to the generation indicator.

[0128] According to some examples of the present disclosure, Figure 6 As shown in , a receiving virtual processor (which is a virtual processor (such as a metadata virtual processor) that has received a control message from a sending virtual processor (such as a source virtual processor) advances (at 602) a generation indicator to indicate a current round (round j) in which one or more control messages are to be received by the receiving virtual processor. Advancing a generation indicator may refer to incrementing or decrementing a generation indicator.

[0129] The receiving virtual processor determines (at 604) whether an exception has occurred, such as a crash of the sending virtual processor or a disconnection of the communication link to the sending virtual processor. If no exception has occurred, the receiving virtual processor continues to receive (at 606) control messages in round j.

[0130] In response to determining (at 604) that an exception has occurred, the recipient virtual processor advances (at 608) the generation indicator (e.g., increments j) to indicate a new round (round j+1, which is after round j). The recipient 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 recipient virtual processor processing the control messages. The recipient virtual processor implements (at 612) control message processing based on the barrier.

[0131] In an example, the barrier prevents a recipient virtual processor that receives one or more control messages in round j+1 from processing any control message 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 indicating that the control message is not to be executed. In another example, the barrier prevents the recipient virtual processor from executing control messages in any previous round(s), the previous round being the round(s) indicated by the generation indicator preceding the current generation indicator.

[0132] Additional Examples

[0133] Figure 7 is a block diagram of a non-transitory machine-readable or computer-readable storage medium 700 storing machine-readable instructions that, when executed, cause a processing system to perform various tasks. The processing system may include Figure 1 A computing node cluster of 100.

[0134] The machine-readable instructions include write request receiving instructions 702 for receiving a write request at a first computing node, wherein the first computing node is part of a collection of multiple computing nodes (e.g., computing node cluster 100). Multiple virtual processors are executable in the multiple computing nodes to manage access to a shared storage system (e.g., Figure 1 The write request may be initiated by a first computing node from a requesting device (e.g., Figure 1 106) received.

[0135] The machine-readable instructions include metadata request sending instructions 704 for sending, in response to the write request, from a first virtual processor at a first computing node to a second virtual processor a request for metadata stored by the second virtual processor. The first virtual processor may be a source virtual processor, and the second virtual processor may be a metadata virtual processor. In some examples, the second virtual processor may be executed in a second computing node separate from the first computing node. The request for metadata may be in the form of a control message, such as initiating a control message (e.g., Figure 3 302 in) or pre-written control messages (e.g., Figure 3 310 in ).

[0136] The machine-readable instructions include intent structure update instructions 706 for updating, by the first virtual processor, an intent structure in the NV memory (eg, Figure 1 For example, the first virtual processor may add a new entry to the intent structure. The new entry corresponds to an identifier of the data and a version of the data.

[0137] The machine-readable instructions include write initiation instructions 708 for initiating writing of data to be stored in a shared storage system in response to metadata received at the first virtual processor from the second virtual processor. The data may be written to a write buffer (e.g., any one of 128-1 to 128-N) to be flushed to the shared storage system later.

[0138] In some examples, the write request is used to write a data object to a shared storage system. The first virtual processor identifies a second virtual processor to which the request for metadata is to be sent based on applying a function (e.g., a hash function or another type of function) to an input value including an identifier of the data object. For example, the input value may include an object ID and a bucket ID. The function generates different output values ​​for different input values, where the different output values ​​map to different partitions associated with corresponding virtual processors in the plurality of virtual processors.

[0139] In some examples, writing the data of the write request to the shared storage system is performed without any exchange of data between the first virtual processor and any other virtual processors of the plurality of virtual processors.

[0140] In some examples, the metadata includes one or more chunk identifiers representing one or more chunks for storing the data. Initiating writing of the data includes initiating writing of one or more chunks represented by the one or more chunk identifiers received at the first virtual processor from the second virtual processor.

[0141] In some examples, in response to the write request, the first virtual processor sends an initiation indication to the second virtual processor, indicating that the writing of data is to be initiated. The initiation indication may include an initiation control message (e.g., Figure 3 In response to the initiation instruction, the first virtual processor receives version information indicating a version of the data from the second virtual processor. The version information may include a version ID (e.g., Figure 3 306 in ).

[0142] In some examples, sending the request for metadata from the first virtual processor to the second virtual processor is subsequent to updating an intent structure in the NV memory with information indicating an intent to write data for the write request.

[0143] In some examples, in response to the request for metadata, the second virtual processor adds an entry to the commit structure (e.g., Figure 1 Any one of 124-1 to 124-N) to indicate that writing of data is in progress.

[0144] In some examples, the machine-readable instructions detect an abnormal condition, and in response to detecting the abnormal condition, find an entry in an intent structure that contains corresponding information indicating an intent to write a data object. The first virtual processor sends a recovery indication including an identifier of the data object to a target virtual processor in the plurality of virtual processors. An example of a recovery indication is an intent cleanup control message (e.g., Figure 5 506 in the first virtual processor). The first virtual processor receives a state related to the data object from the target virtual processor. The state can be based on a state flag (e.g., Figure 2A 204-1, 204-2, etc. in FIG. 1 ). The first virtual processor performs a recovery action in response to the state.

[0145] In some examples, the restore action includes removing the entry from the intent structure.

[0146] In some examples, the recovery action includes sending an indication from the first virtual processor to the target virtual processor to delete the data object.

[0147] In some examples, the recovery action is responsive to a state indicating that a commit structure of the target virtual processor has an entry indicating that a write of the data object is in progress.

[0148] In some examples, the machine-readable instructions associate a generation indicator with each corresponding request received by the receiving virtual processor from the first virtual processor, the generation indicator indicating a turn of the corresponding request of the receiving virtual processor. In response to the exception, the machine-readable instructions implement a barrier to control execution of the corresponding request received by the receiving virtual processor.

[0149] In some examples, the barrier prevents a recipient 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.

[0150] In some examples, the barrier prevents the receiving virtual processor from executing any control messages in any previous round before the current round in which the receiving virtual processor has received one or more control messages.

[0151] In some examples, the first virtual processor receives a read request to read additional data. In response to the read request, the first virtual processor sends a request for additional metadata to the second virtual processor. For example, the request for additional metadata may include Figure 4The first virtual processor receives additional metadata including an identifier of a third virtual processor from the second virtual processor. The third virtual processor may be a data virtual processor. The first virtual processor sends a request for storage location information of additional data to the third virtual processor. For example, the request for storage location information may include Figure 4 The storage location control message sent at 408 in .

[0152] Figure 8 800 is a block diagram of a system 800 according to some examples. The system 800 includes a computing node cluster 801 that executes respective virtual processors 802, 804, and 806 to manage access to data at a shared storage system. A first virtual processor 802 is executable in a first computing node of the computing node cluster to receive a read request at the first virtual processor 802 to read data. 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 computing node of the computing node cluster. For example, the request for metadata 808 may include: Figure 4 The chunk ID control message sent at 402 in .

[0153] The first virtual processor 802 receives metadata 810 including an identifier of a third virtual processor 806 from the second virtual processor 804. 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.

[0154] The first virtual processor 802 sends a request for storage location information 812 of data to the third virtual processor 806. For example, the request for storage location information 812 may include Figure 4 The storage location control message sent at 408 in .

[0155] In response to the request for the storage location information 812, the first virtual processor 802 receives response information 814 from the third virtual processor 806. Based on the response information 814, the first virtual processor 802 performs reading of data.

[0156] In some examples, the response information includes storage location information of the data. In this case, the first virtual processor 802 uses the storage location information to retrieve the data from the shared storage system. The data is received from the shared storage system without passing through the third virtual processor.

[0157] In some examples, the response information includes an indication that the data is stored in the write buffer and has not yet been flushed to the shared storage system. For example, the 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 data from the shared storage system through the third virtual processor 806 in the session.

[0158] Fig. 9 is a flow diagram of process 900 according to some examples. For example, process 900 may be performed by computing node cluster 100.

[0159] Process 900 includes receiving (at 902) a write request at a first computing node. The first computing node is part of a set of multiple computing nodes, and multiple virtual processors are executable in the multiple computing nodes to manage access to data in a shared storage system.

[0160] Process 900 includes, in response to the write request, selecting (at 904) by the first computing node a first virtual processor from a plurality of virtual processors at the first computing node to process the write request. The selection is performed according to the selection process discussed further above.

[0161] Process 900 includes sending (at 906) from a first virtual processor to a second virtual processor at a second computing node a request for metadata stored by the second virtual processor. For example, the request for metadata may include initiating a control message (e.g., Figure 3 302 in) or pre-written control messages (e.g., Figure 3 310 in ).

[0162] Process 900 includes updating (at 908 ), by the first virtual processor, an intent structure in the NV memory with information indicating an intent to write data for a write request.

[0163] Process 900 includes initiating (at 910) writing of data to be stored in a shared storage system in response to metadata received at a first virtual processor from a second virtual processor.

[0164] Process 900 includes, in response to an exception detected by a first virtual processor, performing (at 912) exception recovery at the first virtual processor using an intent structure. The exception may include a crash or loss of a communication link between virtual processors.

[0165] Storage media (e.g. Figure 7700) may include any one or some combination of the following: semiconductor memory devices such as dynamic or static random access memory (DRAM or SRAM), erasable and programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), and flash memory; magnetic disks, such as fixed disks, floppy disks, and removable disks; another magnetic medium, including tape; optical media, such as compact disks (CDs) or digital video disks (DVDs); or other types of storage devices. Note that the instructions discussed above may be provided on one computer-readable or machine-readable storage medium, or alternatively, may be provided on multiple computer-readable media or machine-readable storage media distributed in a large system that may have multiple nodes. Such computer-readable or machine-readable storage media are considered to be part of an article (or product). An article or product may refer to any manufactured single component or multiple components. One or more storage media may be located in a machine that runs machine-readable instructions, or at a remote site from which machine-readable instructions may be downloaded over a network for execution.

[0166] In the present disclosure, unless the context clearly indicates otherwise, the use of the terms "a", "an" or "the" is also intended to include plural forms. In addition, when used in the present disclosure, the terms "comprises", "comprising" or "having" specify the presence of the elements described, but do not exclude the presence or addition of other elements.

[0167] In the foregoing description, many details are set forth to provide an understanding of the subject matter disclosed herein. However, these implementations may be practiced without some of these details. Other implementations may include modifications and variations to the details discussed above. The appended claims are intended to cover such modifications and variations.

Claims

1. A non-transitory machine-readable storage medium comprising instructions that, when executed, cause a processing system to: receiving a write request at a first computing node, wherein the first computing node is part of a set of a plurality of computing nodes, and wherein a plurality of virtual processors are executable in the plurality of computing nodes to manage access to data in a shared storage system; In response to the write request, sending a request from a first virtual processor at the first computing node to a second virtual processor for metadata stored by the second virtual processor, wherein the first virtual processor and the second virtual processor are part of the plurality of virtual processors; updating, by the first virtual processor, an intent structure in a non-volatile memory with information indicating an intent to write data for the write request; as well as In response to the metadata being received at the first virtual processor from the second virtual processor, a write of the data is initiated to cause storage of the data 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: identifying, by the first virtual processor, the second virtual processor to which the request for metadata is to be sent based on applying a function to input values ​​including an identifier of the data object, The function generates different output values ​​for different input values, wherein the different output values ​​are mapped to 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 used to store 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, sending an initiation indication indicating that writing of the data is to be initiated from the first virtual processor to the second virtual processor; and In response to the initiation indication, version information indicating a version of the data is received at the first virtual processor from the second virtual processor.

6. The non-transitory machine-readable storage medium of claim 5, wherein the intent structure in the non-volatile memory is updated with the information indicating the intent to write the data for the write request include: An entry is added 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 is 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 request for metadata, an entry is added by the second virtual processor to a commit structure to indicate that a write of the data is in progress.

9. The non-transitory machine-readable storage medium of claim 1 , wherein the instructions, when executed, cause the processing system to: Detect abnormal conditions; In response to detecting the abnormal condition, finding an entry in the intent structure that includes corresponding information indicating an intent to write a data object; sending, from the first virtual processor to a target virtual processor among the plurality of virtual processors, a resume indication including an identifier of the data object; receiving, at the first virtual processor, from the target virtual processor, a status associated with the data object; as well as A recovery action is performed at the first virtual processor in response to the status.

10. The non-transitory machine-readable storage medium of claim 9, wherein the restore action comprises removing the entry from the intent structure.

11. The non-transitory machine-readable storage medium of claim 9, wherein the recovery action comprises sending an instruction from the first virtual processor to the target virtual processor to delete the data object.

12. The non-transitory machine-readable storage medium of claim 9, wherein the recovery action is responsive to the state 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 with each respective request received by a recipient virtual processor from the first virtual processor, the generation indicator representing a turn of the recipient virtual processor to receive the respective request; and In response to the exception, a barrier is implemented to control execution of the request received by the recipient virtual processor.

14. The non-transitory machine-readable storage medium of claim 13, wherein 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 aborted.

15. The non-transitory machine-readable storage medium of claim 13, wherein the barrier prevents the receiving virtual processor from executing any control message in any previous round before a current round in which the receiving virtual processor has 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: receiving, at the first virtual processor, a read request to read additional data; In response to the read request, sending a request for additional metadata from the first virtual processor to the second virtual processor; receiving, at the first virtual processor from the second virtual processor, the further metadata including an identifier of a third virtual processor; as well as A request for storage location information of the additional data is sent from the first virtual processor to the third virtual processor.

17. A system, include: a cluster of computing nodes executing respective virtual processors to manage access to data at the shared storage system, The first virtual processor may execute in the first computing node of the computing node cluster: receiving, at the first virtual processor, a read request for reading data; In response to the read request, sending a request for metadata from the first virtual processor to a second virtual processor executable in a second compute node of the compute node cluster; receiving, at the first virtual processor from the second virtual processor, the metadata including an identifier of a third virtual processor; Sending a request for storage location information of the data from the first virtual processor to the third virtual processor; receiving, at the first virtual processor, response information from the third virtual processor in response to the request for the storage location information of the data; as well as The reading of the data is performed based on the response information.

18. The system according to claim 17, wherein the response information includes the storage location information of the data, and wherein the first virtual processor is executable in the first computing node to: The storage location information is used by the first virtual processor to retrieve the data from the shared storage system, the retrieved data being received from the shared storage 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 storage system, and wherein the first virtual processor is executable in the first computing node to: establishing a session between the first virtual processor and the third virtual processor; and The data is retrieved from the shared storage system at the first virtual processor by the third virtual processor in the session.

20. A method, include: receiving a write request at a first computing node, wherein the first computing node is part of a set of a plurality of computing nodes, and wherein the plurality of virtual processors are executable in the plurality of computing nodes to manage access to data in a shared storage system; In response to the write request, selecting, by the first computing node, a first virtual processor from the plurality of virtual processors at the first computing node to process the write request; sending, from the first virtual processor to a second virtual processor at a second computing node, a request for metadata stored by the second virtual processor, wherein the first virtual processor and the second virtual processor are part of the plurality of virtual processors; updating, by the first virtual processor, an intent structure in a 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 writing of the data to cause storage of the data in the shared storage system; as well as In response to an exception detected by the first virtual processor, exception recovery is performed at the first virtual processor using the intent structure.

Citation Information

Cited By

  • Metadata construction method and device based on container technology, medium and equipment

    CN119226589A