A distributed storage cluster deployment method, device, equipment and medium

By dividing the distributed storage cluster deployment process into sub-operations and rolling back to the marked point state in case of failure, the problem of global rollback after large-scale cluster deployment failure is solved, and an efficient deployment process is achieved.

CN115268796BActive Publication Date: 2026-07-24JINAN INSPUR DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JINAN INSPUR DATA TECH CO LTD
Filing Date
2022-08-19
Publication Date
2026-07-24

AI Technical Summary

Technical Problem

During the deployment of distributed storage clusters, if the deployment fails, the entire cluster needs to be rolled back, which increases time costs and leads to a poor user experience. This problem is particularly pronounced in large-scale clusters.

Method used

The deployment process is divided into several sub-operations, and if a sub-operation fails, it rolls back to the previous marker state. After obtaining the continue deployment instruction, it continues execution from the marker point, thus avoiding a global rollback.

Benefits of technology

It reduces unnecessary rollback operations, lowers deployment time and costs, improves deployment efficiency and flexibility, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115268796B_ABST
    Figure CN115268796B_ABST
Patent Text Reader

Abstract

The application discloses a distributed storage cluster deployment method and device, equipment and medium, and relates to the technical field of information. The method comprises the following steps: obtaining a target deployment request for a target distributed storage cluster, and determining a corresponding target deployment process according to the target deployment request; the target deployment process is divided into a plurality of target deployment sub-operations, and the target deployment sub-operations are executed in turn according to a preset deployment sequence in the target deployment process; if the target deployment sub-operation fails, a rollback is performed in the target deployment sub-operation to roll back the cluster state to the state of a mark point corresponding to the last target deployment sub-operation; a continue deployment instruction is obtained, and the remaining deployment sub-operations are continued to be executed from the state of the mark point to complete the target deployment request for the target distributed storage cluster. Through the above scheme, the distributed storage cluster deployment efficiency can be improved when the distributed storage cluster is deployed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of information technology, and in particular to a method, apparatus, device and medium for deploying a distributed storage cluster. Background Technology

[0002] For distributed storage clusters, deployment requires several steps, including initializing the MON and OSD. If any step fails, the current practice is to roll back all steps, i.e., reset the cluster, including both completed and unexecuted steps. This approach is acceptable in terms of time cost when the cluster is small. However, with the rapid development of storage technology, storage clusters are becoming increasingly large, with clusters consisting of hundreds or thousands of nodes becoming more widely used. In this case, if a failure occurs during deployment, rolling back the entire cluster significantly increases the wasted time, resulting in a poor user experience. Furthermore, once the deployment process starts, it cannot be interrupted until successful or a clear failure occurs, unless forcibly restarted. If problems are discovered after deployment has started, the only option is to wait for the failure and then reset the cluster, adding further inconvenience. Therefore, how to improve the efficiency of distributed storage cluster deployment by avoiding the need to reset the cluster and re-deploy after a deployment failure remains a problem that requires further investigation. Summary of the Invention

[0003] In view of this, the purpose of this invention is to provide a method, apparatus, device, and medium for deploying a distributed storage cluster, which can improve the efficiency of distributed storage cluster deployment by avoiding the need to reset the cluster and redeploy from scratch after deployment failure. The specific solution is as follows:

[0004] In a first aspect, this application discloses a method for deploying a distributed storage cluster, including:

[0005] Obtain the target deployment request for the target distributed storage cluster, and determine the corresponding target deployment process based on the target deployment request;

[0006] The target deployment process is divided into several target deployment sub-operations, and the target deployment sub-operations are executed sequentially according to the preset deployment order in the target deployment process;

[0007] If the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation.

[0008] Obtain the continue deployment instruction and continue executing the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster.

[0009] Optionally, after dividing the target deployment process into several target deployment sub-operations and executing the target deployment sub-operations sequentially according to a preset deployment order in the target deployment process, the method further includes:

[0010] If the target deployment sub-operation is executed successfully, the deployment progress is updated and the target point of the target deployment sub-operation is recorded as a marker point.

[0011] Optionally, dividing the target deployment process into several target deployment sub-operations and executing the target deployment sub-operations sequentially according to a preset deployment order in the target deployment process includes:

