Device scheduling method and system, electronic device, and storage medium

By constructing a dynamically updated fault domain and dynamically selecting target storage nodes, the problem of cascading faults caused by cloud disk sharding failures in distributed block storage systems is solved, and precise prevention and control of abnormal cloud disk sharding is achieved. Stable improvement.

WO2024213013A1PCT designated stage expired Publication Date: 2024-10-17ALIBABA CLOUD COMPUTING CO LTD

Patent Information

Application Number
PCT/CN2024/087076
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-10
Filing Date
2024-04-10
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

In a distributed block storage system, when a problem occurs with the cloud disk or its shards, scheduling to other storage nodes will cause cascading faults to spread, leading to large-scale storage node anomalies and system avalanches. It is difficult to quickly locate and prevent unknown unknowns with existing technology. The reason is abnormal cloud disk fragmentation.

Method used

By constructing a dynamically updated fault domain, limiting the scope of scheduling destinations and dynamically selecting target storage nodes, we can prevent cascading failures caused by abnormal cloud disk shard scheduling, and accurately screen and locate abnormal cloud disk shards for fault handling after fault propagation. .

Benefits of technology

It effectively avoids the occurrence of large-scale failures, prevents cluster avalanches, realizes normal cloud disk scheduling in the case of unknown abnormal cloud disk fragmentation, accurately prevents and controls abnormal cloud disk fragmentation, and improves the reliability and stability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024087076_17102024_PF_FP_ABST
    Figure CN2024087076_17102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of distributed storage, and provides a device scheduling method and system, an electronic device, and a storage medium. The method comprises: determining a target storage node of a device segment on the basis of a dynamically-updated failure domain, wherein the failure domain comprises a device segment failure domain, and the upper limit of the number of segment domain storage nodes in the device segment failure domain within a first time interval is a first number threshold; and scheduling the device segment to the target storage node. According to the technical solution of the present application, the dynamically-updated failure domain is constructed, thereby dynamically limiting a range of a scheduling destination in terms of the time dimension and space dimension; and if there is an unknown abnormal device segment, a cascading failure caused by scheduling of the abnormal device segment is prevented, thereby avoiding the occurrence of large-scale failures, preventing cluster avalanche, and implementing normal scheduling of device segments.
Need to check novelty before this filing date? Find Prior Art

Description

Cloud disk scheduling method, system, electronic device and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on April 10, 2023, with application number 202310397422.6 and application name “Cloud disk scheduling method, system, electronic device and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of distributed storage technology, and in particular to a cloud disk scheduling method, system, electronic device and storage medium. Background Art

[0003] In a distributed block storage system built on a distributed file system, cloud disks are sharded into logical areas. Scheduling cloud disks and shards is a key task for the control server. In distributed block storage applications, if a problem occurs in a cloud disk or one of its shards, it will be dispatched to other storage nodes. This can cause the abnormal failure to spread, leading to cascading failures, causing large-scale storage node anomalies and ultimately system avalanche.

[0004] Summary of the Invention

[0005] Embodiments of the present application provide a cloud disk scheduling method, system, electronic device, and storage medium to effectively avoid cascading failures caused by abnormal cloud disks.

[0006] In a first aspect, an embodiment of the present application provides a cloud disk scheduling method, comprising: determining a target storage node for a cloud disk shard based on a dynamically updated fault domain; wherein the fault domain comprises a cloud disk shard fault domain, and the upper limit of the number of shard domain storage nodes in the cloud disk shard fault domain within a first time interval is a first quantity threshold; and scheduling the cloud disk shard to the target storage node.

[0007] In the second aspect, an embodiment of the present application provides a cloud disk scheduling system, comprising: multiple storage nodes; a management and control server, used to execute the method provided in any embodiment of the present application to schedule cloud disk shards to target storage nodes; a client, obtaining information of the target storage node from the management and control server, and performing write / read operations on the cloud disk shards based on the target storage node.

[0008] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor implements the method provided in any embodiment of the present application when executing the computer program.

