Database cluster deployment method, device, equipment, medium and program product
Through automatic matching and combining deployment processes, efficient and automated deployment of database clusters is achieved, solving the problem of inefficient deployment in the existing technology.
Patent Information
- Application Number
- CN202411868623.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-18
- Publication Date
- 2025-04-04
AI Technical Summary
When deploying multiple different types of databases, you need to access the deployment platform of each database separately, which requires a lot of manpower to manually deploy the database cluster and inefficient deployment.
Provide a database cluster deployment method. By responding to the deployment needs input by users, it determines the initial deployment process matching in the deployment process library, and combines the target deployment process based on the user's selection operations, and finally automatically deploys the database cluster according to the target deployment process.
Improves the efficiency of database cluster deployment, enables users to intuitively understand the deployment process, and avoids deployment failures due to the lack of dependency deployment steps.
Smart Images

Figure CN119759369A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of computer technology and financial technology, and more specifically to a database cluster deployment method, apparatus, device, medium and program product. Background Art
[0002] With the continuous development of science and technology, business types are becoming more and more diverse, and the amount of data is increasing. Therefore, in order to meet increasingly complex business needs, different types of databases are needed for data storage and processing.
[0003] When deploying multiple databases of different types, it is usually necessary to access the deployment platform of each database separately and manually deploy the database cluster. In addition, since the deployment process is not intuitive and clear enough, deploying the database cluster requires a lot of manpower and has low deployment efficiency. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a database cluster deployment method, apparatus, device, medium and program product.
[0005] According to a first aspect of the present disclosure, a database cluster deployment method is provided, comprising: in response to receiving a deployment requirement input by a user, determining a deployment process in a deployment process library that matches the deployment requirement as an initial deployment process, wherein the deployment requirement at least includes a deployment scale, a deployment scenario, and a deployment database type of the database cluster, and the initial deployment process includes multiple initial deployment steps; according to a selection operation of the user for the multiple initial deployment steps, determining the initial deployment step selected by the user as a target deployment step; combining the target deployment step and the initial deployment steps in the multiple initial deployment steps that have a dependency relationship with the target deployment step to obtain a target deployment process; and deploying the database cluster according to the target deployment process.
[0006] According to an embodiment of the present disclosure, the above-mentioned database cluster is deployed according to the above-mentioned target deployment process, including: displaying a parameter configuration interface corresponding to the above-mentioned target deployment process; generating the above-mentioned target deployment process instance according to the above-mentioned target deployment process and the configuration parameters input by the user in the above-mentioned parameter configuration interface, wherein the above-mentioned configuration parameters include sub-configuration parameters for at least one database node in the above-mentioned database cluster; and executing the above-mentioned target deployment process instance to deploy the above-mentioned database cluster.
[0007] According to an embodiment of the present disclosure, the target deployment process instance is generated according to the target deployment process and the configuration parameters input by the user in the parameter configuration interface, including: obtaining initial script files corresponding to each deployment step in the target deployment process, wherein the initial script file does not include configuration parameters; generating a target script file according to the initial script file and the configuration parameters input by the user in the parameter configuration interface; and generating the target deployment process instance according to the target script file and the target deployment process.
[0008] According to an embodiment of the present disclosure, the above-mentioned sub-configuration parameters include the address parameters of the server where the above-mentioned database node is located, and the above-mentioned execution of the above-mentioned target deployment process instance to facilitate the deployment of the above-mentioned database cluster includes: according to the above-mentioned address parameters, sending the deployment file corresponding to the above-mentioned target deployment process instance to the server where the above-mentioned database node is located; and according to the execution order of each of the above-mentioned deployment steps in the above-mentioned target deployment process, executing the target script file corresponding to each of the above-mentioned deployment steps respectively, so as to configure the above-mentioned database node on the above-mentioned server.
[0009] According to an embodiment of the present disclosure, the above-mentioned deployment process library stores a requirement mapping table, and the above-mentioned requirement mapping table includes a mapping relationship between deployment requirements and deployment processes. The above-mentioned method also includes: when it is determined that the above-mentioned target deployment process is not stored in the above-mentioned deployment process library, storing the above-mentioned target deployment process in the above-mentioned deployment process library; generating a target mapping relationship according to the above-mentioned target deployment process and the deployment requirements input by the above-mentioned user; and storing the above-mentioned target mapping relationship in the above-mentioned requirement mapping table.
[0010] According to an embodiment of the present disclosure, in response to receiving a deployment requirement input by a user, determining a deployment process in a deployment process library that matches the deployment requirement as an initial deployment process includes: determining a target deployment requirement from the requirement mapping table according to the deployment requirement input by the user, wherein the similarity between the target deployment requirement and the deployment requirement input by the user satisfies a predetermined condition; determining at least one deployment process having a mapping relationship with the target deployment requirement according to the requirement mapping table; and determining the initial deployment process from the at least one deployment process according to the evaluation score of each of the at least one deployment process.
[0011] According to an embodiment of the present disclosure, the method also includes: in response to determining that the execution of the above-mentioned target deployment process instance is completed, obtaining the execution time of the above-mentioned target deployment process instance; and generating an evaluation score of the above-mentioned target deployment process based on the above-mentioned execution time, the number of times the above-mentioned target deployment process is used, and the user's evaluation information on the above-mentioned target deployment process.
[0012] A second aspect of the present disclosure provides a database cluster deployment device, characterized in that the device includes: a process matching module, which is used to determine, in response to receiving a deployment requirement input by a user, a deployment process in a deployment process library that matches the deployment requirement as an initial deployment process, wherein the deployment requirement at least includes a deployment scale, a deployment scenario, and a deployment database type of the database cluster, and the initial deployment process includes multiple initial deployment steps; a step selection module, which is used to determine, based on the user's selection operation for the multiple initial deployment steps, the initial deployment step selected by the user as a target deployment step; a step combination module, which is used to combine the target deployment step and the initial deployment steps in the multiple initial deployment steps that have a dependency relationship with the target deployment step to obtain a target deployment process; and a cluster deployment module, which is used to deploy the database cluster according to the target deployment process.
[0013] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more computer programs, wherein the one or more processors execute the one or more computer programs to implement the steps of the above method.
[0014] The fourth aspect of the present disclosure further provides a computer-readable storage medium on which a computer program or instruction is stored, and the steps of the above method are implemented when the above computer program or instruction is executed by a processor.
[0015] The fifth aspect of the present disclosure further provides a computer program product, including a computer program or instructions, which implement the steps of the above method when the above computer program or instructions are executed by a processor.
[0016] According to the embodiments of the present disclosure, by matching according to the deployment requirements of the user, an initial deployment process is obtained, and the target deployment process is determined according to the user's selection operation for the initial deployment step, so that the user can not only intuitively understand the deployment process, but also obtain the target deployment process that meets the user's deployment requirements, thereby improving the deployment efficiency. In addition, by considering the dependency between the deployment steps in the process of generating the target deployment process, the deployment failure caused by the lack of the deployment steps that the target deployment process depends on can be avoided, further improving the deployment efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0018] Figure 1 The application scenario diagram of the database cluster deployment method, apparatus, device, medium and program product according to the embodiment of the present disclosure is schematically shown;
[0019] Figure 2 A flowchart of a database cluster deployment method according to an embodiment of the present disclosure is schematically shown;
[0020] Figure 3 A schematic diagram schematically shows a target deployment process instance generated according to an embodiment of the present disclosure;
[0021] Figure 4 A schematic diagram schematically shows a target deployment process of a deployment cluster according to a specific embodiment of the present disclosure;
[0022] Figure 5 The schematic diagram shows the structure of a database cluster deployment platform according to a specific embodiment of the present disclosure;
[0023] Figure 6 A schematic diagram showing a structure of a database cluster deployment device according to an embodiment of the present disclosure; and
[0024] Figure 7 A block diagram of an electronic device suitable for implementing a database cluster deployment method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0025] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0026] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0027] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0028] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0029] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0030] In the technical solution of the present disclosure, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of the relevant data comply with relevant laws, regulations and standards, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0031] In the scenario of using personal information for automated decision-making, the methods, devices, and systems provided by the embodiments of the present disclosure provide users with corresponding operation portals for users to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered. The expression "automated decision-making" here refers to the activity of automatically analyzing and evaluating a person's behavioral habits, interests and hobbies, or economic, health, credit status, etc. through computer programs, and making decisions. The expression "expert decision-making" here refers to the activity of making decisions by people who specialize in a certain field, have specialized experience, knowledge and skills, and have reached a certain level of professionalism.
[0032] When deploying multiple databases of different types, it is usually necessary to access the deployment platform of each database separately and manually deploy the database cluster. In addition, since the deployment process is not intuitive and clear enough, deploying the database cluster requires a lot of manpower and has low deployment efficiency.
[0033] An embodiment of the present disclosure provides a database cluster deployment method, including: in response to receiving a deployment requirement input by a user, determining a deployment process in a deployment process library that matches the deployment requirement as an initial deployment process, wherein the deployment requirement includes at least the deployment scale, deployment scenario, and deployment database type of the database cluster, and the initial deployment process includes multiple initial deployment steps; based on the user's selection operation for the multiple initial deployment steps, determining the initial deployment step selected by the user as a target deployment step; combining the target deployment step and the initial deployment steps in the multiple initial deployment steps that have a dependency relationship with the target deployment step to obtain a target deployment process; and deploying the database cluster according to the target deployment process.
[0034] The embodiments of the present disclosure obtain an initial deployment process by matching according to the deployment requirements of the user, and determine the target deployment process according to the user's selection operation for the initial deployment step, so that the user can intuitively understand the deployment process, and the obtained target deployment process can meet the user's deployment requirements. In addition, by considering the dependency between deployment steps in the process of generating the target deployment process, deployment failure can be avoided, and deployment efficiency can be further improved.
[0035] Figure 1 The application scenario diagram of the database cluster deployment method, apparatus, device, medium and program product according to the embodiments of the present disclosure is schematically shown.
[0036] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, a database cluster deployment server 105, and a database cluster 106. The network 104 is used as a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103 and the database cluster deployment server 105, and between the database cluster deployment server 105 and the database cluster 106. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0037] The user can use the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the database cluster deployment server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only for example).
[0038] The first terminal device 101, the second terminal device 102, and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0039] The database cluster deployment server 105 may be a server that provides database cluster deployment services, such as a background management server (only as an example) that provides support for the database cluster deployment platform browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received user request and other data, and feed back the processing results (such as web pages, information, or data obtained or generated according to the user request) to the terminal device.
[0040] The database cluster 106 may include a first database node 106_1 and a second database node 106_2. The first database node 106_1 and the second database node 106_2 may be deployed on the same server or on different servers.
[0041] The user can access the database cluster deployment platform on the first terminal device 101, the second terminal device 102, and the third terminal device 103, and interact with the database cluster deployment server 105 through the network 104 to generate a target deployment process. The database cluster deployment server 105 deploys the database cluster 106 according to the target deployment process. Specifically, in the process of deploying the database cluster 106, the first database node 106_1 and the second database node 106_2 can be configured respectively.
[0042] It should be noted that the database cluster deployment method provided in the embodiment of the present disclosure can generally be executed by the database cluster deployment server 105. Accordingly, the database cluster deployment device provided in the embodiment of the present disclosure can generally be set in the database cluster deployment server 105. The database cluster deployment method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the database cluster deployment server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103, the database cluster 106 and / or the database cluster deployment server 105. Correspondingly, the database cluster deployment device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the database cluster deployment server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103, the database cluster 106 and / or the database cluster deployment server 105.
[0043] It should be understood that Figure 1The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks, database cluster deployment servers and database nodes.
[0044] The following will be based on Figure 1 The scene described by Figure 2~Figure 5 The database cluster deployment method of the disclosed embodiment is described in detail.
[0045] Figure 2 The flowchart of the database cluster deployment method according to the embodiment of the present disclosure is schematically shown.
[0046] like Figure 2 As shown, the database cluster deployment method of this embodiment includes operations S210 to S240.
[0047] In operation S210 , in response to receiving a deployment requirement input by a user, a deployment process matching the deployment requirement in a deployment process library is determined as an initial deployment process.
[0048] According to an embodiment of the present disclosure, the deployment requirements include at least the deployment scale, deployment scenario, and deployment database type of the database cluster, and may also include the application scenario of the database cluster, etc. Specifically, the deployment scale may include information such as the number of database nodes in the database cluster, the deployment scenario may include a cloud deployment scenario or a local deployment scenario, etc., and the deployment database type may characterize the type of database used by the database cluster.
[0049] According to an embodiment of the present disclosure, a user may input deployment requirements through a requirements interface. Specifically, when inputting deployment requirements in the requirements interface, the input method may be text input or input through a drop-down box.
[0050] According to an embodiment of the present disclosure, a deployment process library may store multiple deployment processes to meet different deployment requirements. One deployment process may correspond to multiple deployment requirements, and one deployment requirement may correspond to multiple deployment processes.
[0051] According to an embodiment of the present disclosure, when determining an initial deployment process, deployment requirements may be used to perform matching in a deployment process library, and a deployment process with a high degree of matching with the deployment requirements may be determined as the initial deployment process.
[0052] According to an embodiment of the present disclosure, the initial deployment process includes multiple initial deployment steps, and may also include a sequence and logical relationship between the multiple initial deployment steps.
[0053] In operation S220, according to the user's selection operation on the plurality of initial deployment steps, the initial deployment step selected by the user is determined as the target deployment step.
[0054] According to an embodiment of the present disclosure, there are multiple initial deployment steps in the initial deployment process, but there may be initial deployment steps that the user does not need among the multiple initial deployment steps. Therefore, the user can select the multiple initial deployment steps and choose the target deployment step that is actually needed from the multiple initial deployment steps.
[0055] According to an embodiment of the present disclosure, the initial deployment step may also have execution information, and the execution information may be used to specify the execution method of the initial deployment step. For example, when the initial deployment step is to install a deployment package, the execution information of the installation deployment package may be used to specify the deployment package version and installation location when installing the deployment package.
[0056] According to an embodiment of the present disclosure, the user can also perform an execution information modification operation on the initial deployment step to adjust the execution mode of the initial deployment step. Specifically, the user can select execution information that meets the requirements from multiple predetermined execution information of the initial deployment step. For example, when the initial deployment step is to install a deployment package, the execution information specifies the installation of the first version of the deployment package. At this time, the user can specify the installation of the second version of the deployment package by modifying the execution information.
[0057] According to an embodiment of the present disclosure, the user may also add deployment steps not included in the initial deployment process, that is, add other deployment steps in addition to the multiple initial deployment steps.
[0058] In operation S230, the target deployment step and the initial deployment steps having a dependency relationship with the target deployment step among the multiple initial deployment steps are combined to obtain a target deployment process.
[0059] According to an embodiment of the present disclosure, since there may be dependencies between deployment steps, for example, the deployment step of installing the deployment package depends on the deployment step of downloading the deployment package, and the user may not consider the dependencies between the deployment steps when selecting multiple initial deployment steps, it is possible to combine the target deployment step and the initial deployment step that has a dependency on the target deployment step to avoid the deployment process consisting of multiple target deployment steps from failing to execute normally.
[0060] According to the embodiments of the present disclosure, the dependency relationship between deployment steps can be preconfigured. After the user performs a selection operation, the initial deployment step that the target deployment step depends on can be determined based on the target deployment step selected by the user and using the dependency relationship of the target deployment step.
[0061] In operation S240 , a database cluster is deployed according to the target deployment process.
[0062] According to an embodiment of the present disclosure, when a database cluster is deployed according to a target deployment process, a script file capable of implementing the target deployment process may be executed to deploy the database cluster.
[0063] According to the embodiments of the present disclosure, by matching according to the deployment requirements of the user, an initial deployment process is obtained, and the target deployment process is determined according to the user's selection operation for the initial deployment step, so that the user can not only intuitively understand the deployment process, but also obtain the target deployment process that meets the user's deployment requirements, thereby improving the deployment efficiency. In addition, by considering the dependency between the deployment steps in the process of generating the target deployment process, the deployment failure caused by the lack of the deployment steps that the target deployment process depends on can be avoided, further improving the deployment efficiency.
[0064] According to an embodiment of the present disclosure, a database cluster is deployed according to a target deployment process, including: displaying a parameter configuration interface corresponding to the target deployment process; generating a target deployment process instance according to the target deployment process and configuration parameters input by a user in the parameter configuration interface; and executing the target deployment process instance to deploy the database cluster.
[0065] According to an embodiment of the present disclosure, the parameter configuration interface can be used to configure configuration parameters corresponding to the target deployment process. Specifically, since different deployment processes require different configuration parameters, after determining the target deployment process, the parameter configuration interface can be generated according to the configuration parameters required by the target deployment process.
[0066] According to an embodiment of the present disclosure, the configuration parameters include sub-configuration parameters for at least one database node in the database cluster. Specifically, the sub-configuration parameters may include information such as the address of the server where the database node is located, the database name, the cluster name, the cluster version, the user ID, and the password. The user may enter the configuration parameters in the parameter configuration interface by text input or drop-down box input.
[0067] According to the embodiments of the present disclosure, the target deployment process instance can represent a specific instance actually running according to the setting of the target deployment process. Specifically, the target deployment process can be instantiated into the target deployment process instance by using a workflow engine according to configuration parameters.
[0068] According to an embodiment of the present disclosure, after the target deployment process instance is successfully executed, if the deployed database cluster does not meet user requirements, the user can use the one-key destruction function to destroy the deployed database cluster.
[0069] According to an embodiment of the present disclosure, the target deployment process is instantiated according to the configuration parameters input by the user to obtain a target deployment process instance, and the automatic deployment of the database cluster is achieved by executing the target deployment process instance, eliminating the need for manual deployment of the database cluster and improving deployment efficiency.
[0070] Figure 3 A schematic diagram of generating a target deployment process instance according to an embodiment of the present disclosure is schematically shown.
[0071] like Figure 3 As shown, the deployment process library 310 stores multiple deployment processes, such as deployment process 1, deployment process 2, ..., deployment process n. An initial deployment process 320 matching the user's needs can be determined from the multiple deployment processes in the deployment process library 310, and a target deployment process 330 is determined according to the user's selection operation on the initial deployment process 320. A target deployment process instance 350 is generated according to the target deployment process 330 and the configuration parameters 340 input by the user.
[0072] According to an embodiment of the present disclosure, a target deployment process instance is generated according to the target deployment process and the configuration parameters input by the user in the parameter configuration interface, including: obtaining an initial script file corresponding to each deployment step in the target deployment process; generating a target script file according to the initial script file and the configuration parameters input by the user in the parameter configuration interface; and generating a target deployment process instance according to the target script file and the target deployment process.
[0073] According to an embodiment of the present disclosure, the initial script file may be a script file for implementing the deployment steps, and the initial script file does not include configuration parameters. Specifically, the initial script file may be a shell script, the initial script file may be a one-to-one correspondence between the deployment steps and the initial script file, and the initial script file may be pre-written and stored in the database cluster deployment platform.
[0074] According to an embodiment of the present disclosure, a correspondence table between deployment steps and script files may be used to determine the script file corresponding to the deployment step. Specifically, the correspondence table may include a script identifier of the script file.
[0075] According to an embodiment of the present disclosure, when acquiring an initial script file, the initial script file may be acquired from the storage location of the script file using a script identifier of the script file corresponding to the deployment step.
[0076] According to an embodiment of the present disclosure, the configuration parameter has a parameter identifier. When generating a target script file, the configuration parameter input by the user can be transferred to the initial script file according to the parameter identifier to obtain the target script file.
[0077] According to an embodiment of the present disclosure, the execution order between multiple target script files can be arranged according to the target deployment process, thereby obtaining a target deployment process instance.
[0078] According to an embodiment of the present disclosure, the configuration parameters input by the user are passed to the initial script file to obtain a target script file, and the target script file is used to implement automated deployment operations, thereby improving deployment efficiency.
[0079] According to an embodiment of the present disclosure, a target deployment process instance is executed to facilitate deployment of a database cluster, including: sending a deployment file corresponding to the target deployment process instance to a server where a database node is located according to an address parameter; and executing a target script file corresponding to each deployment step according to the execution order of each deployment step in the target deployment process, so as to configure the database node on the server.
[0080] According to an embodiment of the present disclosure, the sub-configuration parameter includes an address parameter of a server where the database node is located. Specifically, the address parameter may include an Internet Protocol (IP) address of the server.
[0081] According to an embodiment of the present disclosure, the deployment file may be pre-stored in the database cluster deployment platform, and the deployment file corresponding to the target deployment process instance may be determined according to the deployment database type information, deployment package version information, etc. of the target deployment process instance.
[0082] According to an embodiment of the present disclosure, the deployment steps may include environment initialization, downloading deployment files, installing deployment files, starting services, etc., and may also include operating system environment cleanup and domain name server (DNS) configuration, etc.
[0083] According to an embodiment of the present disclosure, the target script files corresponding to each deployment step can be executed in sequence according to the execution order of each deployment step and the logical relationship between the deployment steps. Specifically, the workflow engine can be used to call and execute the target script files corresponding to each deployment step in sequence.
[0084] According to the embodiments of the present disclosure, since the database nodes of the database cluster may be distributed on multiple servers, the database nodes can be configured for multiple servers at the same time. Specifically, the deployment file can be sent to all servers of the database cluster at the same time, and the target deployment process instance can be executed on each server to configure the database node.
[0085] According to the embodiments of the present disclosure, the deployment efficiency is improved by automatically sending the deployment file to the corresponding server and using the target script file to configure the database node.
[0086] Figure 4 The diagram schematically shows a target deployment process of a deployment cluster according to a specific embodiment of the present disclosure.
[0087] like Figure 4 As shown, the target deployment process of deploying a cluster includes operations S410 to S450.
[0088] In operation S410, parameters are initialized.
[0089] According to an embodiment of the present disclosure, parameter initialization can synthesize configuration parameters into a format required by subsequent deployment steps and verify the number of configuration parameters.
[0090] In operation S420, the medium is downloaded.
[0091] According to an embodiment of the present disclosure, the media download can send the media required for deploying the database cluster to the server.
[0092] In operation S430, the deployment file is issued.
[0093] According to an embodiment of the present disclosure, sending the deployment file may send the deployment file required for deploying the database cluster to the server.
[0094] In operation S440, the environment is initialized.
[0095] According to an embodiment of the present disclosure, the environment initialization may initialize the installation environment of the server, including the system file configuration of the server and the installation of deployment files.
[0096] In operation S450, the database is deployed.
[0097] According to an embodiment of the present disclosure, database deployment can call a script file to deploy database nodes locally on the server.
[0098] According to an embodiment of the present disclosure, the node expansion of the database cluster can also be performed in the database cluster deployment platform. Specifically, the target deployment process of node expansion can include parameter preparation, installation of expansion nodes, and information storage.
[0099] According to an embodiment of the present disclosure, the database cluster deployment method also includes: when it is determined that the target deployment process is not stored in the deployment process library, storing the target deployment process in the deployment process library; generating a target mapping relationship based on the target deployment process and the deployment requirements input by the user; and storing the target mapping relationship in the requirement mapping table.
[0100] According to an embodiment of the present disclosure, it is possible to determine whether a target deployment process has been stored in a deployment process library according to the deployment steps in the target deployment process and the execution information of each deployment step.
[0101] According to an embodiment of the present disclosure, when the target deployment process is not stored in the deployment process library, the target deployment process can be stored in the deployment process library, and the target deployment process can be directly used when other users have the same or similar requirements.
[0102] According to an embodiment of the present disclosure, a deployment process library stores a requirement mapping table, and the requirement mapping table includes a mapping relationship between deployment requirements and deployment processes.
[0103] According to an embodiment of the present disclosure, after storing the target deployment process, in order to recommend the target deployment process to other users with similar needs, a target mapping relationship can be generated according to the target deployment process and the deployment requirements input by the user, and the target mapping relationship can be stored in a requirement mapping table.
[0104] According to an embodiment of the present disclosure, when the target deployment process is stored in the deployment process library, the mapping relationship of the target deployment process can be obtained from the requirement mapping table. When it is determined that the mapping relationship does not include the target mapping relationship, the target mapping relationship is stored in the requirement mapping table.
[0105] According to an embodiment of the present disclosure, by storing the target deployment process and the deployment requirements corresponding to the target deployment process, other users can directly use the target deployment process when they have the same or similar requirements, thereby improving the richness of the deployment processes stored in the deployment process library and meeting diverse user needs.
[0106] According to an embodiment of the present disclosure, in response to receiving a deployment requirement input by a user, determining a deployment process in a deployment process library that matches the deployment requirement as an initial deployment process includes: determining a target deployment requirement from a requirement mapping table according to the deployment requirement input by the user; determining at least one deployment process that has a mapping relationship with the target deployment requirement according to the requirement mapping table; and determining the initial deployment process from at least one deployment process according to the respective evaluation scores of each deployment process in the at least one deployment process.
[0107] According to an embodiment of the present disclosure, the similarity between the target deployment requirement and the deployment requirement input by the user satisfies a predetermined condition. Specifically, when the deployment requirement identical to the deployment requirement input by the user is already included in the requirement mapping table, the deployment requirement identical to the deployment requirement input by the user can be determined as the target deployment requirement, and when the deployment requirement identical to the deployment requirement input by the user is not included in the requirement mapping table, the deployment requirement most similar to the deployment requirement input by the user can be determined as the target deployment requirement.
[0108] According to an embodiment of the present disclosure, when determining the target deployment requirements, priorities may be configured for requirements such as deployment scale, deployment scenario, and deployment database type, for example, the target deployment requirements may be determined preferentially from deployment requirements with the same deployment database type.
[0109] According to the embodiments of the present disclosure, since different users have different deployment habits, different deployment processes may be used even if the deployment requirements are the same, that is, there may be multiple deployment processes that have a mapping relationship with the target deployment requirements.
[0110] According to an embodiment of the present disclosure, each deployment process has an evaluation score, and the evaluation score can represent the quality of the deployment process. When determining the initial deployment process from at least one deployment process, the deployment process with the highest evaluation score can be determined as the initial deployment process.
[0111] According to an embodiment of the present disclosure, the user may also select other deployment processes in the deployment process library as the initial deployment process, or re-customize a new deployment process, without any restriction.
[0112] According to the embodiments of the present disclosure, the most matching initial deployment process is determined based on the evaluation scores of user requirements and deployment processes, thereby improving the matching degree between the initial deployment process and user requirements, thereby improving the user experience.
[0113] According to an embodiment of the present disclosure, the database cluster deployment method also includes: in response to determining that the execution of the target deployment process instance is completed, obtaining the execution time of the target deployment process instance; and generating an evaluation score for the target deployment process based on the execution time, the number of times the target deployment process is used, and the user's evaluation information on the target deployment process.
[0114] According to an embodiment of the present disclosure, the execution duration can be calculated based on the start time and end time of the target deployment process instance, and the deployment speed of the target deployment process in the actual deployment process can be evaluated based on the execution duration.
[0115] According to an embodiment of the present disclosure, the number of times the target deployment process is used may be the number of times the target deployment process is used after being created. The greater the number of times the target deployment process is used, the more the target deployment process meets the deployment requirements of the user.
[0116] According to an embodiment of the present disclosure, after the target deployment process instance is executed, an evaluation interface may be displayed to the user, and the user may input evaluation information for the target deployment process in the evaluation interface.
[0117] According to an embodiment of the present disclosure, when the target deployment process instance fails to execute, or the user destroys the database cluster deployed using the target deployment process instance, the evaluation score of the target deployment process may be reduced accordingly.
[0118] According to an embodiment of the present disclosure, by utilizing various information including execution time, number of uses, and user evaluation information, the evaluation score of the target deployment process is determined, thereby improving the accuracy of the evaluation score, so that the initial deployment process determined according to the evaluation score can better meet user needs and improve user experience.
[0119] Figure 5 The schematic diagram shows the structure of a database cluster deployment platform according to a specific embodiment of the present disclosure.
[0120] like Figure 5 As shown, the database cluster deployment platform includes a deployment process library 510, a process arrangement module 520, a file management module 530, a resource management module 540, an information integration module 550 and a user evaluation module 560. Through the database cluster deployment platform, a database cluster can be deployed in a server 570 where a database cluster is to be deployed.
[0121] According to an embodiment of the present disclosure, the deployment process library 510 can be used to store the target deployment process generated after the user performs a custom operation. In addition, the deployment process library 510 also stores a requirement mapping table, which includes a mapping relationship between deployment requirements and deployment processes. The requirement mapping table can be used to recommend deployment processes that meet the deployment requirements to users.
[0122] According to the embodiment of the present disclosure, the process orchestration module 520 mainly completes the definition of deployment steps in the deployment process, component definition, blueprint definition, service definition and the flow drive of the target deployment process instance. Specifically, the process orchestration module 520 can be implemented using a process engine to realize the drawing and assembly capabilities of deployment steps, components and blueprints.
[0123] According to an embodiment of the present disclosure, the resource management module 530 can manage the information of the server where the database node is to be deployed, including basic information such as the server's IP address, CPU size, and memory size, and can also manage relevant configuration information of a successfully deployed database cluster.
[0124] According to an embodiment of the present disclosure, the file management module 540 can store the media and script files required for deployment, upload and distribute the media and script files, and perform version control capabilities for each medium.
[0125] According to the embodiments of the present disclosure, since the database cluster deployment platform needs to adapt to different database types, it corresponds to different installation configuration files, different configuration media, and different deployment processes. Therefore, the information integration module 550 needs to integrate the required configuration parameters and deployment process according to the database type selected by the user in the front-end interface and send them to the process orchestration module 520 for actual deployment.
[0126] According to the embodiments of the present disclosure, the information integration module 550 can be used for information collection and information processing of various database types. Information collection refers to collecting relevant deployment information of the selected database, including deployment files, address parameters, and memory resource configuration parameters; information processing mainly involves arranging the parameters of the collected information according to the interface or shell script file input format, and associating it with the target deployment process instance to deploy the database cluster.
[0127] According to an embodiment of the present disclosure, the user evaluation module 560 can be used to construct an evaluation system for the deployment process, and score the deployment process according to the frequency of use of the deployment process, the execution time, whether the deployment process is destroyed and reconstructed, and the user's evaluation information on the deployment process. When the user is deploying, the deployment process that meets the deployment requirements can be displayed according to the evaluation score from high to low.
[0128] Based on the above database cluster deployment method, the present disclosure also provides a database cluster deployment device. Figure 6 The device is described in detail.
[0129] Figure 6 The structural block diagram of the database cluster deployment device according to an embodiment of the present disclosure is schematically shown.
[0130] like Figure 6 As shown, the database cluster deployment device 600 of this embodiment includes a process matching module 610 , a step selection module 620 , a step combination module 630 and a cluster deployment module 640 .
[0131] The process matching module 610 is used to respond to the deployment requirements input by the user and determine the deployment process in the deployment process library that matches the deployment requirements as the initial deployment process, wherein the deployment requirements at least include the deployment scale, deployment scenario and deployment database type of the database cluster, and the initial deployment process includes multiple initial deployment steps. In one embodiment, the process matching module 610 can be used to perform the operation S210 described above, which will not be repeated here.
[0132] The step selection module 620 is used to determine the initial deployment step selected by the user as the target deployment step according to the user's selection operation for multiple initial deployment steps. In one embodiment, the step selection module 620 can be used to perform the operation S220 described above, which will not be repeated here.
[0133] The step combination module 630 is used to combine the target deployment step and the initial deployment steps that have a dependency relationship with the target deployment step in the multiple initial deployment steps to obtain the target deployment process. In one embodiment, the step combination module 630 can be used to perform the operation S230 described above, which will not be repeated here.
[0134] The cluster deployment module 640 is used to deploy the database cluster according to the target deployment process. In one embodiment, the cluster deployment module 640 can be used to perform the operation S240 described above, which will not be described in detail here.
[0135] According to an embodiment of the present disclosure, the cluster deployment module 640 includes a configuration presentation submodule, an instance generation submodule, and an instance execution submodule.
[0136] The configuration display submodule is used to display the parameter configuration interface corresponding to the target deployment process.
[0137] The instance generation submodule is used to generate a target deployment process instance according to the target deployment process and configuration parameters input by the user in the parameter configuration interface, wherein the configuration parameters include sub-configuration parameters for at least one database node in the database cluster.
[0138] The instance execution submodule is used to execute the target deployment process instance to deploy the database cluster.
[0139] According to an embodiment of the present disclosure, the instance generation submodule includes a script acquisition unit, a script generation unit, and an instance generation unit.
[0140] The script acquisition unit is used to acquire an initial script file corresponding to each deployment step in the target deployment process, wherein the initial script file does not include configuration parameters.
[0141] The script generation unit is used to generate a target script file according to the initial script file and the configuration parameters input by the user in the parameter configuration interface.
[0142] The instance generation unit is used to generate a target deployment process instance according to a target script file and a target deployment process.
[0143] According to an embodiment of the present disclosure, the instance execution submodule includes a file sending unit and a script execution unit.
[0144] The file sending unit is used to send the deployment file corresponding to the target deployment process instance to the server where the database node is located according to the address parameter.
[0145] The script execution unit is used to execute the target script file corresponding to each deployment step according to the execution order of each deployment step in the target deployment process, so as to configure the database node on the server.
[0146] According to an embodiment of the present disclosure, the above deployment process library stores a requirement mapping table, which includes a mapping relationship between deployment requirements and deployment processes. The database cluster deployment device 600 also includes a process storage module, a relationship generation module and a relationship storage module.
[0147] The process storage module is used to store the target deployment process in the deployment process library when it is determined that the target deployment process is not stored in the deployment process library.
[0148] The relationship generation module is used to generate a target mapping relationship according to the target deployment process and the deployment requirements input by the user.
[0149] The relationship storage module is used to store the target mapping relationship into the demand mapping table.
[0150] According to an embodiment of the present disclosure, the process matching module 610 includes a demand determination submodule, a process mapping submodule, and a process mapping submodule.
[0151] According to an embodiment of the present disclosure, the requirement determination submodule is used to determine a target deployment requirement from a requirement mapping table according to a deployment requirement input by a user, wherein the similarity between the target deployment requirement and the deployment requirement input by the user satisfies a predetermined condition.
[0152] According to an embodiment of the present disclosure, the process mapping submodule is used to determine at least one deployment process having a mapping relationship with a target deployment requirement according to a requirement mapping table.
[0153] According to an embodiment of the present disclosure, the process mapping submodule is used to determine at least one deployment process having a mapping relationship with a target deployment requirement according to a requirement mapping table.
[0154] According to an embodiment of the present disclosure, the instance execution submodule further includes a duration acquisition unit and an evaluation generation unit.
[0155] The duration acquisition unit is used to acquire the execution duration of the target deployment process instance in response to determining that the target deployment process instance is executed and completed.
[0156] The evaluation generation unit is used to generate an evaluation score of the target deployment process according to the execution time, the number of times the target deployment process is used, and the user's evaluation information on the target deployment process.
[0157] According to an embodiment of the present disclosure, any multiple modules of the process matching module 610, the step selection module 620, the step combination module 630 and the cluster deployment module 640 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the process matching module 610, the step selection module 620, the step combination module 630 and the cluster deployment module 640 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the process matching module 610, the step selection module 620, the step combination module 630 and the cluster deployment module 640 may be at least partially implemented as a computer program module, and when the computer program module is executed, the corresponding function may be executed.
[0158] Figure 7 A block diagram of an electronic device suitable for implementing a database cluster deployment method according to an embodiment of the present disclosure is schematically shown.
[0159] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 to a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (for example, an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0160] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0161] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the input / output (I / O) interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the input / output (I / O) interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.
[0162] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0163] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.
[0164] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the database cluster deployment method provided by the embodiment of the present disclosure.
[0165] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 701. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0166] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0167] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0168] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0169] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0170] It will be appreciated by those skilled in the art that the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations or combinations are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments of the present disclosure may be combined and / or combined in a variety of ways. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0171] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A database cluster deployment method, characterized in that: The method comprises: In response to receiving a deployment requirement input by a user, determining a deployment process in a deployment process library that matches the deployment requirement as an initial deployment process, wherein the deployment requirement at least includes a deployment scale, a deployment scenario, and a deployment database type of a database cluster, and the initial deployment process includes a plurality of initial deployment steps; According to the selection operation of the user on the multiple initial deployment steps, determining the initial deployment step selected by the user as the target deployment step; Combining the target deployment step and the initial deployment steps having a dependency relationship with the target deployment step among the multiple initial deployment steps to obtain a target deployment process; and Deploy the database cluster according to the target deployment process.
2. The method according to claim 1, characterized in that The step of deploying the database cluster according to the target deployment process includes: Displaying a parameter configuration interface corresponding to the target deployment process; generating the target deployment process instance according to the target deployment process and the configuration parameters input by the user in the parameter configuration interface, wherein the configuration parameters include sub-configuration parameters for at least one database node in the database cluster; and The target deployment process instance is executed to deploy the database cluster.
3. The method according to claim 2, characterized in that The step of generating the target deployment process instance according to the target deployment process and the configuration parameters input by the user in the parameter configuration interface includes: Obtaining an initial script file corresponding to each deployment step in the target deployment process, wherein the initial script file does not include configuration parameters; Generate a target script file according to the initial script file and the configuration parameters input by the user in the parameter configuration interface; and The target deployment process instance is generated according to the target script file and the target deployment process.
4. The method according to claim 2, characterized in that: The sub-configuration parameters include the address parameters of the server where the database node is located, and the executing the target deployment process instance to deploy the database cluster includes: According to the address parameter, sending the deployment file corresponding to the target deployment process instance to the server where the database node is located; and According to the execution order of each deployment step in the target deployment process, the target script file corresponding to each deployment step is executed to configure the database node on the server.
5. The method according to claim 1, characterized in that: The deployment process library stores a requirement mapping table, wherein the requirement mapping table includes a mapping relationship between deployment requirements and deployment processes. The method further includes: If it is determined that the target deployment process is not stored in the deployment process library, storing the target deployment process in the deployment process library; Generate a target mapping relationship according to the target deployment process and the deployment requirements input by the user; and The target mapping relationship is stored in the demand mapping table.
6. The method according to claim 5, characterized in that In response to receiving the deployment requirement input by the user, determining a deployment process in the deployment process library that matches the deployment requirement as the initial deployment process includes: Determining a target deployment requirement from the requirement mapping table according to the deployment requirement input by the user, wherein a similarity between the target deployment requirement and the deployment requirement input by the user satisfies a predetermined condition; Determining, according to the requirement mapping table, at least one deployment process having a mapping relationship with the target deployment requirement; and The initial deployment process is determined from the at least one deployment process according to the evaluation score of each deployment process in the at least one deployment process.
7. The method according to claim 4, characterized in that The method further comprises: In response to determining that the target deployment process instance is executed completely, obtaining the execution duration of the target deployment process instance; and An evaluation score of the target deployment process is generated according to the execution time, the number of times the target deployment process is used, and the evaluation information of the user on the target deployment process.
8. A database cluster deployment device, characterized in that: The device comprises: A process matching module, configured to, in response to receiving a deployment requirement input by a user, determine a deployment process in a deployment process library that matches the deployment requirement as an initial deployment process, wherein the deployment requirement at least includes a deployment scale, a deployment scenario, and a deployment database type of a database cluster, and the initial deployment process includes a plurality of initial deployment steps; A step selection module, configured to determine, according to the user's selection operation on the multiple initial deployment steps, the initial deployment step selected by the user as a target deployment step; a step combining module, configured to combine the target deployment step and the initial deployment steps having a dependency relationship with the target deployment step among the multiple initial deployment steps to obtain a target deployment process; and The cluster deployment module is used to deploy the database cluster according to the target deployment process.
9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
11. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.