[0012] The deployment steps in the target deployment process are extracted, and deployment steps with the same operation are packaged into target deployment sub-operations. The target deployment sub-operations are then executed sequentially according to the preset deployment order in the target deployment process.

[0013] Optionally, the step of updating the deployment progress and recording the target point of the target deployment sub-operation as a marker point if the target deployment sub-operation is successfully executed includes:

[0014] If all deployment steps in the target deployment sub-operation are executed successfully, the deployment progress is updated and the target point of the target deployment sub-operation is recorded as a marker point.

[0015] Optionally, if the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation, including:

[0016] If any deployment step in the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation.

[0017] Optionally, after the step of performing a rollback within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation if the target deployment sub-operation fails, the method further includes:

[0018] Generate a deployment failure message indicating that the target deployment sub-operation failed to deploy, and display the deployment failure message on a preset front-end interface.

[0019] Optionally, obtaining the continue deployment instruction and continuing to execute the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster includes:

[0020] The system obtains the continue deployment instruction through the preset continue deployment interface, and continues to execute the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster.

[0021] Secondly, this application discloses a distributed storage cluster deployment apparatus, comprising:

[0022] The deployment request acquisition module is used to acquire the target deployment request for the target distributed storage cluster and determine the corresponding target deployment process based on the target deployment request.

[0023] The deployment process segmentation module is used to divide the target deployment process into several target deployment sub-operations, and execute the target deployment sub-operations sequentially according to the preset deployment order in the target deployment process;

[0024] The state rollback module is used to perform a rollback within the target deployment sub-operation if the target deployment sub-operation fails, so as to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation.

[0025] The continued deployment module is used to obtain the continued deployment instruction and continue to execute the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster.

[0026] Thirdly, this application discloses an electronic device, including:

[0027] Memory, used to store computer programs;

[0028] A processor is configured to execute the computer program to implement the steps of the aforementioned disclosed distributed storage cluster deployment method.

[0029] Fourthly, this application discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the steps of the aforementioned distributed storage cluster deployment method.

[0030] When deploying a distributed storage cluster, this application first obtains a target deployment request for the target distributed storage cluster, determines the corresponding target deployment process based on the target deployment request, divides the target deployment process into several target deployment sub-operations, and executes the target deployment sub-operations sequentially according to the preset deployment order in the target deployment process. If a target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. Further, a continue deployment instruction is obtained and the remaining deployment sub-operations are executed from the state of the marker point to complete the target deployment request for the target distributed storage cluster. As can be seen, when deploying a distributed storage cluster, this application first obtains the target deployment request of the target distributed storage cluster, determines the corresponding target deployment process based on the target deployment request, further divides the target deployment process into several target deployment sub-operations, and executes the target deployment sub-operations sequentially according to the preset deployment order in the target deployment process. If the target deployment sub-operation fails during the deployment process, the target deployment sub-operation is rolled back within the operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. When a continue deployment instruction is obtained, the remaining deployment sub-operations are executed from the state of the marker point to complete the deployment of the target distributed storage cluster. Therefore, this application, when deploying a distributed storage cluster, divides the target deployment process into several target deployment sub-operations after receiving the target distributed storage cluster deployment request. This allows for the determination of completed steps by obtaining the status of the marker point corresponding to the previous target deployment sub-operation if deployment fails for any reason. The failed target deployment sub-operation can then be rolled back. After resolving the issue causing the deployment failure, it is not necessary to reset the entire target distributed storage cluster and redeploy it. Instead, the cluster state can be directly rolled back to the marked point state based on the deployment progress, reducing unnecessary rollback operations, lowering deployment time costs, increasing deployment flexibility, and thus improving user experience. In summary, this application can improve the efficiency of distributed storage cluster deployment by avoiding the need to reset the cluster and redeploy it from scratch after a deployment failure. Attached Figure Description

[0031] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0032] Figure 1A flowchart of a distributed storage cluster deployment method provided in this application;

[0033] Figure 2 A flowchart illustrating a specific distributed storage cluster deployment method provided in this application;