[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method provided in any embodiment of the present application is implemented.

[0010] Compared with the prior art, the technical solution of the embodiment of the present application has the following advantages:

[0011] By constructing a dynamically updated fault domain, the scope of the scheduling destination can be dynamically restricted in the time and space dimensions. On the one hand, in the presence of unknown abnormal cloud disk shards, cascading failures caused by the scheduling of abnormal cloud disk shards can be prevented, effectively avoiding the occurrence of large-scale failures and cluster avalanches. On the other hand, the storage nodes in the cloud disk shard fault domain are dynamically updated, and the scheduling destination of the cloud disk shard can be selected from the cloud disk shard fault domain, the global fault domain, or the storage nodes outside the global fault domain according to its scheduling type. In this way, normal cloud disk scheduling of any scheduling type can be performed in the presence of unknown abnormal cloud disk shards.

[0012] Furthermore, the aforementioned fault domains can be regarded as defining an isolation zone. Through abnormal scheduling of cloud disk shards, cloud disk shards with suspected problems are confined to a dynamic range. Then, abnormal cloud disk shards are further screened, the fault source is located, and then the fault is handled, thereby accurately screening and locating abnormal cloud disk shards for precise prevention and control.

[0013] The above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, further aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in this application and should not be construed as limiting the scope of this application.

[0015] FIG1 shows an architecture diagram of a cloud disk scheduling system provided by an embodiment of the present application;

[0016] FIG2 shows a flow chart of a cloud disk scheduling method provided in Example 1 of the present application;

[0017] FIG3 is a schematic diagram of a token bucket sliding window algorithm provided in Example 1 of the present application;

[0018] FIG4 is a schematic diagram showing a cloud disk failure domain construction in the first embodiment of the present application;

[0019] FIG5 is a schematic diagram showing a global fault domain construction in the first embodiment of the present application;

[0020] FIG6 shows a flow chart of a cloud disk scheduling method provided in Example 2 of the present application;

[0021] FIG7 is a schematic diagram showing balanced scheduling in Example 2 of the present application;

[0022] FIG8 is a schematic diagram showing a disaster recovery operation in the second embodiment of the present application;

[0023] FIG9 shows a flow chart of a cloud disk scheduling method provided in Example 3 of the present application;

[0024] FIG10 is a schematic diagram showing the screening of abnormal cloud disk shards in Example 3 of the present application;

[0025] FIG11 shows a block diagram of an electronic device provided in Embodiment 5 of the present application. DETAILED DESCRIPTION

[0026] Hereinafter, only certain exemplary embodiments are briefly described. As will be appreciated by those skilled in the art, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and description are to be regarded as illustrative in nature and not restrictive.

[0027] To facilitate understanding of the technical solutions of the embodiments of the present application, the relevant technologies of the embodiments of the present application are described below. The following relevant technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as optional solutions, and they all fall within the protection scope of the embodiments of the present application.

[0028] Application Scenario

[0029] Figure 1 shows the architecture of the cloud disk scheduling system provided in an embodiment of the present application. As shown in Figure 1, the cloud disk scheduling system includes a client (Client), a management server (Block Master), and multiple storage nodes (Block Servers, also called block storage servers, abbreviated as BS). In the embodiment of the present application, the cloud disk scheduling system is a distributed system that can provide cloud disk services to users based on public cloud block storage. That is, the cloud disk scheduling system of the embodiment of the present application can be applied to distributed block storage scenarios.

[0030] For example, the cloud disk (device) is divided into segments according to logical space, which are recorded as cloud disk segments (Seg for short). They are usually fixed-size segments, that is, each cloud disk segment is the same size. The control server is responsible for scheduling the cloud disk and scheduling the cloud disk segments of the cloud disk to multiple storage nodes through the cloud disk scheduling algorithm. For example, cloud disk segments Seg1, Seg2, and Seg3 are respectively scheduled to different storage nodes. The client obtains the location of the cloud disk segment, that is, the information of the storage node where the cloud disk segment is located, by interacting with the control server, and then establishes a connection with the storage node and requests the storage node to perform write / read (Input / Output, also called input / output, abbreviated as I / O) operations on the cloud disk segment to realize cloud disk scheduling.

[0031] Based on the different purposes of cloud disk scheduling, the scheduling types of cloud disk shards may include: abnormal scheduling, balanced scheduling, and other scheduling. Among them, other scheduling refers to non-abnormal scheduling and balanced scheduling. For example, abnormal scheduling is used for fault handling. For example, in a distributed storage system, storage nodes may fail or crash, or network messages may be lost or delayed. In the face of these faults, cloud disk scheduling needs to be completed as quickly as possible to restore normal I / O operations of the cloud disk. Balanced scheduling is used for load balancing between storage nodes, thereby improving service quality. In addition to abnormal scheduling and balanced scheduling, there may be other scheduling. For example, for operation and maintenance needs or other reasons, it is necessary to upgrade, take offline, or isolate storage nodes. In this case, it is necessary to actively schedule the cloud disk shards on the storage node to other storage nodes to avoid subsequent impact on the I / O operations of the cloud disk shards on the storage node.

[0032] Cascading failures are a type of failure that increases over time due to a positive feedback loop. Initially triggered by a single storage node or subsystem failure, they spread the load across other storage nodes in the system, further increasing the likelihood of failures in other storage nodes, leading to a vicious cycle or snowball effect. In distributed block storage applications, there are two main types of cascading failure scenarios: 1) When cloud disk shards process I / O on a storage node, code bugs can cause core dumps or thread hangs on the storage node, triggering abnormal scheduling of the cloud disk shards. This misscheduling causes the cloud disk shards to be migrated to other storage nodes, contaminating other storage nodes and causing the failure to spread, resulting in widespread cloud disk unavailability and ultimately a system avalanche. 2) Cloud disk shards need to be scheduled to several storage nodes for load balancing, maintenance needs, or other reasons. However, code bugs or other unknown reasons can cause core dumps or thread hangs during the loading process, also leading to a system avalanche.

[0033] If it were clear whether a cloud disk shard was abnormal, scheduling for that cloud disk shard could be directly restricted, thus preventing the spread of the fault. However, this is difficult to achieve in practice because accurate results require sufficient observation windows to collect sufficient information for analysis, which is costly. Furthermore, when handling abnormalities in a distributed system, rapid automatic recovery is essential. Therefore, locating abnormal cloud disk shards is difficult to achieve. The specific cloud disk shard is often unknown, and scenarios involving abnormal cloud disk shards often involve failures with unknown causes.

[0034] When facing a failure scenario with unknown causes, the timing of the processing can be divided into pre-emptive prevention and post-event processing. Among them, in the pre-emptive prevention process, the speed and scope of the fault spread can be controlled to prevent the rapid spread of abnormal cloud disk shards from causing large-scale failures. Specifically, by controlling the scheduling frequency of cloud disk shards, the speed of fault spread can be made to exponentially back off with the number of migrations; by constructing a fault domain to limit the scheduling destination (i.e., the migration destination), the scope of the fault impact can be limited. In one implementation method, a fixed fault domain can be used to limit the scope of the fault impact, but the size of the fixed fault domain is difficult to define. If the fault domain is small, it is easy to cause imbalance problems, such as confining more cloud disk shards to a small area to form a hot spot, which is not conducive to load balancing, and it is also easy to cause availability problems when the entire domain fails, such as making all cloud disk shards placed in the fault domain unavailable. If the fault domain is large, the affected range will become larger and the isolation effect will not be achieved.

[0035] Therefore, an embodiment of the present application provides a cloud disk scheduling method based on dynamic fault domains. Specifically, a dynamically updated fault domain is constructed for the cloud disk shards. On the one hand, the selection range of the target storage node is limited to a certain range, so that in the presence of unknown abnormal cloud disk shards, the cascading failures caused by the scheduling of abnormal cloud disk shards are prevented, and the occurrence of large-scale failures is effectively avoided, and cluster avalanches are prevented; on the other hand, within the first time interval, the storage nodes in the cloud disk shard fault domain (called shard domain storage nodes) have an upper limit (a first number threshold), that is, when this condition is met, the storage nodes in the cloud disk shard fault domain are dynamically updated, so that in the presence of unknown abnormal cloud disk shards, cloud disk scheduling of any scheduling type is performed. Furthermore, after the scope of the fault spread is controlled, more information can be collected in the post-processing stage to accurately screen and locate the abnormal cloud disk shards, so as to carry out precise prevention and control.

[0036] The cloud disk scheduling method of the embodiment of the present application can be executed by a control server. The control server may include a physical server of an independent host, or a virtual server (such as a cloud server) carried by a host cluster, etc. The client can interact with the control server through an application programming interface (API) to obtain information about the storage node where the cloud disk shard is located, and then establish a connection with the storage node, and request the storage node to perform I / O operations on the cloud disk shard to implement cloud disk scheduling. The client can be hardware, such as electronic devices such as mobile phones, personal computers, tablets, wearable devices, etc., and the client can also be an application (Application, APP) installed in the above electronic devices.

[0037] The cloud disk scheduling method and cloud disk scheduling system provided in the embodiments of the present application can be used in failure scenarios with unknown causes, such as failure scenarios of unknown abnormal cloud disk shards, and can implement the above-mentioned abnormal scheduling, balanced scheduling, and other scheduling in failure scenarios. It should be noted that the above-mentioned application scenarios or application examples provided in the embodiments of the present application are for ease of understanding, and the embodiments of the present application do not specifically limit the application of the cloud disk scheduling method and cloud disk scheduling system.

[0038] The following describes the cloud disk scheduling method of the present application through Example 1, Example 2, and Example 3. For ease of understanding, Example 1 mainly introduces the dynamic update of the fault domain, Example 2 mainly introduces the selection of the target storage node, and Example 3 mainly introduces the positioning and screening of abnormal cloud disk shards.

