Disk cluster resource scheduling method, device, system and equipment and storage medium
Through independently deployed management and control scheduling service nodes, fast and reliable scheduling of disk cluster resources is realized in the dual-head storage service node group, which solves the problems of low efficiency and poor reliability of disk cluster data resource scheduling in the existing technology, and improves data storage High availability and stability of the system.
Patent Information
- Application Number
- CN202410870209.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-28
Smart Images

Figure CN118796468A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the technical field of data storage, and in particular to a disk cluster resource scheduling method, apparatus, system, device and storage medium. Background Art
[0002] Currently, in the application scenario of preserving cold data with low access frequency, on the one hand, it is necessary to ensure the security and availability of data storage, and on the other hand, considering the scale of stored data, it is necessary to optimize the data storage method to reduce the data storage cost.
[0003] In the prior art, by combining multiple disk drives into a disk array (disk cluster) based on a storage architecture based on Just a Bunch Of Disks (JBOD), low-cost data storage can be achieved. At the same time, two (or more) disk clusters are mounted to the same storage service node for management and scheduling, forming a dual (multi) head data storage system, which can achieve high availability of data storage services.
[0004] However, in the prior art, in the process of scheduling disk cluster data resources, there are problems of low scheduling efficiency and poor reliability. Summary of the invention
[0005] The embodiments of the present disclosure provide a disk cluster resource scheduling method, apparatus, system, device and storage medium to overcome the problems of low scheduling efficiency and poor reliability in the process of scheduling disk cluster data resources.
[0006] In a first aspect, an embodiment of the present disclosure provides a disk cluster resource scheduling method, which is applied to a data storage system, wherein a management and control scheduling service node and at least one dual-head storage service node group are deployed in the data storage system, and the dual-head storage service node group includes two adjacently deployed storage service nodes, and the method includes:
[0007] The disk cluster affiliation data is obtained through the management and scheduling service node, wherein the disk cluster affiliation data is used to characterize the mapping relationship between at least one disk cluster and the storage service node to which it belongs; the abnormal storage service node in the dual-head storage service node group is detected through the management and scheduling service node, and according to the disk cluster affiliation data, the disk cluster mounted on the abnormal storage service node is scheduled to a normal storage service node in the dual-head storage service node group.
[0008] In a second aspect, an embodiment of the present disclosure provides a disk cluster resource scheduling device, which is applied to a data storage system, wherein a management and control scheduling service node and at least one dual-head storage service node group are deployed in the data storage system, wherein the dual-head storage service node group includes two adjacently deployed storage service nodes, including:
[0009] A data module, used for acquiring disk cluster belonging data through the management and control scheduling service node, wherein the disk cluster belonging data is used to characterize the mapping relationship between at least one disk cluster and the storage service node to which it belongs;
[0010] A scheduling module is used to detect abnormal storage service nodes in the dual-head storage service node group through the management and control scheduling service node, and schedule the disk cluster mounted on the abnormal storage service node to a normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data.
[0011] In a third aspect, an embodiment of the present disclosure provides a data storage system, in which a management and control scheduling service node and at least one dual-head storage service node group are deployed, and the dual-head storage service node group includes two adjacently deployed storage service nodes, wherein the management and control scheduling service node is used to obtain disk cluster affiliation data, wherein the disk cluster affiliation data is used to characterize the mapping relationship between at least one disk cluster and the storage service node to which it belongs; the management and control scheduling service node is also used to detect abnormal storage service nodes in the dual-head storage service node group, and according to the disk cluster affiliation data, schedule the disk cluster mounted on the abnormal storage service node to a normal storage service node in the dual-head storage service node group.
[0012] In a fourth aspect, an embodiment of the present disclosure provides an electronic device, including: a processor and a memory;
[0013] The memory stores computer-executable instructions;
[0014] The processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the disk cluster resource scheduling method as described in the first aspect and various possible designs of the first aspect.
[0015] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the disk cluster resource scheduling method described in the first aspect and various possible designs of the first aspect is implemented.
[0016] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the disk cluster resource scheduling method as described in the first aspect and various possible designs of the first aspect.
[0017] The disk cluster resource scheduling method, apparatus, system, device and storage medium provided in this embodiment obtains disk cluster affiliation data through the control and scheduling service node, wherein the disk cluster affiliation data is used to characterize the mapping relationship between at least one disk cluster and the storage service node to which it belongs; detects abnormal storage service nodes in the dual-head storage service node group through the control and scheduling service node, and schedules the disk cluster mounted on the abnormal storage service node to the normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data. The disk clusters under the storage service nodes in the dual-head storage service node group are scheduled by an independently deployed control and scheduling service node, so that in the event of a single node failure in the dual-head storage service node group, the scheduling of disk cluster resources is completed quickly and reliably, avoiding the problem of poor reliability of storage services and low scheduling efficiency caused by the inability to align the disk clusters mounted on the two storage service nodes due to a single node failure or inability to communicate. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0019] Figure 1 An application scenario diagram of the disk cluster resource scheduling method provided by the embodiment of the present disclosure;
[0020] Figure 2 A schematic diagram of the process of the disk cluster resource scheduling method provided in the embodiment of the present disclosure Figure 1 ;
[0021] Figure 3 A schematic diagram of the architecture of a first data storage system is provided for an embodiment of the present disclosure;
[0022] Figure 4 for Figure 2 A flowchart of a specific implementation method of step S102 in the illustrated embodiment;
[0023] Figure 5 A schematic diagram of the process of the disk cluster resource scheduling method provided in the embodiment of the present disclosure Figure 2 ;
[0024] Figure 6 for Figure 5 A flowchart of a specific implementation method of step S207 in the illustrated embodiment;
[0025] Figure 7 A schematic diagram of a disk cluster resource scheduling process provided by an embodiment of the present disclosure;
[0026] Figure 8 A structural block diagram of a disk cluster resource scheduling device provided by an embodiment of the present disclosure;
[0027] Fig. 9 A schematic diagram of a data storage system provided in an embodiment of the present disclosure;
[0028] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure;
[0029] Fig.11 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.
[0031] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0032] The application scenarios of the embodiments of the present disclosure are explained below:
[0033] Figure 1 This is an application scenario diagram of the disk cluster resource scheduling method provided by the embodiment of the present disclosure. The disk cluster resource scheduling method provided by the embodiment of the present disclosure can be applied to data storage application scenarios, especially to data storage application scenarios for cold data such as low-frequency cold storage and archival storage. The execution subject of this embodiment can be a control device, a data server, or other electronic devices that perform similar functions in a data storage system.
[0034] Among them, in some embodiments, the terminal device or server can implement the disk cluster resource scheduling method provided in the embodiment of the present application by running various computer executable instructions or computer programs. For example, the computer executable instructions can be program-level commands, machine instructions or software instructions. The computer program can be a native program or software module in the operating system; it can be a local application, that is, a program that needs to be installed in the operating system to run. In summary, the above-mentioned computer executable instructions can be instructions in any form, and the above-mentioned computer program can be an application, module or plug-in in any form, and the specific implementation form can be configured as needed. Further, in some embodiments, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud storage, cloud communication, cloud database, cloud computing, cloud functions, network services, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms and other basic cloud computing services, wherein the cloud service can be an interactive processing service for terminal devices to call.
[0035] refer to Figure 1 As shown in , exemplarily, after receiving a data storage request sent by a client, the data storage system generates metadata of the data to be stored, i.e., the relevant description information of the data to be stored, and stores it through multiple metadata service nodes to form a consistency algorithm group (raft group) to ensure high availability of the primary and standby data; on the other hand, through the storage service node, a disk cluster consisting of multiple disk drives is mounted, and the data to be stored is stored in the corresponding disk cluster to realize the storage of the original data of the data to be stored. Among them, every two storage service nodes in the system constitute a dual-head storage service node group. The storage service nodes in the storage service node group can call the local disk cluster (i.e., the disk cluster mounted by itself) or the remote disk cluster (i.e., the disk cluster mounted by another storage service node in the storage service node group), thereby realizing the primary and standby storage mode. When one of the storage service nodes fails, the other storage service node continues to provide data read and write services, i.e., a dual-head data storage system.
[0036] In the prior art, by combining multiple disk drives into a disk array (disk cluster) based on a storage architecture of a disk cluster, low-cost data storage can be achieved. At the same time, two (or more) disk clusters are mounted to the same storage service node for management and scheduling, forming a dual (multi) head data storage system, which can achieve high availability of data storage services. However, in the related art, in a dual-head data storage system, the mapping relationship between the storage service node and the disk cluster is recorded in the storage service node. When a storage service node fails or anomalies, the disk cluster mounted by the other storage service node will change. In this case, the mapping information of the disk clusters stored in the two storage service nodes will be inconsistent, resulting in errors, or the need for resynchronization and calibration before normal data reading and writing can be performed, resulting in low scheduling efficiency and poor reliability.
[0037] The embodiment of the present disclosure provides a disk cluster resource scheduling method to solve the above problem.
[0038] refer to Figure 2 , Figure 2 A schematic diagram of the process of the disk cluster resource scheduling method provided in the embodiment of the present disclosure Figure 1 The method of this embodiment can be applied in a data storage system, wherein a management and control scheduling service node and at least one dual-head storage service node group are deployed in the data storage system, and the dual-head storage service node group includes two adjacently deployed storage service nodes. The disk cluster resource scheduling method includes:
[0039] Step S101: Obtain disk cluster affiliation data through a management and control scheduling service node, wherein the disk cluster affiliation data is used to characterize a mapping relationship between at least one disk cluster and the storage service node to which it belongs.
[0040] Step S102: Detect the abnormal storage service node in the dual-head storage service node group through the management and control scheduling service node, and schedule the disk cluster mounted on the abnormal storage service node to the normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data.
[0041] refer to Figure 1The schematic diagram of the application scenario shown in the figure shows that the solution provided in this embodiment is applied to a data storage system, specifically, to a dual-head data storage service system, that is, a data storage system that performs peer-to-peer data storage based on a dual-head storage service node group. After the data storage system is started, a control and scheduling service node and multiple storage service nodes will be created, wherein the control and scheduling service node is a storage service. More specifically, after the control and scheduling service node is created, it will be maintained in the memory, and the corresponding scheduling tasks will be executed through the control and scheduling service node. The specific execution process will be described in detail in the subsequent steps. The dual-head storage service node group is a logical group composed of two storage service nodes. The two data storage nodes in the dual-head storage service node group serve as disaster recovery for each other, thereby achieving high availability of the data storage system. The control and scheduling service node can communicate with the dual-head storage service node group, thereby realizing the scheduling of the disk cluster resources mounted by the storage service nodes in the dual-head storage service node group.
[0042] Figure 3 A schematic diagram of the architecture of a first data storage system is provided for an embodiment of the present disclosure, such as Figure 3 As shown, after the data storage system is started, it will create a management and control scheduling service node RootServer and multiple storage service nodes ChunkServer. In one possible implementation, the management and control scheduling service node includes a primary management and control scheduling service node RootServer_1 and a secondary management and control scheduling service node RootServer_2 (shown as RootServer_1 and RootServer_2 in the figure) which are mutually primary and backup. The primary management and control scheduling service node and the secondary management and control scheduling service node are encapsulated based on a distributed coordination service (such as ZooKeeper service), thereby achieving high availability of the two management and control scheduling service nodes, further improving the reliability of the data storage system.
[0043] On the other hand, for multiple storage service nodes in the data storage system, every two storage service nodes logically constitute a dual-head storage service node group to achieve highly available data storage. Among them, each storage service node corresponds to a local disk cluster. Taking the dual-head storage service node group T1 shown in the figure as an example, the dual-head storage service node group T1 includes storage service node ChunkServer_1 and storage service node ChunkServer_2 (shown as ChunkServer_1 and ChunkServer_2 in the figure). Among them, the local disk cluster corresponding to the storage service node ChunkServer_1 is the disk cluster JBOD_1 (shown as JBOD_1 in the figure), and the local disk cluster corresponding to the storage service node ChunkServer_2 is the disk cluster JBOD_2 (shown as JBOD_2 in the figure), and correspondingly, the remote disk cluster corresponding to the storage service node ChunkServer_1 is the disk cluster JBOD_2, and the remote disk cluster corresponding to the storage service node ChunkServer_2 is the disk cluster JBOD_1. The above situation can be described as: storage service node ChunkServer_1 mounts disk cluster JBOD_1, storage service node ChunkServer_2 mounts disk cluster JBOD_2, or, disk cluster JBOD_1 belongs to storage service node ChunkServer_1, and disk cluster JBOD_2 belongs to storage service node ChunkServer_2.
[0044] Furthermore, the above-mentioned storage service node ChunkServer_1 and storage service node ChunkServer_2 are used to realize independent operation of the two and mutual disaster recovery. Specifically, when the storage service node ChunkServer_1 and the storage service node ChunkServer_2 are both operating normally, the two manage the mounted disk clusters respectively and write data thereto, thereby realizing the effect of providing data storage services to the outside. When an exception occurs to one of the two, for example, when the storage service node ChunkServer_1 is abnormal, through logical scheduling, the disk cluster JBOD_1 belonging to the storage service node ChunkServer_1 is mounted to the storage service node ChunkServer_2, so that the storage service node ChunkServer_2 can access the disk cluster JBOD_1, thereby ensuring the high availability of the system. In this embodiment, the above-mentioned scheduling steps are performed by the management and control scheduling service node.
[0045] Based on the above data storage system, illustratively, first, the management and control scheduling service node in the data storage system will periodically obtain disk cluster affiliation data, and the disk cluster affiliation data represents the mapping relationship between at least one disk cluster and the storage service node to which it belongs. For example, in the above example, the mapping relationship between the storage service node ChunkServer_1 and the disk cluster JBOD_1, and the mapping relationship between the storage service node ChunkServer_2 and the disk cluster JBOD_2 are all the contents of the disk cluster affiliation data. In a possible implementation, the disk cluster affiliation data is pre-loaded in the management and control scheduling service node (i.e., memory), and then the management and control scheduling service node will periodically detect each storage service node to see if there is an abnormality, such as loss of communication, abnormal response, inability to execute normal read and write instructions, etc., that is, detect abnormal storage service nodes. When the management and control scheduling service node detects the abnormal storage service node, it will perform resource scheduling on it according to the dual-head storage service node group to which it is located, that is, the disk cluster mounted by the abnormal storage service node is scheduled to another normal storage service node in the dual-head storage service node group to which it is located.
[0046] In one possible implementation, Figure 4 As shown, the specific implementation steps of detecting the abnormal storage service node in the dual-head storage service node group by the management and control scheduling service node in step S102 include:
[0047] Step S102A-1: Obtain a first cluster topology, where the first cluster topology indicates an initial storage service node deployed in the data storage system.
[0048] Step S102A-2: periodically sending a heartbeat detection instruction based on a remote procedure call to each initial storage service node indicated by the first cluster topology through the management and control scheduling service node.
[0049] Step S102A-3: Obtain a second cluster topology according to the heartbeat detection results returned by each initial storage service node. The second cluster topology is used to represent the storage service nodes in a surviving state in the data storage system.
[0050] Step S102A-4: Obtain an abnormal storage service node according to the second cluster topology.
[0051] Exemplarily, the cluster topology is data describing the storage service nodes deployed in the data storage system. The management and control scheduling service node determines the storage service nodes in the data storage system according to the cluster topology, and performs availability detection on them, that is, detects whether the storage service nodes are abnormal (whether they are abnormal storage service nodes), wherein the first cluster topology is data indicating the initial storage service nodes deployed in the data storage system, for example, the node identifiers of all storage service nodes deployed in the data storage system. Correspondingly, the second cluster topology is the storage service nodes that are in a surviving state in the data storage system after the availability detection. For the process of availability detection, specifically, the management and control scheduling service node periodically sends a heartbeat detection instruction based on a remote procedure call (RPC) to each initial storage service node indicated by the first cluster topology, and then determines whether each initial storage service node is operating normally according to the heartbeat detection result returned by each initial storage service node, thereby determining the storage service nodes that are in a surviving state in the data storage system (normal storage service nodes), or determining the storage service nodes that are in a non-surviving state in the data storage system (abnormal storage service nodes). Afterwards, according to the specific implementation form of the second cluster topology, for example, when the second cluster topology only records the node identifier of the storage service node in the available state, the abnormal storage service node can be obtained by further comparing the difference between the second cluster topology and the first cluster topology; for another example, when the second cluster topology records the node identifier of the initial storage service node, as well as the node identifier of the normal storage service node or the abnormal storage service node, the abnormal storage service node can be obtained directly based on the second cluster topology.
[0052] Afterwards, based on the dual-head storage service node group to which the abnormal storage service node belongs, another normal storage service node in the dual-head storage service node group is located, and a disk cluster addition operation is performed on it, so as to achieve the purpose of scheduling the disk cluster mounted on the abnormal storage service node to the normal storage service node in the dual-head storage service node group.
[0053] In this embodiment, the disk cluster affiliation data is obtained through the management and control scheduling service node, wherein the disk cluster affiliation data is used to characterize the mapping relationship between at least one disk cluster and the storage service node to which it belongs; the abnormal storage service node in the dual-head storage service node group is detected through the management and control scheduling service node, and the disk cluster mounted on the abnormal storage service node is scheduled to the normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data. The disk clusters under the storage service nodes in the dual-head storage service node group are scheduled by an independently deployed management and control scheduling service node, so that in the event of a single node failure in the dual-head storage service node group, the scheduling of the disk cluster resources is completed quickly and reliably, avoiding the problem of poor reliability of storage services and low scheduling efficiency caused by the inability to align the disk clusters mounted on the two storage service nodes due to a single node failure or inability to communicate.
[0054] refer to Figure 5 , Figure 5 A schematic diagram of the process of the disk cluster resource scheduling method provided in the embodiment of the present disclosure Figure 2 In this embodiment Figure 2 On the basis of the embodiment shown, step S102 is further refined, and an initialization process for the storage service node is added. The disk cluster resource scheduling method includes:
[0055] Step S201: Obtain disk cluster affiliation data through a management and control scheduling service node, wherein the disk cluster affiliation data is used to characterize a mapping relationship between at least one disk cluster and the storage service node to which it belongs.
[0056] Step S202: Control the storage service node to start up without load, and obtain a local configuration file, where the local configuration file is used to indicate the local disk cluster and the remote disk cluster corresponding to the storage service node.
[0057] Step S203: By managing and scheduling the service node, the storage service node is controlled to load the local disk cluster and the remote disk cluster according to the local configuration file.
[0058] Exemplarily, the disk cluster includes a local disk cluster and a remote disk cluster. The local disk cluster is a disk cluster mounted when the storage service node is operating normally, and the remote disk cluster is a disk cluster mounted by the storage service node when another storage service node in the dual-head storage service node group where the storage service node is located is abnormal. As a storage engine, the storage service node provides data read and write services to the outside. Therefore, before it provides data read and write services normally, it needs to load the corresponding disk, that is, load the corresponding disk cluster. In the prior art, the mapping relationship between the disk cluster and the storage service node to which it belongs (that is, the disk cluster attribution data) is written in the management and scheduling service node. When the storage service node is started, it will be started with load, that is, when the storage service node is started, the corresponding disk cluster (disk drive) is loaded. In this way, when the storage service node is restored after a failure, the disk cluster attribution data recorded in the two storage service nodes in the dual-head storage service node group will be out of sync, resulting in additional disk cluster attribution data synchronization processing steps, affecting system stability and operation efficiency.
[0059] In this embodiment, when the storage service node is started, including the first startup after the storage service is created, and the startup after a failure occurs and recovery, no-load startup is adopted, that is, when the storage service node is started, the disk cluster (disk drive) is not loaded, but only the local configuration file is obtained. The local configuration file is used to indicate the local disk cluster and the remote disk cluster corresponding to the storage service node, that is, the disk cluster mounted by the storage service node, and the disk cluster mounted by another storage service node in the same dual-head storage service node group. Afterwards, the storage service node is controlled to load the local disk cluster and the remote disk according to the local configuration file through the management and scheduling service node. Exemplarily, the specific implementation method of step S203 includes: executing a registration instruction based on a remote procedure call through the management and scheduling service node, registering the storage service node in the management and scheduling service node; sending a loading instruction based on a remote procedure call to the storage service node through the management and scheduling service node according to the local configuration file, so that the storage service node loads the corresponding local disk cluster and remote disk cluster. Exemplarily, by executing a registration instruction based on a remote procedure call, the storage service node is registered in the management and scheduling service node, that is, the cluster topology is updated. After the storage service node is successfully registered, a loading instruction based on a remote procedure call is sent to the storage service node, recording the basic necessary resources (such as background threads, memory pools, RPC services, etc.) and mount files of each disk corresponding to the disk cluster, so as to complete the loading of the disk cluster corresponding to the storage service node, that is, the initialization startup process of the storage service node.
[0060] Exemplarily, the management and control scheduling service node stores disk cluster affiliation data and cluster topology, wherein the cluster topology is used to indicate the storage service nodes in the data storage system, and the disk cluster affiliation data is used to indicate the disk cluster corresponding to each storage service node. The management and control scheduling service node determines the disk cluster corresponding to each storage service node through the cluster topology and the disk cluster affiliation data, and registers it. After registration, it sends a loading instruction based on a remote procedure call to the storage service node to complete the loading of the disk cluster. Since the loading process of the disk cluster is completed by the management and control scheduling service node, the problem of asynchronous disk cluster affiliation data can be avoided, thereby realizing fast and reliable scheduling of disk cluster resources.
[0061] Step S204: Detect abnormal storage service nodes in the dual-head storage service node group through the management and control scheduling service node.
[0062] Step S205: Determine the target disk cluster mounted by the abnormal storage service node according to the disk cluster affiliation data.
[0063] Step S206: Send a loading instruction based on a remote procedure call to the normal storage service node in the dual-head storage service node group through the management and control scheduling service node, so that the normal storage service node loads the target disk cluster.
[0064] Exemplarily, further, after the storage service node in the data storage system is started, the management and scheduling service node will periodically detect abnormal storage service nodes (step S205), and the specific implementation method is as follows: Figure 2 This has been introduced in the illustrated embodiment and will not be repeated here. After the management and control scheduling service node detects the abnormal storage service node, in a possible implementation method, the cluster topology recorded in the management and control scheduling service node (memory) (for example, the first cluster topology) records the logical grouping information of each dual-head storage service node group, for example, storage service node A and storage service node B belong to each dual-head storage service node group #1, storage service node C and storage service node D belong to each dual-head storage service node group #2, and so on. Based on the above cluster topology, the management and control scheduling service node can determine the dual-head storage service node group to which the abnormal storage service node belongs, as well as another storage service node in the dual-head storage service node group, that is, the normal storage service node. Afterwards, the management and control scheduling service node determines the target disk cluster mounted by the abnormal storage service node based on the disk cluster affiliation data, and sends a loading instruction based on a remote procedure call (RPC) to the normal storage service node in the dual-head storage service node group to instruct the normal storage service node to load the target disk cluster, thereby completing the scheduling of the disk cluster resources.
[0065] Optionally, after step S206, the method further includes:
[0066] Step S207: After detecting that the abnormal storage service node has returned to normal, the target disk cluster is scheduled to the abnormal storage service node that has returned to normal through the management and control scheduling service node.
[0067] Exemplarily, after the above steps in this embodiment, in the event of an abnormal storage service node appearing in the data storage system, another storage service node in the same dual-head storage service node group can continue to provide data read and write services, thereby ensuring the operational stability and high availability of the data storage system. Afterwards, as the detection and modification mechanism for the abnormal storage service node in the data storage system takes effect, or the system operating load decreases, the above abnormal storage service node will be restored to a normal storage service node. After it is restored to a normal storage service node, after the storage service node initialization step in the above steps, the storage service node can continue to provide data read and write services. At this time, the management and scheduling service node will schedule the disk cluster previously removed from the abnormal storage service node to the storage service node, thereby improving load balancing.
[0068] For example, Figure 6 As shown, the specific implementation of step S207 includes:
[0069] Step S2071: after detecting that the abnormal storage service node has returned to normal, a removal instruction based on a remote procedure call is sent to the normal storage service node through the management and control scheduling service node;
[0070] Step S2072: In response to the removal instruction, the normal storage service node sets the mounted target disk cluster to a read-only state and unmounts the target disk cluster;
[0071] Step S2073: Sending a loading instruction based on a remote procedure call to the abnormal storage service node that has returned to normal through the management and control scheduling service node;
[0072] Step S2074: The abnormal storage service node is restored to normal and responds to the loading instruction to load the target disk cluster.
[0073] Exemplarily, the management and control scheduling service node detects the available status of each initial storage service node by periodically sending a heartbeat detection instruction to the initial storage service node indicated by the first cluster topology. After detecting that the abnormal storage service node has returned to normal, it first sends a removal instruction based on a remote procedure call to the normal storage service node of the same dual-head storage service node group as the abnormal storage service node, wherein the specific implementation method of determining the dual-head storage service node group where the abnormal storage service node is located, and another storage service node (normal storage service node) in the dual-head storage service node has been introduced in the previous embodiment steps and will not be repeated here. Afterwards, the normal storage service node responds to the removal instruction, sets the target disk cluster to a read-only state, and uninstalls the target disk cluster. Among them, the purpose of setting the target disk cluster to a read-only state is to lock the metadata of the target disk cluster to avoid the problem of metadata inconsistency caused by continuous writing of data during the disk cluster scheduling process. Afterwards, the target disk cluster is uninstalled from the normal storage service node. Afterwards, through the management and scheduling service node, a loading instruction based on a remote procedure call is sent to the abnormal storage service node that has returned to normal, and the abnormal storage service node that has returned to normal will respond to the loading instruction and load the target disk cluster. This process is similar to the normal initialization and startup process of the storage service node, and will not be repeated here.
[0074] Furthermore, after step S2072, the method further includes:
[0075] Step S2072A: Generate checkpoint information of metadata corresponding to the original data stored in the target disk cluster through the management and control scheduling service node, where the checkpoint information is used to represent the storage location of the original data.
[0076] Step S2072B: Write the checkpoint information into the target disk cluster.
[0077] Exemplarily, after setting the mounted target disk cluster to read-only status, the control and scheduling service node will simultaneously generate the metadata checkpoint information (CheckPoint) corresponding to the original data stored in the target disk cluster, and the checkpoint information is used to characterize the storage location of the original data. And write it to the corresponding target disk cluster to complete the recording and updating of the corresponding metadata. Through the above steps, the target disk cluster (disk drive in it) can be quickly loaded in the subsequent steps, improving the efficiency of disk cluster loading.
[0078] Figure 7 A schematic diagram of a disk cluster resource scheduling process provided by an embodiment of the present disclosure is shown below. Figure 7 The above-mentioned embodiment steps are further introduced as follows. Figure 7As shown, exemplarily, first, the management and scheduling service node (shown as RootServer in the figure) will periodically send heartbeat detection instructions to each storage service node in the data storage system (such as ChunkServer_1 and ChunkServer_2 shown in the figure) according to the cluster topology (a kind of data indicating the storage service nodes deployed in the data storage system) to determine the available status of the storage service node (such as time t0 shown in the figure). When an abnormal storage service node is detected, such as ChunkServer_1 shown in the figure, which is an abnormal storage service node, the management and scheduling service node will send a loading instruction to the storage service node belonging to the same dual-head storage service node group, such as ChunkServer_2 shown in the figure, so as to schedule the disk cluster JBOD_1 mounted under ChunkServer_1 to ChunkServer_2. At this time, disk clusters JBOD_1 and JBOD_2 are mounted on ChunkServer_2 at the same time (such as time t1 shown in the figure). Afterwards, when it is detected that the abnormal storage service node ChunkServer_1 has returned to normal, the management and scheduling service node first sends a removal instruction to ChunkServer_2 (for example, time t2 shown in the figure), and then the management and scheduling service node sends a loading instruction to ChunkServer_1, and re-schedules the disk cluster JBOD_1 from ChunkServer_2 to ChunkServer_1 (for example, time t3 shown in the figure), thereby completing the disk cluster resource scheduling process.
[0079] In this embodiment, the disk clusters under the storage service nodes in the dual-head storage service node group are scheduled through independently deployed management and control scheduling service nodes, so that in the event of a single node failure in the dual-head storage service node group, the disk cluster resources can be quickly and reliably scheduled, and after the failed storage service node is restored, the disk cluster resources can be quickly and reliably scheduled back to the original storage service node, thereby achieving system load balancing and improving the reliability and stability of the data storage system.
[0080] In this embodiment, the implementation method of step S201 is the same as that of the present disclosure. Figure 2 The implementation method of step S101 in the illustrated embodiment is the same and will not be described in detail here.
[0081] Corresponding to the disk cluster resource scheduling method of the above embodiment, Figure 8A block diagram of the structure of the disk cluster resource scheduling device provided in the embodiment of the present disclosure. The disk cluster resource scheduling device 3 is applied to a data storage system, in which a management and control scheduling service node and at least one dual-head storage service node group are deployed, and the dual-head storage service node group includes two adjacently deployed storage service nodes. The method described in the above embodiment can be executed by the disk cluster resource scheduling device 3, which can be implemented by software and / or hardware, and can be integrated in an electronic device with certain data processing functions. The electronic device can include but is not limited to mobile terminals with big data processing capabilities, as well as fixed terminals with big data processing capabilities such as desktop computers and supercomputers.
[0082] For the sake of convenience, only the parts related to the embodiments of the present disclosure are shown. Figure 8 , the disk cluster resource scheduling device 3 includes:
[0083] A data module 31 is used to obtain disk cluster belonging data through a management and control scheduling service node, wherein the disk cluster belonging data is used to represent a mapping relationship between at least one disk cluster and the storage service node to which it belongs;
[0084] The scheduling module 32 is used to detect abnormal storage service nodes in the dual-head storage service node group by managing and controlling the scheduling service nodes, and schedule the disk cluster mounted on the abnormal storage service node to the normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data.
[0085] According to one or more embodiments of the present disclosure, when the scheduling module 32 detects abnormal storage service nodes in the dual-head storage service node group through the management and control scheduling service node, it is specifically used to: obtain a first cluster topology, the first cluster topology indicating the initial storage service nodes deployed in the data storage system; periodically send a heartbeat detection instruction based on a remote procedure call to each initial storage service node indicated by the first cluster topology through the management and control scheduling service node; obtain a second cluster topology based on the heartbeat detection results returned by each initial storage service node, the second cluster topology is used to characterize the storage service nodes that are in a surviving state in the data storage system; and obtain the abnormal storage service node based on the second cluster topology.
[0086] According to one or more embodiments of the present disclosure, when the scheduling module 32 schedules the disk cluster mounted on the abnormal storage service node to the normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data, it is specifically used to: determine the target disk cluster mounted on the abnormal storage service node according to the disk cluster affiliation data; send a loading instruction based on a remote procedure call to the normal storage service node in the dual-head storage service node group through the management and control scheduling service node, so that the normal storage service node loads the target disk cluster.
[0087] According to one or more embodiments of the present disclosure, the scheduling module 32 is also used for: after detecting that the abnormal storage service node has returned to normal, sending a removal instruction based on a remote procedure call to the normal storage service node through the management and control scheduling service node; responding to the removal instruction through the normal storage service node, setting the mounted target disk cluster to a read-only state, and unmounting the target disk cluster; sending a loading instruction based on a remote procedure call to the abnormal storage service node that has returned to normal through the management and control scheduling service node; and loading the target disk cluster in response to the loading instruction through the abnormal storage service node that has returned to normal.
[0088] According to one or more embodiments of the present disclosure, after the mounted target disk cluster is set to a read-only state, the scheduling module 32 is also used to: generate checkpoint information of the metadata corresponding to the original data stored in the target disk cluster by managing and controlling the scheduling service node, the checkpoint information being used to characterize the storage location of the original data; and write the checkpoint information into the target disk cluster.
[0089] According to one or more embodiments of the present disclosure, the control and scheduling service node includes a primary control and scheduling service node and a secondary control and scheduling service node which are mutually backup, and the primary control and scheduling service node and the secondary control and scheduling service node are encapsulated based on a distributed coordination service.
[0090] According to one or more embodiments of the present disclosure, the disk cluster includes a local disk cluster and a remote disk cluster. The local disk cluster is a disk cluster mounted when the storage service node operates normally. The remote disk cluster is a disk cluster mounted by the storage service node when another storage service node in the dual-head storage service node group where the storage service node is located is abnormal. The scheduling module 32 is also used to: control the no-load startup of the storage service node and obtain a local configuration file, which is used to indicate the local disk cluster and remote disk cluster corresponding to the storage service node; and control the storage service node to load the local disk cluster and remote disk cluster according to the local configuration file by managing and scheduling the service node.
[0091] According to one or more embodiments of the present disclosure, when the scheduling module 32 controls the storage service node to load the local disk cluster and the remote disk cluster according to the local configuration file through the management and scheduling service node, it is specifically used to: execute the registration instruction based on the remote procedure call through the management and scheduling service node to register the storage service node in the management and scheduling service node; send the loading instruction based on the remote procedure call to the storage service node through the management and scheduling service node according to the local configuration file, so that the storage service node loads the corresponding local disk cluster and remote disk cluster.
[0092] The data module 31 is connected to the scheduling module 32. The disk cluster resource scheduling device 3 provided in this embodiment can implement the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be described in detail in this embodiment.
[0093] The present disclosure also provides a data storage system. Fig. 9 A schematic diagram of a data storage system provided in an embodiment of the present disclosure, such as Fig. 9 As shown, a management and control scheduling service node 41 and at least one dual-head storage service node group are deployed in the data storage system 4, and the dual-head storage service node group includes two adjacently deployed storage service nodes 42, wherein the management and control scheduling service node 41 is used to obtain disk cluster affiliation data, wherein the disk cluster affiliation data is used to characterize the mapping relationship between at least one disk cluster and the storage service node to which it belongs; the management and control scheduling service node 41 is also used to detect abnormal storage service nodes in the dual-head storage service node group, and according to the disk cluster affiliation data, schedule the disk cluster mounted on the abnormal storage service node to a normal storage service node in the dual-head storage service node group.
[0094] The data storage system provided in this embodiment can execute the technical solution of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated in this embodiment.
[0095] Fig.10 A schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure is shown in FIG. Fig.10 As shown, the electronic device 5 includes:
[0096] A processor 51, and a memory 52 communicatively connected to the processor 51;
[0097] The memory 52 stores computer executable instructions;
[0098] The processor 51 executes the computer execution instructions stored in the memory 52 to implement the following Figure 2-Figure 7 The disk cluster resource scheduling method in the illustrated embodiment.
[0099] Optionally, the processor 51 and the memory 52 are connected via a bus 53 .
[0100] For related instructions, please refer to Figure 2-Figure 7 The relevant descriptions and effects corresponding to the steps in the corresponding embodiments can be understood, and no further elaboration is made here.
[0101] The present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, which are used to implement the present invention when executed by a processor. Figure 2-Figure 7 A disk cluster resource scheduling method provided by any one of the corresponding embodiments.
[0102] The present invention provides a computer program product, including a computer program. When the computer program is executed by a processor, the present invention is realized. Figure 2-Figure 7 A disk cluster resource scheduling method provided by any one of the corresponding embodiments.
[0103] In order to implement the above embodiment, the embodiment of the present disclosure also provides an electronic device.
[0104] refer to Fig.11 , which shows a schematic diagram of the structure of an electronic device 900 suitable for implementing the embodiment of the present disclosure, and the electronic device 900 may be a terminal device or a server. The terminal device may include but is not limited to mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle terminals (such as vehicle navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Fig.11 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0105] like Fig.11 As shown, the electronic device 900 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the electronic device 900 are also stored. The processing device 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.
[0106] Typically, the following devices may be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 909. The communication device 909 may allow the electronic device 900 to communicate with other devices wirelessly or by wire to exchange data. Although Fig.11 The electronic device 900 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0107] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 909, or installed from a storage device 908, or installed from a ROM 902. When the computer program is executed by the processing device 901, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0108] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0109] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0110] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0111] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0112] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0113] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or hardware, wherein the name of a unit or module does not, in some cases, constitute a limitation on the unit itself.
[0114] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0115] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0116] In a first aspect, according to one or more embodiments of the present disclosure, a disk cluster resource scheduling method is provided, which is applied to a data storage system, wherein a management and control scheduling service node and at least one dual-head storage service node group are deployed in the data storage system, wherein the dual-head storage service node group includes two adjacently deployed storage service nodes, and the method includes:
[0117] The disk cluster affiliation data is obtained through the management and scheduling service node, wherein the disk cluster affiliation data is used to characterize the mapping relationship between at least one disk cluster and the storage service node to which it belongs; the abnormal storage service node in the dual-head storage service node group is detected through the management and scheduling service node, and according to the disk cluster affiliation data, the disk cluster mounted on the abnormal storage service node is scheduled to a normal storage service node in the dual-head storage service node group.
[0118] According to one or more embodiments of the present disclosure, detecting abnormal storage service nodes in the dual-head storage service node group through the management and control scheduling service node includes: obtaining a first cluster topology, the first cluster topology indicating the initial storage service nodes deployed in the data storage system; periodically sending a heartbeat detection instruction based on a remote procedure call to each of the initial storage service nodes indicated by the first cluster topology through the management and control scheduling service node; obtaining a second cluster topology based on the heartbeat detection results returned by each of the initial storage service nodes, the second cluster topology being used to characterize the storage service nodes in a surviving state in the data storage system; and obtaining the abnormal storage service node based on the second cluster topology.
[0119] According to one or more embodiments of the present disclosure, scheduling the disk cluster mounted on the abnormal storage service node to the normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data includes: determining the target disk cluster mounted on the abnormal storage service node according to the disk cluster affiliation data; and sending a loading instruction based on a remote procedure call to the normal storage service node in the dual-head storage service node group through the management and control scheduling service node, so that the normal storage service node loads the target disk cluster.
[0120] According to one or more embodiments of the present disclosure, the method also includes: after detecting that the abnormal storage service node has returned to normal, sending a removal instruction based on a remote procedure call to the normal storage service node through the management and scheduling service node; responding to the removal instruction through the normal storage service node, setting the mounted target disk cluster to a read-only state, and unmounting the target disk cluster; sending a loading instruction based on a remote procedure call to the abnormal storage service node that has returned to normal through the management and scheduling service node; and loading the target disk cluster through the abnormal storage service node that has returned to normal in response to the loading instruction.
[0121] According to one or more embodiments of the present disclosure, after setting the mounted target disk cluster to a read-only state, the method further includes: generating checkpoint information of metadata corresponding to the original data stored in the target disk cluster through the management and scheduling service node, the checkpoint information being used to characterize the storage location of the original data; and writing the checkpoint information into the target disk cluster.
[0122] According to one or more embodiments of the present disclosure, the control and scheduling service node includes a primary control and scheduling service node and a secondary control and scheduling service node which are mutually backup, and the primary control and scheduling service node and the secondary control and scheduling service node are based on distributed coordination service encapsulation.
[0123] According to one or more embodiments of the present disclosure, the disk cluster includes a local disk cluster and a remote disk cluster, the local disk cluster being a disk cluster mounted when the storage service node operates normally, and the remote disk cluster being a disk cluster mounted by the storage service node when another storage service node in the dual-head storage service node group where the storage service node is located is abnormal, and the method also includes: controlling the storage service node to start up without load, and obtaining a local configuration file, wherein the local configuration file is used to indicate the local disk cluster and the remote disk cluster corresponding to the storage service node; and controlling the storage service node to load the local disk cluster and the remote disk cluster according to the local configuration file through the management and scheduling service node.
[0124] According to one or more embodiments of the present disclosure, controlling the storage service node to load the local disk cluster and the remote disk cluster according to the local configuration file through the management and scheduling service node includes: executing a registration instruction based on a remote procedure call through the management and scheduling service node to register the storage service node in the management and scheduling service node; sending a loading instruction based on a remote procedure call to the storage service node through the management and scheduling service node according to the local configuration file, so that the storage service node loads the corresponding local disk cluster and remote disk cluster.
[0125] In a second aspect, according to one or more embodiments of the present disclosure, a disk cluster resource scheduling device is provided, which is applied to a data storage system, wherein a management and control scheduling service node and at least one dual-head storage service node group are deployed in the data storage system, wherein the dual-head storage service node group includes two adjacently deployed storage service nodes, including:
[0126] A data module, used for acquiring disk cluster belonging data through the management and control scheduling service node, wherein the disk cluster belonging data is used to characterize the mapping relationship between at least one disk cluster and the storage service node to which it belongs;
[0127] A scheduling module is used to detect abnormal storage service nodes in the dual-head storage service node group through the management and control scheduling service node, and schedule the disk cluster mounted on the abnormal storage service node to a normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data.
[0128] According to one or more embodiments of the present disclosure, when the scheduling module detects abnormal storage service nodes in the dual-head storage service node group through the management and control scheduling service node, it is specifically used to: obtain a first cluster topology, the first cluster topology indicating the initial storage service nodes deployed in the data storage system; periodically send a heartbeat detection instruction based on a remote procedure call to each of the initial storage service nodes indicated by the first cluster topology through the management and control scheduling service node; obtain a second cluster topology based on the heartbeat detection results returned by each of the initial storage service nodes, the second cluster topology being used to characterize the storage service nodes that are in a surviving state in the data storage system; and obtain the abnormal storage service node based on the second cluster topology.
[0129] According to one or more embodiments of the present disclosure, when the scheduling module schedules the disk cluster mounted on the abnormal storage service node to the normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data, it is specifically used to: determine the target disk cluster mounted on the abnormal storage service node according to the disk cluster affiliation data; and send a loading instruction based on a remote procedure call to the normal storage service node in the dual-head storage service node group through the management and control scheduling service node, so that the normal storage service node loads the target disk cluster.
[0130] According to one or more embodiments of the present disclosure, the scheduling module is also used to: after detecting that the abnormal storage service node has returned to normal, send a removal instruction based on a remote procedure call to the normal storage service node through the management and scheduling service node; respond to the removal instruction through the normal storage service node to set the mounted target disk cluster to a read-only state and unmount the target disk cluster; send a loading instruction based on a remote procedure call to the abnormal storage service node that has returned to normal through the management and scheduling service node; and load the target disk cluster through the abnormal storage service node that has returned to normal in response to the loading instruction.
[0131] According to one or more embodiments of the present disclosure, after setting the mounted target disk cluster to a read-only state, the scheduling module is further used to: generate checkpoint information of metadata corresponding to the original data stored in the target disk cluster through the management and control scheduling service node, the checkpoint information being used to characterize the storage location of the original data; and write the checkpoint information into the target disk cluster.
[0132] According to one or more embodiments of the present disclosure, the control and scheduling service node includes a primary control and scheduling service node and a secondary control and scheduling service node which are mutually backup, and the primary control and scheduling service node and the secondary control and scheduling service node are based on distributed coordination service encapsulation.
[0133] According to one or more embodiments of the present disclosure, the disk cluster includes a local disk cluster and a remote disk cluster, the local disk cluster being a disk cluster mounted when the storage service node operates normally, and the remote disk cluster being a disk cluster mounted by the storage service node when another storage service node in the dual-head storage service node group where the storage service node is located is abnormal, and the scheduling module is also used to: control the no-load startup of the storage service node and obtain a local configuration file, wherein the local configuration file is used to indicate the local disk cluster and the remote disk cluster corresponding to the storage service node; and control the storage service node to load the local disk cluster and the remote disk cluster according to the local configuration file through the management and control scheduling service node.
[0134] According to one or more embodiments of the present disclosure, when the scheduling module controls the storage service node to load the local disk cluster and the remote disk cluster according to the local configuration file through the management and scheduling service node, it is specifically used to: execute a registration instruction based on a remote procedure call through the management and scheduling service node to register the storage service node in the management and scheduling service node; send a loading instruction based on a remote procedure call to the storage service node through the management and scheduling service node according to the local configuration file, so that the storage service node loads the corresponding local disk cluster and remote disk cluster.
[0135] In a third aspect, according to one or more embodiments of the present disclosure, a data storage system is provided, wherein a management and control scheduling service node and at least one dual-head storage service node group are deployed in the data storage system, wherein the dual-head storage service node group includes two adjacently deployed storage service nodes, wherein the management and control scheduling service node is used to obtain disk cluster affiliation data, wherein the disk cluster affiliation data is used to characterize the mapping relationship between at least one disk cluster and the storage service node to which it belongs; the management and control scheduling service node is also used to detect abnormal storage service nodes in the dual-head storage service node group, and according to the disk cluster affiliation data, schedule the disk cluster mounted on the abnormal storage service node to a normal storage service node in the dual-head storage service node group.
[0136] In a fourth aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: at least one processor and a memory;
[0137] The memory stores computer-executable instructions;
[0138] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the disk cluster resource scheduling method as described in the first aspect and various possible designs of the first aspect.
[0139] In a fifth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the disk cluster resource scheduling method described in the first aspect and various possible designs of the first aspect is implemented.
[0140] In a sixth aspect, according to one or more embodiments of the present disclosure, a computer program product is provided, including a computer program, which, when executed by a processor, implements the disk cluster resource scheduling method as described in the first aspect and various possible designs of the first aspect.
[0141] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
[0142] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0143] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.
Claims
1. A disk cluster resource scheduling method, characterized in that: Applied to a data storage system, wherein a management and control scheduling service node and at least one dual-head storage service node group are deployed in the data storage system, wherein the dual-head storage service node group includes two adjacently deployed storage service nodes, the method comprises: Obtaining disk cluster belonging data through the management and control scheduling service node, wherein the disk cluster belonging data is used to represent a mapping relationship between at least one disk cluster and the storage service node to which it belongs; The abnormal storage service node in the dual-head storage service node group is detected through the management and control scheduling service node, and the disk cluster mounted on the abnormal storage service node is scheduled to the normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data.
2. The method according to claim 1, characterized in that The detecting an abnormal storage service node in the dual-head storage service node group by the management and control scheduling service node includes: Acquire a first cluster topology, where the first cluster topology indicates an initial storage service node deployed in the data storage system; Periodically sending a heartbeat detection instruction based on a remote procedure call to each of the initial storage service nodes indicated by the first cluster topology through the management and control scheduling service node; Obtaining a second cluster topology according to the heartbeat detection results returned by each of the initial storage service nodes, where the second cluster topology is used to characterize storage service nodes in a surviving state in the data storage system; The abnormal storage service node is obtained according to the second cluster topology.
3. The method according to claim 1, characterized in that The step of scheduling the disk cluster mounted on the abnormal storage service node to a normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data includes: Determine the target disk cluster mounted by the abnormal storage service node according to the disk cluster affiliation data; Through the management and control scheduling service node, a loading instruction based on a remote procedure call is sent to the normal storage service node in the dual-head storage service node group, so that the normal storage service node loads the target disk cluster.
4. The method according to claim 3, characterized in that: The method further comprises: After detecting that the abnormal storage service node has returned to normal, sending a removal instruction based on a remote procedure call to the normal storage service node through the management and control scheduling service node; In response to the removal instruction, the normal storage service node sets the mounted target disk cluster to a read-only state and unmounts the target disk cluster; Sending a loading instruction based on a remote procedure call to the abnormal storage service node that has returned to normal through the control and scheduling service node; The abnormal storage service node that has recovered to normal responds to the loading instruction and loads the target disk cluster.
5. The method according to claim 4, characterized in that After setting the mounted target disk cluster to a read-only state, the method further comprises: Generate, through the control and scheduling service node, checkpoint information of metadata corresponding to the original data stored in the target disk cluster, wherein the checkpoint information is used to represent the storage location of the original data; The checkpoint information is written into the target disk cluster.
6. The method according to claim 1, characterized in that The control and scheduling service node includes a primary control and scheduling service node and a secondary control and scheduling service node which are mutually backup, and the primary control and scheduling service node and the secondary control and scheduling service node are encapsulated based on a distributed coordination service.
7. The method according to claim 1, characterized in that The disk cluster includes a local disk cluster and a remote disk cluster, wherein the local disk cluster is a disk cluster mounted when the storage service node is operating normally, and the remote disk cluster is a disk cluster mounted by the storage service node when another storage service node in the dual-head storage service node group where the storage service node is located is abnormal, and the method further includes: Control the storage service node to start up without load, and obtain a local configuration file, where the local configuration file is used to indicate a local disk cluster and a remote disk cluster corresponding to the storage service node; Through the management and control scheduling service node, the storage service node is controlled to load the local disk cluster and the remote disk cluster according to the local configuration file.
8. The method according to claim 7, characterized in that The controlling the storage service node to load the local disk cluster and the remote disk cluster according to the local configuration file through the management and control scheduling service node includes: Executing a registration instruction based on a remote procedure call through the management and control scheduling service node to register the storage service node in the management and control scheduling service node; Through the management and scheduling service node, a loading instruction based on a remote procedure call is sent to the storage service node according to the local configuration file, so that the storage service node loads the corresponding local disk cluster and remote disk cluster.
9. A disk cluster resource scheduling device, characterized in that: Applied to a data storage system, wherein a management and control scheduling service node and at least one dual-head storage service node group are deployed in the data storage system, wherein the dual-head storage service node group includes two adjacently deployed storage service nodes, including: A data module, used for acquiring disk cluster belonging data through the management and control scheduling service node, wherein the disk cluster belonging data is used to characterize the mapping relationship between at least one disk cluster and the storage service node to which it belongs; A scheduling module is used to detect abnormal storage service nodes in the dual-head storage service node group through the management and control scheduling service node, and schedule the disk cluster mounted on the abnormal storage service node to a normal storage service node in the dual-head storage service node group according to the disk cluster affiliation data.
10. A data storage system, characterized in that: The data storage system is deployed with a management and control scheduling service node and at least one dual-head storage service node group, wherein the dual-head storage service node group includes two adjacently deployed storage service nodes, wherein: The control and scheduling service node is used to obtain disk cluster belonging data, wherein the disk cluster belonging data is used to represent the mapping relationship between at least one disk cluster and the storage service node to which it belongs; The management and scheduling service node is also used to detect abnormal storage service nodes in the dual-head storage service node group, and according to the disk cluster affiliation data, schedule the disk cluster mounted on the abnormal storage service node to a normal storage service node in the dual-head storage service node group.
11. An electronic device, characterized in that: include: Processor and memory; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor executes the disk cluster resource scheduling method according to any one of claims 1 to 8.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions. When the processor executes the computer-executable instructions, the disk cluster resource scheduling method according to any one of claims 1 to 8 is implemented.
13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the disk cluster resource scheduling method according to any one of claims 1 to 8 is implemented.
Citation Information
Patent Citations
Large-scale cluster system and building method thereof
CN101778002A
SAS (serial attached SCSI) network based remotely-shareable start-up system
CN105068836A
Data request method and apparatus and medium
CN112000635A
Selective Instantiation of a Storage Service for a Doubly Mapped Redundant Array of Independent Nodes
US20210157530A1
Data request method, device and medium
WO2022037171A1