[0034] Figure 3 A flowchart illustrating a specific distributed storage cluster deployment method provided in this application;

[0035] Figure 4 This application provides a schematic diagram of the structure of a distributed storage cluster deployment device;

[0036] Figure 5 This application provides a structural diagram of an electronic device. Detailed Implementation

[0037] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0038] For distributed storage clusters, deployment requires several steps, including initializing the MON and OSD. If any step fails, the current approach is to roll back all steps, i.e., reset the cluster, including both completed and unexecuted steps. This approach is acceptable in terms of time cost when the cluster size is small. However, with the rapid development of storage technology, storage clusters are becoming increasingly large, with clusters consisting of hundreds or thousands of nodes becoming more widely used. In this case, if a step fails during deployment, rolling back the entire cluster significantly increases the wasted time, resulting in a poor user experience. Furthermore, once the deployment process starts, it cannot be interrupted until successful or a clear failure occurs, unless forcibly restarted. If problems are discovered after deployment has started, the only option is to wait for a failure and then reset the cluster, causing numerous inconveniences. Therefore, this application provides a distributed storage cluster deployment method that avoids resetting the cluster and redeploying from scratch after a deployment failure, thus improving the efficiency of distributed storage cluster deployment.

[0039] This invention discloses a method for deploying a distributed storage cluster, see [link to relevant documentation]. Figure 1 As shown, the method includes:

[0040] Step S11: Obtain the target deployment request for the target distributed storage cluster, and determine the corresponding target deployment process based on the target deployment request.

[0041] In this embodiment, the target deployment request is a deployment request for a target distributed storage cluster. Upon receiving the target deployment request for the target distributed storage cluster, a target deployment process corresponding to the target distributed storage cluster is determined based on the target deployment request. It is understood that executing the target deployment process completes the target deployment request for the target distributed storage cluster and yields the target distributed storage cluster. Through the above technical solution, a target deployment request for a target distributed storage cluster is obtained, and the corresponding target deployment process is determined based on the target deployment request. This facilitates subsequent segmentation of the target deployment process to obtain target deployment sub-operations, which are then executed to complete the target deployment request.

[0042] Step S12: Divide the target deployment process into several target deployment sub-operations, and execute the target deployment sub-operations sequentially according to the preset deployment order in the target deployment process.

[0043] In this embodiment, the target deployment process is divided into several target deployment sub-operations, and these sub-operations are executed sequentially according to a preset deployment order. It is understood that each target deployment sub-operation is derived from the segmentation of the target deployment process; completing all sub-operations completes the target deployment request and yields the target distributed storage cluster. By dividing the target deployment process into several sub-operations and executing them sequentially according to a preset deployment order, the system facilitates state rollback within each sub-operation should it fail, thereby improving the deployment efficiency of the distributed storage cluster.

[0044] Step S13: If the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation.

[0045] In this embodiment, if the target deployment sub-operation is executed successfully, the deployment progress is updated and the target point of the target deployment sub-operation is recorded as a marker point. Specifically, when the target sub-operation is executed successfully, the deployment is updated to the current target point of the target sub-operation, and the target point of the target deployment sub-operation is marked to obtain a marker point. It can be understood that the marker point is used to mark the current deployment progress. If the target deployment sub-operation is executed successfully, the target point corresponding to the target sub-operation is marked as the marker point to record the current deployment progress.

[0046] Furthermore, if the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. Specifically, if the target deployment sub-operation fails, it is rolled back within the operation to the state before the target deployment sub-operation was executed, thus rolling back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. Through this technical solution, if the cluster deployment fails for some reason, the state of the marker point corresponding to the previous target deployment sub-operation can be obtained to determine the completed steps, and the failed target deployment sub-operation can be rolled back. After resolving the issue causing the deployment failure, it is not necessary to reset the entire target distributed storage cluster and then redeploy it. Instead, the cluster state can be directly rolled back to the marker point state based on the deployment progress, reducing unnecessary rollback operations.

[0047] Step S14: Obtain the continue deployment instruction and continue to execute the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster.