[0039] Example 1

[0040] FIG2 shows a flow chart of a cloud disk scheduling method according to an embodiment of the present application. The cloud disk scheduling method can be applied to a control server. As shown in FIG2 , the cloud disk scheduling method includes:

[0041] Step S201: Determine the target storage node for the cloud disk shard based on the dynamically updated fault domain; wherein the fault domain includes the cloud disk shard fault domain, and the upper limit of the number of shard domain storage nodes in the cloud disk shard fault domain within a first time interval is a first number threshold.

[0042] Step S202: dispatch the cloud disk shards to the target storage node.

[0043] Cloud disks (devices) are divided into logical segments (segments). For example, each cloud disk segment is the same size. The control server is responsible for scheduling the cloud disk. It uses the cloud disk scheduling algorithm to schedule the cloud disk segment to a storage node, which becomes the scheduling destination for the cloud disk segment.

[0044] For any cloud disk shard, a cloud disk shard fault domain can be constructed for it, and the storage nodes in the cloud disk shard fault domain are the shard domain storage nodes. The upper limit of the number of shard domain storage nodes in the cloud disk shard fault domain within the first time interval is the first quantity threshold. Therefore, the shard domain storage nodes in the cloud disk shard fault domain of any cloud disk shard can be dynamically updated. For example, when the scheduling destination (target storage node) of a cloud disk shard meets the entry conditions of its cloud disk shard fault domain, the scheduling destination can join the cloud disk shard fault domain of the cloud disk shard; when a cloud disk shard meets the exit conditions, a shard domain storage node is selected from the cloud disk shard fault domain of the cloud disk shard to exit the cloud disk shard fault domain of the cloud disk shard. Among them, the shard domain storage nodes that exit the cloud disk shard fault domain can be one, multiple, or all. In the process of dynamically updating the cloud disk shard fault domain, it is sufficient to meet the condition that the upper limit of the number of shard domain storage nodes in the cloud disk shard fault domain within the first time interval is the first quantity threshold.

[0045] Therefore, the cloud disk shard fault domain constructed based on the embodiment of the present application is a dynamic fault domain, which dynamically limits the scope of the scheduling destination in the time dimension and the space dimension. On the one hand, in the presence of unknown abnormal cloud disk shards, it can prevent cascading failures caused by the scheduling of abnormal cloud disk shards, effectively avoid the occurrence of large-scale failures, and prevent cluster avalanche; on the other hand, the storage nodes in the cloud disk shard fault domain are dynamically updated, thereby realizing cloud disk scheduling of any scheduling type.

[0046] In one embodiment, a cloud disk shard corresponds to a domain token, which is used to provide the target storage node with domain entry permissions to join the cloud disk shard fault domain; the upper limit of the number of domain tokens is a first quantity threshold; and the number of domain tokens increases by one every second time interval.

[0047] That is to say, the dynamic update of the cloud disk shard fault domain can be based on the token bucket sliding window algorithm. Exemplarily, as shown in Figure 3, each cloud disk shard corresponds to a token bucket, and the upper limit of the number of domain tokens is the first quantity threshold, that is, the size of the token bucket is the first quantity threshold. When domain tokens gather in the token bucket, it is equivalent to water entering, and when domain tokens are consumed, it is equivalent to water leaving the token bucket. Generate domain tokens at a certain rate, such as a new domain token is generated after T time, so that the number of domain tokens in the token bucket increases by one every second time interval T; each target storage node joins the cloud disk shard fault domain (referred to as entering the domain), and consumes one domain token. Therefore, the first time interval is equal to the second time interval multiplied by the first quantity threshold.

[0048] In Figure 3, the target storage nodes are represented as BS1, BS2, ..., BS5. A cloud disk shard is first scheduled to BS1, consuming a domain token. After a while, the cloud disk shard may need to be scheduled away from BS1 due to abnormal scheduling, and this time it will be scheduled to BS2, consuming another domain token. Assuming the first quantity threshold is 4, that is, the token bucket size is 4, and a new domain token is generated every second time interval T, then if the cloud disk shard performs four domain entry operations within 4*T time, the domain token will be consumed. When the cloud disk shard needs to enter the domain again, since there are no domain tokens, the target storage node that was scheduled the previous four times can be selected in the fault domain as the target storage node for the current scheduling, thus achieving the effect of limiting the scheduling range. As time passes, after T time, another domain token is generated. Therefore, when the cloud disk shard needs to be scheduled again, a new target storage node can be selected, thus realizing a token bucket-based sliding window.

[0049] Exemplarily, the second time interval T can be set according to the fault handling time, for example, setting a domain token to be generated every 30 minutes, so that even when a fault actually occurs, a 30-minute fault handling time can be guaranteed, thereby minimizing the impact of the fault domain on daily scheduling.

[0050] In the method of the embodiment of the present application, cloud disk sharding is used as the granularity to construct cloud disk sharding fault domains, that is, each cloud disk shard corresponds to its own dynamic fault domain, so that the failure impact range of abnormal cloud disk shards can be controlled.

[0051] In one embodiment, the dynamic update is implemented based on an entry condition. Specifically, the method of the embodiment of the present application may further include: in response to the cloud disk shard meeting the entry condition, adding the target storage node as a shard domain storage node of the cloud disk shard to the cloud disk shard's cloud disk shard fault domain; wherein the entry condition includes any of the following: the scheduling type of the cloud disk shard is abnormal scheduling and the number of shard domain storage nodes of the cloud disk shard does not reach a first quantity threshold; the scheduling type of the cloud disk shard is balanced scheduling, and the number of shard domain storage nodes of the cloud disk shard reaches a preset threshold value but does not reach the first quantity threshold.

[0052] For any cloud disk shard, if the scheduling meets the entry conditions, the target storage node of the scheduling will be entered into the domain, that is, the target storage node will be added to its cloud disk shard fault domain as the shard domain storage node of the cloud disk shard; if the scheduling does not meet the entry conditions, the target storage node will not be entered into the domain, thereby realizing the dynamic update of the cloud disk shard fault domain.

[0053] The preset threshold value is less than the first quantity threshold value. For example, the preset threshold value can be set to the first quantity threshold value minus 1, or set to a certain proportion of the first quantity threshold value. This is not limited in the embodiments of the present application. Since there are many types of scheduling, such as abnormal scheduling, balanced scheduling and other scheduling. Among them, abnormal scheduling will trigger an entry operation. After that, if the entry operation of balanced scheduling is not restricted, the shard domain storage node where the abnormal cloud disk shard is located may be scheduled out of the domain, which will not achieve the purpose of limiting the spread of the abnormal cloud disk shard. Therefore, dynamic updates need to handle balanced scheduling in a targeted manner. When the number of shard domain storage nodes in the cloud disk shard fault domain reaches the preset threshold value, balanced scheduling will also trigger an entry operation, thereby avoiding scheduling the shard domain storage node where the abnormal cloud disk shard is located out of the domain.

[0054] In one embodiment, dynamic updates can also be implemented based on an exit condition. Specifically, the method of this embodiment of the present application may further include: in response to a cloud disk shard meeting the exit condition, selecting a shard domain storage node from the cloud disk shard fault domain to exit the cloud disk shard fault domain; wherein the exit condition includes any of the following: passing a security check on the cloud disk shard; receiving a command to release the cloud disk shard fault domain; or the number of domain tokens for the cloud disk shard being greater than the number of shard domain storage nodes in the cloud disk shard fault domain.

[0055] For any cloud disk shard, if its cloud disk shard fault domain meets the exit conditions, the exit operation is performed, that is, the shard domain storage node is selected from the cloud disk shard fault domain to exit the cloud disk shard fault domain, thereby achieving dynamic update of the cloud disk shard fault domain. The selected shard domain failure nodes can be one, multiple, or all.

[0056] The conditions for leaving the domain can include passing a security check on the cloud disk shard. For example, a security check is performed on the cloud disk shard regularly (e.g., every 5 minutes), including checking its I / O service status. If the service is normal, the security check passes, allowing the cloud disk shard fault domain restrictions to be lifted in advance, allowing all shard domain fault nodes in the cloud disk shard fault domain of the cloud disk shard to exit the cloud disk shard fault domain. After the cloud disk shard fault domain is established, the storage nodes scheduled by the normal cloud disk shard can be left the domain as soon as possible. If there are no users requesting I / O services, an I / O service request can be simulated in the background to perform a security check.

[0057] Conditions for leaving a domain include receiving a fault domain release instruction. This release instruction can be specific to a cloud disk shard fault domain, or to a cloud disk fault domain and global fault domain (described below). For example, during routine maintenance, if a fault domain misoperation is discovered or after troubleshooting is complete, a release instruction can be issued through the maintenance tool to release all storage nodes in that fault domain.

[0058] The domain exit condition can include the number of domain tokens of the cloud disk shard being greater than the number of shard domain storage nodes in the cloud disk shard fault domain. In other words, the shard domain storage nodes in the cloud disk shard fault domain can be gradually released based on the speed at which domain tokens are generated.

[0059] In one embodiment, the fault domain also includes a cloud disk fault domain. The method of the embodiment of the present application may also include: for any cloud disk, selecting a second number threshold of shard domain storage nodes from the cloud disk shard fault domains of multiple cloud disk shards of the cloud disk to add to the cloud disk fault domain of the cloud disk.

[0060] Because a cloud disk has multiple shards, each with its own shard failure domain, a single disk failure can have a wide impact. Therefore, we create cloud disk failure domains to limit the impact of a single disk failure. Specifically, for any cloud disk, you can select several shard domain storage nodes from the shard failure domains of the cloud disk's multiple shards and add them to the cloud disk failure domain.

[0061] In one embodiment, selecting shard domain storage nodes of a second number threshold from cloud disk shard fault domains of multiple cloud disk shards of a cloud disk to be added to the cloud disk fault domain of the cloud disk includes: sorting the multiple shard domain storage nodes from most to least according to the number of cloud disk shard fault domains to which the shard domain storage nodes are added; selecting the first N shard domain storage nodes to be added to the cloud disk fault domain; wherein N is equal to the second number threshold.

[0062] That is to say, the cloud disk affinity between storage nodes is considered during the construction of the cloud disk fault domain, and the cloud disk fault domain is realized through affinity, that is, the cloud disk fault domain is an affinity domain. For example, as shown in Figure 4, the cloud disk includes two cloud disk shards, namely cloud disk shard 1 and cloud disk shard 2. For each shard domain storage node in each cloud disk shard, the number of cloud disk shard fault domains joined by the shard domain storage node is counted and arranged in order from most to least, and then the top N shard domain storage nodes are selected to join the cloud disk fault domain of the cloud disk. For example, there are BS1, BS2 and BS3 in the fault domains of cloud disk shard 1 and cloud disk shard 2, and N is equal to 3. Then these three storage nodes will be ranked in the top N, so BS1, BS2 and BS3 will be given priority when building the cloud disk fault domain of the cloud disk.

[0063] In one implementation, the fault domain further includes a global fault domain. The method of the embodiment of the present application may further include: constructing a global fault domain based on the cloud disk fault domain of at least one cloud disk.

[0064] In the global environment of a distributed storage system, there are multiple cloud disks, each of which includes multiple cloud disk shards. Due to the many failure scenarios caused by unknown reasons, more than one cloud disk may have problems. Therefore, to prevent the spread of failures when multiple cloud disks are abnormal, a global fault domain can be constructed. The global fault domain in the global environment can be constructed based on the cloud disk fault domain in the global environment.

[0065] In one embodiment, building a global fault domain based on cloud disk fault domains of at least one cloud disk includes: using the cloud disk fault domain that first reaches a third number threshold as the global fault domain.

[0066] To simplify the algorithm, during the construction of a multi-cloud disk global fault domain, the cloud disk fault domain that first reaches the third number threshold is upgraded to the global fault domain. For example, once the number of storage nodes in a global fault domain falls below the third number threshold, the global fault domain disappears. Therefore, dynamic updates to the global fault domain are also achieved based on the dynamic updates to the cloud disk shard fault domains.

[0067] Exemplarily, the first quantity threshold, the second quantity threshold, and the third quantity threshold are equal, that is, the domain window sizes of the cloud disk shard fault domain, the cloud disk fault domain, and the global fault domain are the same, thereby simplifying the algorithm.

[0068] The following describes an example of constructing a global fault domain in conjunction with Figure 5. As shown in Figure 5, it is assumed that the first quantity threshold, the second quantity threshold, and the third quantity threshold are all 3, that is, the domain window size of the cloud disk shard fault domain, the cloud disk fault domain, and the global fault domain is 3 storage nodes, and the domain token generation rate is 1 / 30 minutes. There are two cloud disks in the global environment, namely Device1 and Device2, and each includes two cloud disk shards Segment1 and Segment2. In cloud disk Device1, cloud disk shard Segment1 is abnormally scheduled three times in a row within 90 minutes, and its three scheduled target storage nodes BS1, BS2, and BS3 (i.e., abnormal scheduling trajectories) are added to the cloud disk shard fault domain of cloud disk shard Segment1, so that the shard domain storage nodes of cloud disk shard Segment1 of Device1 reach the first quantity threshold. At this point, Device1's cloud disk shard Segment2 has two shard domain storage nodes, BS4 and BS5; Device2's cloud disk shard Segment1 has two shard domain storage nodes, BS3 and BS4; and Device2's cloud disk shard Segment2 has two shard domain storage nodes, BS5 and BS6. Therefore, the cloud disk shard failure domain of Device1's cloud disk shard Segment1 is promoted to Device1's cloud disk failure domain. If a global failure domain does not exist at this time, Device1's cloud disk failure domain is further promoted to a global failure domain, meaning that the storage nodes in the global failure domain are BS1, BS2, and BS3.