[0048] In this embodiment, a continue deployment instruction is obtained, and the remaining deployment sub-operations are executed from the state of the marked point to complete the target deployment request for the target distributed storage cluster. Specifically, a continue deployment instruction is obtained through a preset continue deployment interface, and the remaining deployment sub-operations are executed from the state of the marked point to complete the target deployment request for the target distributed storage cluster. When a continue deployment instruction is obtained through the preset continue deployment interface, it is not necessary to reset the entire target distributed storage cluster and then redeploy it. Instead, the cluster state can be directly rolled back to the marked point state according to the deployment progress, reducing unnecessary rollback operations, lowering deployment time costs, increasing deployment flexibility, and thus improving the user experience.

[0049] As can be seen, in this embodiment, when deploying a distributed storage cluster, the target deployment request of the target distributed storage cluster is first obtained, and the corresponding target deployment process is determined according to the target deployment request. The target deployment process is further divided into several target deployment sub-operations, and the target deployment sub-operations are executed sequentially according to the preset deployment order in the target deployment process. If the target deployment sub-operation fails during the deployment process, the target deployment sub-operation is rolled back within the operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. When a continue deployment instruction is obtained, the remaining deployment sub-operations are executed from the state of the marker point to complete the deployment of the target distributed storage cluster. Therefore, this application, when deploying a distributed storage cluster, divides the target deployment process into several target deployment sub-operations after receiving the target distributed storage cluster deployment request. This allows for the determination of completed steps by obtaining the status of the marker point corresponding to the previous target deployment sub-operation if deployment fails for any reason. The failed target deployment sub-operation can then be rolled back. After resolving the issue causing the deployment failure, it is not necessary to reset the entire target distributed storage cluster and redeploy it. Instead, the cluster state can be directly rolled back to the marked point state based on the deployment progress, reducing unnecessary rollback operations, lowering deployment time costs, increasing deployment flexibility, and thus improving user experience. In summary, this application can improve the efficiency of distributed storage cluster deployment by avoiding the need to reset the cluster and redeploy it from scratch after a deployment failure.

[0050] See Figure 2 As shown, this embodiment of the invention discloses a specific method for deploying a distributed storage cluster. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.

[0051] Step S21: Obtain the target deployment request for the target distributed storage cluster, and determine the corresponding target deployment process based on the target deployment request.

[0052] Step S22: Divide the target deployment process into several target deployment sub-operations, and execute the target deployment sub-operations sequentially according to the preset deployment order in the target deployment process.

[0053] Step S23: If the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. Then, a deployment failure message indicating that the target deployment sub-operation failed is generated and displayed on the preset front-end interface.

[0054] In this embodiment, when the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. Then, a deployment failure message is generated based on the target deployment sub-operation, and the deployment failure message is displayed on a preset front-end interface. By displaying the deployment failure message on the preset front-end interface, the user is informed of the deployment failure event when the target deployment sub-operation fails, allowing the user to resolve the corresponding problem through the deployment failure event. After the problem is resolved, the remaining deployment sub-operations are executed.

[0055] Step S24: Obtain the continue deployment instruction and continue to execute the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster.

[0056] As can be seen, in this embodiment, the deployment failure prompt is displayed on the preset front-end interface. When the target deployment sub-operation fails, the user is notified of the deployment failure event through the prompt on the preset front-end interface, so that the user can solve the corresponding problem through the deployment failure event. After the corresponding problem is solved, the remaining deployment sub-operations are executed, which reduces the deployment time cost, increases the deployment flexibility, and thus improves the user experience.

[0057] See Figure 3 As shown, this embodiment of the invention discloses a specific method for deploying a distributed storage cluster. Compared with the previous embodiment, this embodiment further explains and optimizes the technical solution.

[0058] Step S31: Obtain the target deployment request for the target distributed storage cluster, and determine the corresponding target deployment process based on the target deployment request.

[0059] Step S32: Extract the deployment steps in the target deployment process and package deployment steps with the same operation into target deployment sub-operations, and execute the target deployment sub-operations in sequence according to the preset deployment order in the target deployment process.