[0069] In one embodiment, the method of the embodiment of the present application may also include: in response to the total number of cloud disk shards carried by each first storage node in the global fault domain exceeding a fourth quantity threshold, redetermining the global fault domain; wherein the fourth quantity threshold is determined based on the average number of cloud disk shards carried by the global storage nodes.

[0070] Among them, the global storage node can be understood as any storage node in the global environment of a distributed storage system. Exemplarily, the average value of the number of cloud disk shards carried by each global storage node in the global environment is calculated, and then the fourth quantity threshold is set to a multiple of the average value. When the total number of cloud disk shards carried by all storage nodes in the global fault domain exceeds the fourth quantity threshold, the global fault domain is closed, and the global fault domain is rebuilt according to the above embodiment method, thereby preventing too many cloud disk shards from being mistakenly entered into a few storage nodes.

[0071] Example 2

[0072] In the second embodiment, the selection of the target storage node is mainly introduced. Among them, all or part of the technical solutions in the first embodiment can be referenced to the second embodiment. Figure 6 shows a flow chart of the cloud disk scheduling method according to the embodiment of the present application. The cloud disk scheduling method can be applied to the management and control server. As shown in Figure 6, the cloud disk scheduling method includes:

[0073] Step S601: Determine a target storage node from candidate storage nodes based on the scheduling type of the cloud disk shard; wherein the candidate storage node includes at least one of a shard domain storage node of the cloud disk shard, a first storage node in the global fault domain, and a second storage node outside the global fault domain; the global fault domain is constructed based on the cloud disk shard fault domains of multiple cloud disk shards; the upper limit of the number of shard domain storage nodes in the cloud disk shard fault domain within a first time interval is a first number threshold.

[0074] Step S602: dispatch the cloud disk shards to the target storage node.

[0075] Among them, the storage node in the global fault domain is the first storage node, and the storage node outside the global fault domain is the second storage node. The global fault domain is constructed based on the cloud disk shard fault domains of multiple cloud disk shards. For example: select several storage nodes from the shard domain storage nodes in the multiple cloud disk shard fault domains as the first storage node in the global fault domain; or, for any cloud disk, select some shard domain storage nodes from the cloud disk shard fault domains of the multiple cloud disk shards of the cloud disk to add to the cloud disk fault domain of the cloud disk, and then select one from the cloud disk fault domains of the multiple cloud disks in the global environment as the global fault domain. The global fault domain can also be constructed using the method in Example 1. Step S602 can adopt the same or similar implementation method as step S201, which will not be repeated here.

[0076] Cloud disk shard scheduling types include exception scheduling, balanced scheduling, and other scheduling types. Exception scheduling is used for fault handling, balanced scheduling is used for load balancing between storage nodes, and other scheduling types may require proactively relocating cloud disk shards from a storage node to upgrade, decommission, or isolate it for maintenance or other reasons.

[0077] For any cloud disk shard, its scheduling destination, i.e., the target storage node, can be determined from the candidate storage nodes based on its scheduling type. The candidate storage node can be a shard domain storage node in the cloud disk shard fault domain of the cloud disk shard, the first storage node in the global fault domain, or the second storage node outside the global fault domain. For example, when the scheduling type is exception scheduling, the first storage node can be selected as the target storage node; when the scheduling type is other scheduling, the second storage node can be selected as the target storage node.

[0078] Based on the method of the embodiment of the present application, by constructing a dynamically updated fault domain, including a cloud disk shard fault domain and a global fault domain, the scheduling destination of the cloud disk shard can be selected from the storage nodes in the cloud disk shard fault domain, the global fault domain, or outside the global fault domain according to its scheduling type, so that normal cloud disk scheduling of any scheduling type can be performed in the presence of unknown abnormal cloud disk shards.

[0079] In one embodiment, the scheduling type is abnormal scheduling, and the target storage node is determined from the candidate storage nodes according to the scheduling type of the cloud disk shard. It can include: in response to the scheduling type of the cloud disk shard being abnormal scheduling and the existence of a global fault domain, determining the target storage node from multiple first storage nodes; or, in response to the scheduling type of the cloud disk shard being abnormal scheduling and the absence of a global fault domain, determining the target storage node from any candidate storage node; or, in response to the scheduling type of the cloud disk shard being abnormal scheduling and the current scheduling being the Mth abnormal scheduling of the cloud disk shard, determining the target storage node from multiple second storage nodes, where M is a multiple of the number of first storage nodes.

[0080] For example, if it is an abnormal scheduling, it can first be determined whether a global fault domain exists. If so, the target storage node will be selected from the global fault domain; if not, the target storage node can be selected from any storage node in the global environment. In order to prevent normal cloud disk shards from mistakenly entering the global fault domain and being unable to exit, when this scheduling is the Mth abnormal scheduling, the target storage node selected does not consider the first storage node, thereby providing normal cloud disk shards with the opportunity to exit the global fault domain. In this case, M is a multiple of the number of first storage nodes, that is, M is a multiple of the third number threshold.

[0081] In one embodiment, the scheduling type is balanced scheduling, and determining the target storage node from the candidate storage nodes based on the scheduling type of the cloud disk shard may include: in response to the scheduling type of the cloud disk shard being balanced scheduling and the number of shard domain storage nodes of the cloud disk shard reaching a first quantity threshold, determining the target storage node from the shard domain storage nodes of the cloud disk shard; or, in response to the scheduling type of the cloud disk shard being balanced scheduling and the number of shard domain storage nodes of the cloud disk shard not reaching the first quantity threshold, determining the target storage node from multiple second storage nodes.

[0082] For example, if the scheduling type of a cloud disk shard is balanced scheduling, its scheduling destination can be selected from the list of storage nodes in the shard domain of the cloud disk shard, or from outside the global fault domain. In other words, the construction of the fault domain does not affect balanced scheduling.

[0083] In one embodiment, in response to the scheduling type of the cloud disk shard being balanced scheduling and the number of shard domain storage nodes of the cloud disk shard not reaching a first quantity threshold; determining a target storage node from multiple second storage nodes includes: in response to the number of shard domain storage nodes of the cloud disk shard not reaching a preset threshold value, selecting a second storage node with a small number of added cloud disk shard fault domains as the target storage node; or, in response to the number of shard domain storage nodes of the cloud disk shard reaching a preset threshold value, selecting a second storage node that is at least two switches away from the shard domain storage node of the cloud disk shard as the target storage node.

[0084] The preset threshold value is less than the first quantity threshold value. For example, the preset threshold value can be set to the first quantity threshold value minus 1, or set to a certain ratio of the first quantity threshold value, such as 60%, which is not limited in the embodiments of the present application. In other words, for balanced scheduling, the selection of the target storage node varies based on whether the preset threshold value is reached.

[0085] Specifically, if the number of shard domain storage nodes of a cloud disk shard does not reach a preset threshold, anti-affinity measures need to be considered when selecting a target storage node, that is, a second storage node with a small number of cloud disk shard failure domains is selected as the target storage node. For example, as shown in FIG7 , since a normal cloud disk shard may be scheduled to the cloud disk shard failure domain of an abnormal cloud disk shard due to balanced scheduling, thereby causing shock to the normal cloud disk shard, based on the anti-affinity measures, multiple second storage nodes can be sorted from small to large according to the number of cloud disk shard failure domains they have joined, and the first second storage node is selected as the target storage node. For example, the number of cloud disk shard failure domains joined by BS1, BS2, and BS3 are all 2, the number of cloud disk shard failure domains joined by BS0 is 1, and the number of cloud disk shard failure domains joined by BS-M is 0. Therefore, BS-M can be selected as the target storage node for this balanced scheduling, thereby preventing the normal cloud disk shard from falling into the cloud disk shard failure domain of the abnormal cloud disk shard.

[0086] If the number of shard domain storage nodes of a cloud disk shard reaches a preset threshold, it is necessary to consider cross-switch (rack) disaster recovery operations, that is, select a second storage node that is at least two switches away from the shard domain storage node of the cloud disk shard as the target storage node. In this way, even if a switch network is abnormal, there will be a normal storage node in the fault domain that can be used as the scheduling destination, thus not affecting the implementation of balanced scheduling.

[0087] In one embodiment, when the number of domain tokens of a cloud disk shard is 1, the determined target storage node needs to span at least two switches with the existing shard domain storage nodes of the cloud disk shard.

[0088] That is to say, any scheduling type needs to consider disaster recovery operations across switches to avoid certain switch anomalies causing all storage nodes in the entire fault domain to be affected. For example, as shown in Figure 8, assuming that the first quantity threshold is 7, that is, the domain window size of the cloud disk shard fault domain is 7 storage nodes, when there are already 6 storage nodes in the cloud disk shard fault domain, namely BS1, BS2, BS3, BS4, BS5 and BS6, when the storage node is selected for the last domain entry, the selected storage node BS-X needs to span at least 2 switches with the existing 6 storage nodes. Among them, the interpretation and application of the domain token can be found in Example 1.

[0089] In one embodiment, the scheduling type is other scheduling, that is, neither abnormal scheduling nor balanced scheduling. According to the scheduling type of the cloud disk shard, the target storage node is determined from the candidate storage nodes, which may include: in response to the scheduling type of the cloud disk shard being neither abnormal scheduling nor balanced scheduling, selecting the second storage node with the smaller number of added cloud disk shard fault domains as the target storage node.

[0090] That is to say, if the scheduling type of the cloud disk shard is other scheduling, anti-affinity measures need to be considered when selecting the target storage node. Multiple second storage nodes are sorted from small to large according to the number of cloud disk shard fault domains added by the second storage node, and the first second storage node is selected as the target storage node.

[0091] According to the method of the embodiment of the present application, since the storage nodes in the fault domain are dynamically updated, the scheduling destination of the cloud disk shard can be selected from the storage nodes in the cloud disk shard fault domain, the global fault domain or outside the global fault domain according to its scheduling type, so that normal cloud disk scheduling of any scheduling type can be performed in the presence of unknown abnormal cloud disk shards.

[0092] Example 3

[0093] After the scope of the fault spread is controlled, the abnormal cloud disk shards can be accurately screened and located, thereby performing precise prevention and control. Specifically, based on the methods of embodiment 1 and embodiment 2, as shown in Figure 9, the method of the embodiment of the present application may also include:

[0094] Step S901: Filter out abnormal cloud disk shards and normal cloud disk shards from the cloud disk shards hosted by the storage nodes in the fault domain;

[0095] Step S902: Mark the abnormal cloud disk shards and schedule the normal cloud disk shards to the storage nodes outside the fault domain.

[0096] Fault domains can include cloud disk shard fault domains, cloud disk fault domains, or global fault domains. A fault domain can be thought of as an isolation zone. Through abnormal scheduling of cloud disk shards, suspected problematic cloud disk shards are confined within a dynamically updated range. Based on this, an observation zone can be defined to screen for abnormal cloud disk shards, locate the source of the fault, and then address it.

[0097] Exemplarily, as shown in FIG10 , cloud disk shards are selected from the isolation area (fault domain), that is, some cloud disk shards are selected from the cloud disk shards carried by the storage nodes in the fault domain, and they are scheduled to the storage nodes in the observation area. The cloud disk shard is screened in the observation area, that is, if the cloud disk shard is found to be abnormal in the observation area, such as loading failure or I / 0 operation abnormality, the cloud disk shard is marked as an abnormal cloud disk shard and put back to the isolation area (fault domain); if the cloud disk shard is found to be normal in the observation area, such as loading success or I / 0 operation is normal, the cloud disk shard is determined to be a normal cloud disk shard, and it is scheduled back to the normal area. Among them, the normal area is the storage node outside the fault domain. In this way, the abnormal cloud disk shards can be found and accurately isolated through the screening mechanism.

[0098] Based on the methods of the above-mentioned embodiments 1, 2, and 3, by constructing a dynamically updated fault domain, the scope of the scheduling destination can be dynamically restricted in the time and space dimensions. On the one hand, in the presence of unknown abnormal cloud disk shards, the cascading failure caused by the scheduling of abnormal cloud disk shards can be prevented, effectively avoiding the occurrence of large-scale failures and preventing cluster avalanche. On the other hand, the storage nodes in the cloud disk shard fault domain are dynamically updated, and the scheduling destination of the cloud disk shard can be selected from the cloud disk shard fault domain, the global fault domain, or the storage nodes outside the global fault domain according to its scheduling type. In this way, normal cloud disk scheduling of any scheduling type can be performed in the presence of unknown abnormal cloud disk shards. Furthermore, the aforementioned fault domains can be regarded as defining an isolation area. Through the abnormal scheduling of cloud disk shards, the cloud disk shards with suspected problems are circled within a dynamic range. Then, the abnormal cloud disk shards are further screened, the fault source is located, and then the fault is processed, thereby accurately screening and locating the abnormal cloud disk shards for precise prevention and control.

[0099] Example 4

[0100] Corresponding to the methods provided in Examples 1, 2 and 3 of the present application, an embodiment of the present application provides a cloud disk scheduling device, which may include: a target storage node determination module, used to determine the target storage node of the cloud disk shard based on a dynamically updated fault domain; wherein the fault domain includes a cloud disk shard fault domain, and the upper limit of the number of shard domain storage nodes in the cloud disk shard fault domain within a first time interval is a first number threshold; a scheduling module, used to schedule the cloud disk shard to the target storage node.

[0101] In one embodiment, the cloud disk shard corresponds to a domain token, which is used to provide the target storage node with domain entry permissions to join the cloud disk shard fault domain; the upper limit of the number of domain tokens is the first number threshold; and every second time interval, the number of domain tokens increases by one.