[0060] In this embodiment, the target deployment process includes, but is not limited to, MON initialization operations and OSD initialization operations. Deployment steps within the target deployment process are extracted, and deployment steps with identical operations are packaged into target deployment sub-operations. Specifically, each operation in the OSD initialization is considered an atom, i.e., a target deployment sub-operation. It is understood that each target deployment sub-operation contains several deployment steps. Through the above technical solution, the target deployment process is segmented into target deployment sub-operations based on the operations within it, facilitating subsequent execution of these sub-operations.

[0061] Step S33: If the deployment step fails in the target deployment sub-operation, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation.

[0062] In this embodiment, if all deployment steps in the target deployment sub-operation are executed successfully, the deployment progress is updated and the target point of the target deployment sub-operation is recorded as a marker point. If any deployment step in the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. Specifically, each deployment step in each target deployment sub-operation is either fully completed or fully rolled back to its initial state. After deployment begins, the progress is updated and a marker point is marked after each target deployment sub-operation is completed. When a deployment step fails, the completed deployment steps within the target deployment sub-operation are rolled back to the state of the marker point. Then, the user is prompted that the deployment has failed. After resolving the issue that caused the deployment failure, the user does not need to reset the cluster and can directly click "Continue Deployment." The deployment process then proceeds directly from the marker point to complete the subsequent steps.

[0063] Step S34: Obtain the continue deployment instruction and continue to execute the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster.

[0064] See Figure 4 As shown in the figure, this application discloses a distributed storage cluster deployment device, including:

[0065] The deployment request acquisition module 11 is used to acquire the target deployment request for the target distributed storage cluster and determine the corresponding target deployment process based on the target deployment request.

[0066] The deployment process segmentation module 12 is used to divide the target deployment process into several target deployment sub-operations, and execute the target deployment sub-operations sequentially according to the preset deployment order in the target deployment process;

[0067] The state rollback module 13 is used to perform a rollback within the target deployment sub-operation if the target deployment sub-operation fails, so as to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation.

[0068] The continued deployment module 14 is used to obtain the continued deployment instruction and continue to execute the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster.

[0069] In one specific implementation, a deployment request acquisition module acquires a target deployment request for a target distributed storage cluster, and determines a corresponding target deployment process based on the target deployment request. The target deployment request is a deployment request for a target distributed storage cluster. Upon acquiring the target deployment request, the target deployment process corresponding to the target distributed storage cluster is determined based on the target deployment request. It is understood that executing the target deployment process completes the target deployment request for the target distributed storage cluster and yields the target distributed storage cluster. Through the above technical solution, a target deployment request for a target distributed storage cluster is acquired, and the corresponding target deployment process is determined based on the target deployment request. This facilitates subsequent segmentation of the target deployment process to obtain target deployment sub-operations, which are then executed to complete the target deployment request.

[0070] In one specific implementation, the target deployment process is divided into several target deployment sub-operations by a deployment process segmentation module, and these sub-operations are executed sequentially according to a preset deployment order within the target deployment process. It is understood that the target deployment sub-operations are derived from the segmentation of the target deployment process; that is, completing all the target deployment sub-operations completes the target deployment request and yields the target distributed storage cluster. By segmenting the target deployment process into several target deployment sub-operations and executing them sequentially according to a preset deployment order, the system facilitates state rollback within the target deployment sub-operations should they fail, thereby improving the deployment efficiency of the distributed storage cluster.

[0071] In one specific implementation, through a state rollback module, when the target deployment sub-operation is successfully executed, the deployment progress is updated and the target point of the target deployment sub-operation is recorded as a marker point. Specifically, when the target sub-operation is successfully executed, the deployment is updated to the target point of the current target sub-operation, and the target point of the target deployment sub-operation is marked to obtain a marker point. It can be understood that the marker point is used to mark the current deployment progress. If the target deployment sub-operation is successfully executed, the target point corresponding to the target sub-operation is marked as the marker point to record the current deployment progress. Further, if the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. Specifically, if the target deployment sub-operation fails, the target deployment sub-operation is rolled back within the operation to the state before the target deployment sub-operation was executed, so as to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. The above technical solution enables the determination of completed steps by obtaining the status of the marker point corresponding to the previous target deployment sub-operation when the cluster deployment fails for some reason. The failed target deployment sub-operation can then be rolled back. After solving the problem that caused the deployment failure, it is not necessary to reset the entire target distributed storage cluster and redeploy it. Instead, the cluster status can be rolled back to the marker point status according to the deployment progress, reducing unnecessary rollback operations.