[0102] In one embodiment, when the number of domain tokens of the cloud disk shard is 1, the determined target storage node needs to span at least two switches with the existing shard domain storage nodes of the cloud disk shard.

[0103] In one embodiment, the device also includes a cloud disk shard fault domain construction module, which is used to add the target storage node as the shard domain storage node of the cloud disk shard to the cloud disk shard fault domain of the cloud disk shard in response to the cloud disk shard meeting the entry condition; wherein the entry condition includes any one of the following: the scheduling type of the cloud disk shard is abnormal scheduling and the number of shard domain storage nodes of the cloud disk shard does not reach the first number threshold; the scheduling type of the cloud disk shard is balanced scheduling, and the number of shard domain storage nodes of the cloud disk shard reaches a preset threshold value but does not reach the first number threshold.

[0104] In one embodiment, the device also includes a cloud disk shard fault domain construction module, which is used to select a shard domain storage node from the cloud disk shard fault domain to exit the cloud disk shard fault domain in response to the cloud disk shard meeting the exit condition; wherein the exit condition includes any one of the following: passing the security check of the cloud disk shard; receiving an instruction to release the cloud disk shard fault domain; the number of domain tokens of the cloud disk shard is greater than the number of shard domain storage nodes in the cloud disk shard fault domain.

[0105] In one embodiment, the fault domain also includes a cloud disk fault domain, and the device also includes a cloud disk fault domain construction module, which is used to select, for any cloud disk, a second number threshold of shard domain storage nodes from the cloud disk shard fault domains of multiple cloud disk shards of the cloud disk to add to the cloud disk fault domain of the cloud disk.

[0106] In one embodiment, the cloud disk fault domain construction module is specifically used to sort multiple shard domain storage nodes from most to least according to the number of cloud disk shard fault domains to which the shard domain storage nodes join; select the first N shard domain storage nodes to join the cloud disk fault domain; wherein N is equal to the second number threshold.

[0107] In one embodiment, the fault domain further includes a global fault domain, and the device further includes a global fault domain construction module, which is used to construct the global fault domain based on the cloud disk fault domain of at least one cloud disk.

[0108] In one embodiment, the global fault domain construction module is specifically configured to use the cloud disk fault domain that first reaches the third quantity threshold as the global fault domain.

[0109] In one embodiment, the device also includes a global fault domain construction module for redetermining the global fault domain in response to the total number of cloud disk shards carried by each first storage node in the global fault domain exceeding a fourth quantity threshold; wherein the fourth quantity threshold is determined based on the average number of cloud disk shards carried by the global storage nodes.

[0110] In one embodiment, the target storage node determination module is specifically used to determine the target storage node from the candidate storage nodes according to the scheduling type of the cloud disk shard; wherein the candidate storage nodes include at least one of the shard domain storage node of the cloud disk shard, the first storage node in the global fault domain, and the second storage node outside the global fault domain, and the global fault domain is constructed based on the cloud disk shard fault domains of multiple cloud disk shards.

[0111] In one embodiment, the target storage node determination module is specifically used to determine the target storage node from multiple first storage nodes in response to the scheduling type of the cloud disk shard being abnormal scheduling and the existence of the global fault domain; or, in response to the scheduling type of the cloud disk shard being abnormal scheduling and the absence of the global fault domain, determine the target storage node from any candidate storage node; or, in response to the scheduling type of the cloud disk shard being abnormal scheduling and this scheduling being the Mth abnormal scheduling of the cloud disk shard, determine the target storage node from multiple second storage nodes, where M is a multiple of the number of the first storage nodes.

[0112] In one embodiment, the target storage node determination module is specifically used to determine the target storage node from the shard domain storage nodes of the cloud disk shard in response to the scheduling type of the cloud disk shard being balanced scheduling and the number of shard domain storage nodes of the cloud disk shard reaching the first quantity threshold; or, in response to the scheduling type of the cloud disk shard being balanced scheduling and the number of shard domain storage nodes of the cloud disk shard not reaching the first quantity threshold, determine the target storage node from multiple second storage nodes.

[0113] In one embodiment, the target storage node determination module is specifically used to select a second storage node with a smaller number of added cloud disk shard fault domains as the target storage node in response to the number of shard domain storage nodes of the cloud disk shard not reaching a preset threshold value; or, in response to the number of shard domain storage nodes of the cloud disk shard reaching the preset threshold value, select a second storage node that is at least two switches away from the shard domain storage nodes of the cloud disk shard as the target storage node.

[0114] In one embodiment, the target storage node determination module is specifically used to select a second storage node with a small number of added cloud disk shard fault domains as the target storage node in response to the scheduling type of the cloud disk shard being neither abnormal scheduling nor balanced scheduling.

[0115] In one embodiment, the device also includes a cloud disk shard screening module, which is used to screen out abnormal cloud disk shards and normal cloud disk shards from the cloud disk shards carried by the storage nodes in the fault domain; mark the abnormal cloud disk shards, and schedule the normal cloud disk shards to the storage nodes outside the fault domain.

[0116] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.

[0117] Example 5

[0118] Figure 11 is a block diagram of an electronic device used to implement embodiments of the present application. As shown in Figure 11 , the electronic device includes a memory 1101 and a processor 1102. Memory 1101 stores a computer program executable on processor 1102. Processor 1102 executes the computer program to implement the methods described in the above embodiments. There can be one or more memory 1101 and processor 1102.

[0119] The electronic device further includes a communication interface 1103 for communicating with external devices and performing data exchange transmission.

[0120] If the memory 1101, processor 1102, and communication interface 1103 are implemented independently, the memory 1101, processor 1102, and communication interface 1103 can be interconnected via a bus and communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. This bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, FIG11 shows only one thick line, but this does not mean that there is only one bus or only one type of bus.

[0121] Optionally, in a specific implementation, if the memory 1101 , the processor 1102 , and the communication interface 1103 are integrated on a chip, the memory 1101 , the processor 1102 , and the communication interface 1103 may communicate with each other through an internal interface.

[0122] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method provided in any embodiment of the present application.

[0123] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided in any embodiment of the present application.

[0124] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory. The input interface, the output interface, the processor and the memory are connected through an internal connection path. The processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in any embodiment of the application.

[0125] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced RISC Machines (ARM) architecture.

[0126] Optionally, the above-mentioned memory may include read-only memory and random access memory, and may also include non-volatile random access memory. The memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory may include random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example: Static RAM (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Sync Link DRAM (SLDRAM) and Direct Rambus RAM (DRRAM).

[0127] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.

[0128] It should be noted that the user information (including but not limited to user device information, user personal information, user operation information, etc.) and data (including but not limited to data used for processing, analysis, storage, display, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant information and 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.

[0129] In the description of this specification, the reference terms "one embodiment," "some embodiments," "example," "specific example," or "some examples" mean that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials, or characteristics described may be combined in any appropriate manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and integrate different embodiments or examples described in this specification, as well as features of different embodiments or examples, unless they are mutually inconsistent.

[0130] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. Throughout the description of this application, "plurality" means two or more, unless otherwise specifically defined.

[0131] Any process or method description in a flow chart or otherwise described herein can be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process. The scope of the preferred embodiments of the present application includes additional implementations in which the functions may be performed in a different order than shown or discussed, including in a substantially simultaneous manner or in a reverse order depending on the functions involved.

[0132] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in conjunction with such instruction execution systems, apparatuses or devices.

[0133] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

[0134] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing module, or each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the aforementioned integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, or an optical disk, etc.

[0135] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should be included within the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

Claims

1. A cloud disk scheduling method, comprising: Determine a target storage node for a cloud disk shard based on a dynamically updated fault domain; wherein the fault domain includes a cloud disk shard fault domain, and an upper limit on the number of shard domain storage nodes in the cloud disk shard fault domain within a first time interval is a first number threshold; The cloud disk shard is dispatched to the target storage node.

2. The method according to claim 1, wherein: The cloud disk shard corresponds to a domain token, which is used to provide the target storage node with the domain entry permission to join the cloud disk shard fault domain; the upper limit of the number of domain tokens is the first number threshold; The number of domain tokens increases by one at every second time interval.

3. The method according to claim 2, wherein: When the number of domain tokens of the cloud disk shard is 1, the determined target storage node needs to span at least two switches with the existing shard domain storage nodes of the cloud disk shard.

4. The method according to claim 1, further comprising: In response to the cloud disk shard satisfying the domain entry condition, the target storage node is added to the cloud disk shard fault domain of the cloud disk shard as the shard domain storage node of the cloud disk shard; wherein the domain entry condition includes any one of the following: the scheduling type of the cloud disk shard is abnormal scheduling and the number of shard domain storage nodes of the cloud disk shard does not reach the first quantity threshold; the scheduling type of the cloud disk shard is balanced scheduling, and the number of shard domain storage nodes of the cloud disk shard reaches a preset threshold value but does not reach the first quantity threshold; or, In response to the cloud disk shard satisfying the exit condition, a shard domain storage node is selected from the cloud disk shard fault domain to exit the cloud disk shard fault domain; wherein the exit condition includes any one of the following: a security check on the cloud disk shard is passed; a release instruction for the cloud disk shard fault domain is received; the number of domain tokens of the cloud disk shard is greater than the number of shard domain storage nodes in the cloud disk shard fault domain.

5. The method according to claim 1, wherein: The fault domain also includes a cloud disk fault domain, and the method further includes: For any cloud disk, multiple shard domain storage nodes are sorted from most to least according to the number of cloud disk shard fault domains to which the shard domain storage nodes join; and the first N shard domain storage nodes are selected to join the cloud disk fault domain; wherein N is equal to the second quantity threshold.

6. The method according to claim 1, wherein: The fault domain further includes a global fault domain, and the method further includes: The cloud disk fault domain that first reaches the third quantity threshold is used as the global fault domain.

7. The method according to claim 6, further comprising: In response to the total number of cloud disk shards carried by each storage node in the global fault domain exceeding a fourth quantity threshold, the global fault domain is re-determined; wherein the fourth quantity threshold is determined based on an average number of cloud disk shards carried by the global storage nodes.

8. The method according to any one of claims 1 to 7, determining the target storage node of the cloud disk shard based on the dynamically updated fault domain, comprising: According to the scheduling type of the cloud disk shard, the target storage node is determined from the candidate storage nodes; wherein the candidate storage nodes include at least one of the shard domain storage node of the cloud disk shard, the first storage node in the global fault domain, and the second storage node outside the global fault domain, and the global fault domain is constructed based on the cloud disk shard fault domains of multiple cloud disk shards.

9. The method according to claim 8, wherein: Determining the target storage node from the candidate storage nodes according to the scheduling type of the cloud disk shard includes: In response to the scheduling type of the cloud disk shard being abnormal scheduling and the global fault domain existing, determining the target storage node from a plurality of the first storage nodes; or, In response to the scheduling type of the cloud disk shard being abnormal scheduling and the global fault domain not existing, determining the target storage node from any candidate storage node; or, In response to the scheduling type of the cloud disk shard being abnormal scheduling and the current scheduling being the Mth abnormal scheduling of the cloud disk shard, determining the target storage node from a plurality of the second storage nodes, where M is a multiple of the number of the first storage nodes; or In response to the scheduling type of the cloud disk shard being balanced scheduling and the number of shard domain storage nodes of the cloud disk shard reaching the first number threshold, determining the target storage node from the shard domain storage nodes of the cloud disk shard; or, In response to the scheduling type of the cloud disk shard being balanced scheduling, and the number of shard domain storage nodes of the cloud disk shard not reaching the first number threshold, determining the target storage node from a plurality of second storage nodes; or, In response to the scheduling type of the cloud disk shard being neither abnormal scheduling nor balanced scheduling, a second storage node having a smaller number of fault domains of the added cloud disk shard is selected as the target storage node.

10. The method according to claim 9, wherein: In response to the scheduling type of the cloud disk shard being balanced scheduling, and the number of shard domain storage nodes of the cloud disk shard not reaching the first number threshold, determining the target storage node from a plurality of second storage nodes, comprising: In response to the number of shard domain storage nodes of the cloud disk shard not reaching a preset threshold value, selecting a second storage node with a small number of added cloud disk shard fault domains as the target storage node; or, In response to the number of shard domain storage nodes of the cloud disk shard reaching the preset threshold value, a second storage node that is at least two switches away from the shard domain storage nodes of the cloud disk shard is selected as the target storage node.

11. The method according to any one of claims 1 to 7, further comprising: Filter out abnormal cloud disk shards and normal cloud disk shards from the cloud disk shards carried by the storage nodes in the fault domain; The abnormal cloud disk shard is marked, and the normal cloud disk shard is scheduled to a storage node outside the fault domain.

12. A cloud disk scheduling system, comprising: Multiple storage nodes; A control server, configured to execute the method described in any one of claims 1 to 11 to schedule the cloud disk shards to the target On the storage node; The client obtains the information of the target storage node from the management and control server, and performs write / read operations on the cloud disk shard based on the target storage node.

13. An electronic device comprising a memory, a processor and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 11 when executing the computer program.

14. A computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.

Citation Information

Patent Citations

  • Methods for dynamically managing access to logical unit numbers in a distributed storage area network environment and devices thereof

    CN109997105A

  • A method and equipment for data protection

    CN110737924A

  • Distributed storage method and device

    CN115617264A

  • Cloud disk scheduling method and system, electronic equipment and storage medium

    CN116436934A

  • Implementing Fault Domain And Latency Requirements In A Virtualized Distributed Storage System

    US20190213085A1

Cited By

  • Resource scheduling method, apparatus, medium, electronic device, and program product

    US20260064293A1