[0072] In one specific implementation, a continue deployment module obtains a continue deployment instruction and continues executing the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster. Specifically, a continue deployment instruction is obtained through a preset continue deployment interface, and the remaining deployment sub-operations are executed from the state of the marked point to complete the target deployment request for the target distributed storage cluster. When a continue deployment instruction is obtained through the preset continue deployment interface, it is not necessary to first reset the entire target distributed storage cluster and then redeploy it. Instead, the cluster state can be directly rolled back to the marked point state according to the deployment progress, reducing unnecessary rollback operations, lowering deployment time costs, increasing deployment flexibility, and thus improving the user experience.

[0073] As can be seen, in this embodiment, when deploying a distributed storage cluster, the target deployment request of the target distributed storage cluster is first obtained, and the corresponding target deployment process is determined according to the target deployment request. The target deployment process is further divided into several target deployment sub-operations, and the target deployment sub-operations are executed sequentially according to the preset deployment order in the target deployment process. If the target deployment sub-operation fails during the deployment process, the target deployment sub-operation is rolled back within the operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. When a continue deployment instruction is obtained, the remaining deployment sub-operations are executed from the state of the marker point to complete the deployment of the target distributed storage cluster. Therefore, this application, when deploying a distributed storage cluster, divides the target deployment process into several target deployment sub-operations after receiving the target distributed storage cluster deployment request. This allows for the determination of completed steps by obtaining the status of the marker point corresponding to the previous target deployment sub-operation if deployment fails for any reason. The failed target deployment sub-operation can then be rolled back. After resolving the issue causing the deployment failure, it is not necessary to reset the entire target distributed storage cluster and redeploy it. Instead, the cluster state can be directly rolled back to the marked point state based on the deployment progress, reducing unnecessary rollback operations, lowering deployment time costs, increasing deployment flexibility, and thus improving user experience. In summary, this application can improve the efficiency of distributed storage cluster deployment by avoiding the need to reset the cluster and redeploy it from scratch after a deployment failure.

[0074] In some specific embodiments, the distributed storage cluster deployment device further includes:

[0075] The point marking module is used to update the deployment progress and record the target point of the target deployment sub-operation as a marked point if the target deployment sub-operation is successfully executed.

[0076] In some specific embodiments, the deployment process segmentation module 12 is specifically used to: extract the deployment steps in the target deployment process and package the deployment steps with the same operation into target deployment sub-operations, and execute the target deployment sub-operations sequentially according to the preset deployment order in the target deployment process.

[0077] In some specific embodiments, the point marking module is specifically used to: if all the deployment steps in the target deployment sub-operation are executed successfully, update the deployment progress and record the target point of the target deployment sub-operation as a marked point.

[0078] In some specific embodiments, the state rollback module 13 is specifically used to: if the deployment step in the target deployment sub-operation fails, perform a rollback within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation.

[0079] In some specific embodiments, the distributed storage cluster deployment device further includes:

[0080] The deployment failure prompt module is used to generate a deployment failure prompt indicating that the target deployment sub-operation has failed and to display the deployment failure prompt on a preset front-end interface.

[0081] In some specific embodiments, the continued deployment module 14 is specifically used to: obtain a continued deployment instruction through a preset continued deployment interface, and continue to execute the remaining deployment sub-operations from the state of the marked point, so as to complete the target deployment request for the target distributed storage cluster.

[0082] Figure 5 The illustration shows an electronic device 20 provided in an embodiment of this application. This electronic device 20 may further include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input / output interface 25, and a communication bus 26. The memory 22 stores a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the distributed storage cluster deployment method disclosed in any of the foregoing embodiments. Furthermore, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0083] In this embodiment, the power supply 23 is used to provide voltage to the various hardware devices on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and external devices, and the communication protocol it follows can be any communication protocol applicable to the technical solution of this application, and is not specifically limited here; the input / output interface 25 is used to acquire external input data or output data to the outside world, and its specific interface type can be selected according to the specific application needs, and is not specifically limited here.

[0084] In addition, the memory 22, as a carrier for resource storage, can be a read-only memory, random access memory, disk or optical disk, etc. The resources stored thereon can include operating system 221, computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0085] The operating system 221 is used to manage and control the various hardware devices on the electronic device 20, as well as the computer program 222, which may be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program capable of performing the distributed storage cluster deployment method executed by the electronic device 20 as disclosed in any of the foregoing embodiments, the computer program 222 may further include a computer program capable of performing other specific tasks.

[0086] Furthermore, this application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, it implements the aforementioned distributed storage cluster deployment method. Specific steps of this method can be found in the corresponding content disclosed in the foregoing embodiments, and will not be repeated here.

[0087] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0088] The above provides a detailed description of a distributed storage cluster deployment method, apparatus, device, and medium provided by the present invention. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for deploying a distributed storage cluster, characterized in that, include: Obtain the target deployment request for the target distributed storage cluster, and determine the corresponding target deployment process based on the target deployment request; The target deployment process is divided into several target deployment sub-operations, and the target deployment sub-operations are executed sequentially according to a preset deployment order in the target deployment process; including: extracting the deployment steps in the target deployment process and packaging deployment steps with the same operation into target deployment sub-operations, and executing the target deployment sub-operations sequentially according to a preset deployment order in the target deployment process; If the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation; this includes: if any deployment step in the target deployment sub-operation fails, a rollback is performed within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. Obtain the continue deployment instruction and continue executing the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster.

2. The distributed storage cluster deployment method according to claim 1, characterized in that, After dividing the target deployment process into several target deployment sub-operations and executing the target deployment sub-operations sequentially according to a preset deployment order in the target deployment process, the method further includes: If the target deployment sub-operation is executed successfully, the deployment progress is updated and the target point of the target deployment sub-operation is recorded as a marker point.

3. The distributed storage cluster deployment method according to claim 2, characterized in that, If the target deployment sub-operation is successfully executed, the deployment progress is updated and the target point of the target deployment sub-operation is recorded as a marker point, including: If all deployment steps in the target deployment sub-operation are executed successfully, the deployment progress is updated and the target point of the target deployment sub-operation is recorded as a marker point.

4. The distributed storage cluster deployment method according to claim 1, characterized in that, The step of performing a rollback within the target deployment sub-operation to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation if the target deployment sub-operation fails also includes: Generate a deployment failure message indicating that the target deployment sub-operation failed to deploy, and display the deployment failure message on a preset front-end interface.

5. The distributed storage cluster deployment method according to any one of claims 1 to 4, characterized in that, The step of obtaining the continue deployment instruction and continuing to execute the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster includes: The system obtains the continue deployment instruction through the preset continue deployment interface, and continues to execute the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster.

6. A distributed storage cluster deployment device, characterized in that, include: The deployment request acquisition module is used to acquire the target deployment request for the target distributed storage cluster and determine the corresponding target deployment process based on the target deployment request. The deployment process segmentation module is used to segment the target deployment process into several target deployment sub-operations, and execute the target deployment sub-operations sequentially according to a preset deployment order in the target deployment process; wherein, the deployment process segmentation module is specifically used to extract the deployment steps in the target deployment process, package deployment steps with the same operation into target deployment sub-operations, and execute the target deployment sub-operations sequentially according to a preset deployment order in the target deployment process; The state rollback module is used to perform a rollback within the target deployment sub-operation if the target deployment sub-operation fails, so as to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation; specifically, the state rollback module is used to perform a rollback within the target deployment sub-operation if any deployment step in the target deployment sub-operation fails, so as to roll back the cluster state to the state of the marker point corresponding to the previous target deployment sub-operation. The continued deployment module is used to obtain the continued deployment instruction and continue to execute the remaining deployment sub-operations from the state of the marked point to complete the target deployment request for the target distributed storage cluster.

7. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor for executing the computer program to implement the steps of the distributed storage cluster deployment method as described in any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, Used for storing computer programs; wherein, when the computer programs are executed by a processor, they implement the steps of the distributed storage cluster deployment method as described in any one of claims 1 to 5.