[go: up one dir, main page]

CN116244271A - Deployment method and device of distributed database, electronic equipment and readable medium - Google Patents

Deployment method and device of distributed database, electronic equipment and readable medium Download PDF

Info

Publication number
CN116244271A
CN116244271A CN202211713606.0A CN202211713606A CN116244271A CN 116244271 A CN116244271 A CN 116244271A CN 202211713606 A CN202211713606 A CN 202211713606A CN 116244271 A CN116244271 A CN 116244271A
Authority
CN
China
Prior art keywords
database
node
deployed
installation
deployment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211713606.0A
Other languages
Chinese (zh)
Inventor
袁威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jinzhuan Xinke Co Ltd
Original Assignee
Jinzhuan Xinke Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jinzhuan Xinke Co Ltd filed Critical Jinzhuan Xinke Co Ltd
Priority to CN202211713606.0A priority Critical patent/CN116244271A/en
Publication of CN116244271A publication Critical patent/CN116244271A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/211Schema design and management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to a deployment method, a deployment device, electronic equipment and a readable medium of a distributed database, wherein the method comprises the following steps: deploying a master control module on a target node in a plurality of nodes to be deployed, and deploying a host agent module on each node to be deployed; generating installation files required by installation of the database components for each node to be deployed through the master control module, and issuing the installation files to each host agent module; installing a database component for the corresponding node to be deployed according to the installation file through the host agent module to obtain the corresponding database node; all database nodes are built into a database cluster, and a mutually trusted environment is configured for the database cluster to complete distributed database deployment. The rapid deployment of the distributed database is completed through interaction of the master control module deployed on the node and the host agent module, so that the problem of low deployment efficiency of the large-scale distributed cluster is solved.

Description

Deployment method and device of distributed database, electronic equipment and readable medium
Technical Field
The present disclosure relates to the field of database technologies, and in particular, to a method and apparatus for deploying a distributed database, an electronic device, and a readable medium.
Background
With the advent of the data age, databases have played a critical role in various fields as an important infrastructure, and with the combination of databases and network technologies, distributed databases have evolved. The distributed database platform provides unified database service through a shared-nothing architecture, and horizontal expansion of database capacity is realized through adding database nodes. However, the conventional deployment mode is manual deployment, and the efficiency of manual deployment on the large-scale distributed clusters is low.
In view of the above problems, no effective solution has been proposed at present.
Disclosure of Invention
The application provides a deployment method, a deployment device, electronic equipment and a readable medium of a distributed database, so as to solve the technical problem of low manual deployment efficiency of a large-scale distributed cluster.
According to an aspect of an embodiment of the present application, there is provided a method for deploying a distributed database, including: deploying a master control module on a target node in a plurality of nodes to be deployed, and deploying a host agent module on each node to be deployed; generating installation files required by installation of the database components for each node to be deployed through the master control module, and issuing the installation files to each host agent module; installing a database component for the corresponding node to be deployed according to the installation file through the host agent module to obtain the corresponding database node; all database nodes are built into a database cluster, and a mutually trusted environment is configured for the database cluster to complete distributed database deployment.
Optionally, deploying the master control module on a target node in the plurality of nodes to be deployed, and deploying the host agent module on each node to be deployed includes: deploying a master control module on a target node, wherein the target node is a preselected node in a plurality of nodes to be deployed; generating deployment files matched with each node to be deployed; and deploying the host agent module on each node to be deployed by utilizing each deployment file.
Optionally, generating, by the master control module, an installation file required for installing the database component for each node to be deployed, and issuing the installation file to each host agent module includes: generating configuration files required by database component installation for each node to be deployed; acquiring an installation medium matched with a node to be deployed; determining the configuration file and the installation medium as installation files; and under the condition that an installation instruction is received, each installation file is issued to a host agent module of the node to be deployed, which corresponds to the installation file.
Optionally, before generating the installation file required for installing the database component, the method further comprises: determining the port quantity range required by each node to be deployed for operating the database component through a master control module; acquiring available ports on a node to be deployed through a host agent module, wherein the number of the available ports is in a port number range; the available ports are assigned to database components to be installed corresponding to the nodes to be deployed.
Optionally, building all database nodes into a database cluster comprises: under the condition that the database components of all the database nodes are determined to be installed, calling a management interface through a master control module; each database node is built into a database cluster through a management interface.
Optionally, configuring the mutually trusted environment for the database cluster includes: generating respective public keys and private keys at nodes to be deployed; summarizing public keys of all nodes to be deployed to a target authentication file; and distributing the target authentication file to each node to be deployed so as to avoid dense interaction among database components of each node to be deployed.
Optionally, after completing the distributed database deployment, the method further comprises: performing functional verification on database components in each database node through a host agent module to obtain verification results; and displaying the verification result on a display end so as to display the deployment result of the distributed database to the user.
According to another aspect of the embodiments of the present application, there is provided a deployment apparatus for a distributed database, including: the module deployment unit is used for deploying the master control module on a target node in the plurality of nodes to be deployed and deploying the host agent module on each node to be deployed; the file generation unit is used for generating installation files required by the installation of the database components for each node to be deployed through the master control module and issuing the installation files to each host agent module; the assembly installation unit is used for installing database assemblies for the corresponding nodes to be deployed according to the installation files through the host agent module to obtain the corresponding database nodes; the cluster building unit is used for building all the database nodes into a database cluster and configuring a mutually trusted environment for the database cluster so as to complete distributed database deployment.
According to another aspect of the embodiments of the present application, there is provided an electronic device including a memory, a processor, a communication interface, and a communication bus, where the memory stores a computer program executable on the processor, the memory, the processor, and the processor communicate through the communication bus and the communication interface, and the processor executes the steps of the method.
According to another aspect of embodiments of the present application, there is also provided a computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the above-described method.
Compared with the related art, the technical scheme provided by the embodiment of the application has the following advantages:
the application discloses a deployment method of a distributed database, which comprises the following steps: deploying a master control module on a target node in a plurality of nodes to be deployed, and deploying a host agent module on each node to be deployed; generating installation files required by installation of the database components for each node to be deployed through the master control module, and issuing the installation files to each host agent module; installing a database component for the corresponding node to be deployed according to the installation file through the host agent module to obtain the corresponding database node; all database nodes are built into a database cluster, and a mutually trusted environment is configured for the database cluster to complete distributed database deployment. The rapid deployment of the distributed database is completed through interaction of the master control module deployed on the node and the host agent module, so that the problem of low manual deployment efficiency of the large-scale distributed cluster is solved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the related art, the drawings that are required to be used in the embodiments or the related technical descriptions will be briefly described, and it is obvious to those skilled in the art that other drawings can be obtained according to these drawings without inventive effort.
FIG. 1 is a flow chart of an alternative method of deploying a distributed database according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an optional master control module of a distributed database according to an embodiment of the present application;
FIG. 3 is a block diagram of an alternative distributed database deployment apparatus provided in accordance with an embodiment of the present application;
fig. 4 is a schematic structural diagram of an alternative electronic device according to an embodiment of the present application.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present application based on the embodiments herein.
In the following description, suffixes such as "module", "component", or "unit" for representing elements are used only for facilitating the description of the present application, and are not of specific significance per se. Thus, "module" and "component" may be used in combination.
With the advent of the data explosion age, databases have played a key role in the fields of commercial banks, operators, securities, railway ticket systems, national grids, and the like as an important infrastructure. Distributed databases have evolved with the combination of databases and networking technologies. The distributed database platform provides unified database service through a shared-nothing architecture, and horizontal expansion of database capacity is realized through adding database nodes. But the problems of high installation capacity, more and more difficult deployment, untimely capacity shrinkage and expansion and the like are caused. Conventional manual deployment methods require human cleaning of the environment, shutdown of firewalls, installation of necessary dependent packages, uploading of deployment packages to machines, manual modification of configuration files, manual selection of deployment paths, manual creation of connection instance association of all components, manual configuration of mutual trust, and the like. For large-scale deployment, the manual deployment mode is low in efficiency, and great labor and time waste are caused.
To solve the problems mentioned in the background art, according to an aspect of the embodiments of the present application, there is provided a deployment method of a distributed database, as shown in fig. 1, including:
step 101, deploying a master control module on a target node in a plurality of nodes to be deployed, and deploying a host agent module on each node to be deployed;
step 103, generating installation files required by installation of the database components for each node to be deployed through the master control module, and issuing the installation files to each host agent module;
step 105, installing a database component for the corresponding node to be deployed according to the installation file through the host agent module to obtain the corresponding database node;
and 107, constructing all database nodes into database clusters, and configuring a mutually trusted environment for the database clusters to finish distributed database deployment.
The method and the device are applied to the technical field of computers, and particularly applied to a distributed database.
The method specifically comprises the following steps: selecting a node deployment master control module from a plurality of nodes to be deployed, and taking charge of deployment of a host agent, issuing an installation medium, automatically distributing a database component port, generating and issuing a database component configuration file, analyzing and summarizing logs, displaying progress, starting a database component, establishing mutual trust, verifying functions after deployment and the like; and installing host agent modules on all nodes to be deployed, wherein the host agent modules provide the functions of port occupation checking, uploading installation media, transmitting logs, executing commands and the like.
The deployment mode mainly comprises a local single machine, local high availability, local same-city high availability and local same-city different-place high availability.
The embodiment provided by the application has the advantages of simple operation steps and high usability, supports mixed deployment of multiple operation types, and can deploy a large-scale distributed cluster with higher efficiency.
As an alternative embodiment, deploying the master control module on a target node of the plurality of nodes to be deployed, and deploying the host agent module on each node to be deployed includes: deploying a master control module on a target node, wherein the target node is a preselected node in a plurality of nodes to be deployed; generating deployment files matched with each node to be deployed; and deploying the host agent module on each node to be deployed by utilizing each deployment file.
Preferably, to ensure that the deployment can be performed smoothly, the local environment needs to be initialized before the deployment, which specifically includes: and in the state that the local machine does not have a yum source, hanging the local iso image, installing httpd service, and hanging the shared iso image, thereby providing yum sources for other deployment nodes for performing dependent soft installation. In addition, a third party library necessary for the operation of the master control module is installed and the system configuration of the operating system is modified.
Optionally, the nodes to be deployed can communicate with each other, and the node for deploying the master control module can be selected randomly or planned and selected by a user in advance according to service requirements.
The distributed database deployment method and device provide configuration files such as quick deployment, custom deployment and the like, facilitate one-key deployment of distributed databases of different cognitive groups, and complete the distributed database deployment through interaction between the master control module and the host agent module. By installing the host agent module in each node device in advance, which is equivalent to a transfer station, each step is realized through the interaction between the host agent module and the master control module, the login and the logout of the machine are not needed frequently, the environmental influence of different operating systems is eliminated, the execution result of each step is obtained more accurately, and the execution failure rate is less.
As an optional embodiment, generating, by the master control module, an installation file required for installing the database component for each node to be deployed, and issuing the installation file to each host agent module includes: generating configuration files required by database component installation for each node to be deployed; acquiring an installation medium matched with a node to be deployed; determining the configuration file and the installation medium as installation files; and under the condition that an installation instruction is received, each installation file is issued to a host agent module of the node to be deployed, which corresponds to the installation file.
And generating configuration files required for installing the database components for each node to be deployed. Wherein, the configuration file is generated by each component installation template and the ini installation configuration file and the automatically distributed component port, and the generated configuration file comprises: the database component applies a user name, password, installation path, component parameters, data directory, etc.
Optionally, the installation medium is generated when generating a deployment file matching each node to be deployed.
Specifically, an installation medium corresponding to a deployment node is a baseline package, and the baseline package of the database component on the node is obtained mainly by processing product packages of different operating systems, wherein the product packages can be simply understood as software installation packages, and the product packages necessary for installing the database component on the different operating systems are combined.
The master control module judges the operating system of the node to be deployed through the host agent module, and issues a database component baseline package to each node to be deployed.
Specifically, each database component installation command is issued, and then configuration files and installation media required by database component installation are issued to each node to be deployed as installation files through the master control module.
Preferably, each host agent module performs database component installation according to the installation file.
Optionally, after the installation of the host agent module is completed, judging whether the installation is successful by the master control module includes: and starting the polling service, periodically acquiring the installation log of the database components through the host agent module, analyzing the log content, and judging whether each database component is successfully installed.
For example, the component installation log is generated after the component installation is started, the master control module acquires log content once every preset time (for example, 30 seconds), the maximum duration is 30 minutes, whether keywords error or failure or success exist in the log is analyzed, the error/failure represents failure, and the success represents success.
As an alternative embodiment, before generating the installation file required for installation of the database component, the method further comprises: determining the port quantity range required by each node to be deployed for operating the database component through a master control module; acquiring available ports on a node to be deployed through a host agent module, wherein the number of the available ports is in a port number range; the available ports are assigned to database components to be installed corresponding to the nodes to be deployed.
By automatically distributing the ports, the database component installation and operation failure caused by the occupation of the ports are avoided.
As an alternative embodiment, building all database nodes into a database cluster comprises: under the condition that the database components of all the database nodes are determined to be installed, calling a management interface through a master control module; each database node is built into a database cluster through a management interface.
Specifically, after each database component is installed, the master control module calls a distributed database management node interface to link each database component together, so as to obtain a database cluster, and provide services to the outside in a unified way.
Optionally, the components of the distributed database are started in a certain order, and the components comprise a management component, a global transaction component, a calculation component, a storage component and the like.
As an alternative embodiment, configuring a mutually trusted environment for a database cluster includes: generating respective public keys and private keys at nodes to be deployed; summarizing public keys of all nodes to be deployed to a target authentication file; and distributing the target authentication file to each node to be deployed so as to avoid dense interaction among database components of each node to be deployed.
Optionally, after the mutually trusted environment is configured, secret-free verification can be performed to ensure secret-free interaction between database components of each node to be deployed.
The mutual trust environment is the mutual trust between storage nodes, namely the secret login between storage component users is avoided, and the mutual trust environment is used for the functions of distributed database data redistribution and the like.
Distributed database data redistribution is implemented by a host agent module, comprising: transmitting the data of the data node fragment 1 to the node of the fragment 2 through a host agent module of the service of the data node fragment 2; otherwise, the data of the slice 2 can be transmitted to the node of the slice 1 through the host agent module of the server of the data node slice 1, so that the data transmission among different slices is realized, and the function of data redistribution is achieved.
As an alternative embodiment, after completing the distributed database deployment, the method further comprises: performing functional verification on database components in each database node through a host agent module to obtain verification results; and displaying the verification result on a display end so as to display the deployment result of the distributed database to the user.
Specifically, after the distributed database is deployed, the downlink, the process and the function of each component are verified, so that the deployed distributed database can be ensured to normally provide services.
The application discloses a deployment method of a distributed database, which comprises the following steps: deploying a master control module on a target node in a plurality of nodes to be deployed, and deploying a host agent module on each node to be deployed; generating installation files required by installation of the database components for each node to be deployed through the master control module, and issuing the installation files to each host agent module; installing a database component for the corresponding node to be deployed according to the installation file through the host agent module to obtain the corresponding database node; all database nodes are built into a database cluster, and a mutually trusted environment is configured for the database cluster to complete distributed database deployment. The rapid deployment of the distributed database is completed through interaction of the master control module deployed on the node and the host agent module, so that the problem of low deployment efficiency of the large-scale distributed cluster is solved.
According to another aspect of the embodiments of the present application, there is provided a one-key deployment apparatus of a distributed database, as shown in fig. 2, a master control module 20 is configured to control the whole flow of deployment of the distributed database, where the master control module 20 includes:
the host agent module 201 is configured to issue, to the deployment nodes of different operating systems, installation media of the different operating systems, port inspection within a range of the database component, transmission of installation logs of the database component, and execution of an installation command;
the component configuration generating module 202 is configured to generate each component installation configuration file according to each component installation configuration template, including: component installation catalogs, data catalogs, component application users, passwords, component operation parameters and the like;
the component installation module 203 is used for controlling the database component installation flow, and comprises the steps of generating a temporary component installation catalog, integrating an installation configuration file, a baseline package and generating a component installation log;
a main selection module 204, configured to select a main management node from a plurality of management nodes according to priority to provide service when deploying the high-availability distributed database;
the component starting module 205 is configured to start the distributed database components according to a certain sequence, determine whether the components are started successfully, and output a summary of the starting results;
the configuration mutually trusted module 206 is used for realizing the secret-free login between users of the storage components on different deployment nodes and realizing the function of data redistribution of the database;
the environment checking module 207 is used for functional verification after the distributed database is deployed and displaying various checking results.
All of the above modules may be integrated into a computer device for use as an all-in-one machine.
According to another aspect of the embodiments of the present application, there is provided a deployment apparatus of a distributed database, as shown in fig. 3, including:
a module deployment unit 302, configured to deploy a master control module on a target node among a plurality of nodes to be deployed, and deploy a host agent module on each node to be deployed;
the file generating unit 304 is configured to generate, by using the master control module, an installation file required for installing the database component for each node to be deployed, and send the installation file to each host agent module;
the component installation unit 306 is configured to install, by using the host agent module, a database component for a corresponding node to be deployed according to the installation file, so as to obtain a corresponding database node;
the cluster building unit 308 is configured to build all database nodes into a database cluster, and configure a mutually trusted environment for the database cluster to complete distributed database deployment.
It should be noted that, the module deployment unit 302 in this embodiment may be used to perform step 101 in the embodiment of the present application, the file generation unit 304 in this embodiment may be used to perform step 103 in the embodiment of the present application, the component installation unit 306 in this embodiment may be used to perform step 105 in the embodiment of the present application, and the cluster building unit 308 in this embodiment may be used to perform step 107 in the embodiment of the present application.
Optionally, the module deployment unit 302 is further configured to deploy the master control module on a target node, where the target node is a preselected node among the plurality of nodes to be deployed; generating deployment files matched with each node to be deployed; and deploying the host agent module on each node to be deployed by utilizing each deployment file.
Optionally, the file generating unit 304 is further configured to generate a configuration file required for installing the database component for each node to be deployed; acquiring an installation medium matched with a node to be deployed; determining the configuration file and the installation medium as installation files; and under the condition that an installation instruction is received, each installation file is issued to a host agent module of the node to be deployed, which corresponds to the installation file.
Optionally, the device further comprises a port allocation unit, which is used for determining the port number range required by each node to be deployed for running the database component through the master control module before generating the installation file required by the installation of the database component; acquiring available ports on a node to be deployed through a host agent module, wherein the number of the available ports is in a port number range; the available ports are assigned to database components to be installed corresponding to the nodes to be deployed.
Optionally, the cluster building unit 308 is further configured to invoke the management interface through the master control module if it is determined that the database components of the respective database nodes are installed; each database node is built into a database cluster through a management interface.
Optionally, the cluster building unit 308 is further configured to generate a public key and a private key of each node to be deployed; summarizing public keys of all nodes to be deployed to a target authentication file; and distributing the target authentication file to each node to be deployed so as to avoid dense interaction among database components of each node to be deployed.
Optionally, the device further comprises a verification unit, which is used for performing functional verification on the database components in each database node through the host agent module after the distributed database deployment is completed, so as to obtain a verification result; and displaying the verification result on a display end so as to display the deployment result of the distributed database to the user.
It should be noted that the above modules are the same as examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above embodiments.
According to another aspect of the embodiments of the present application, as shown in fig. 4, the present application provides an electronic device, including a memory 401, a processor 403, a communication interface 405 and a communication bus 407, where the memory 401 stores a computer program that can be executed on the processor 403, and the memory 401 and the processor 403 communicate with each other through the communication interface 405 and the communication bus 407, and the processor 403 executes the steps of the method.
The memory and the processor in the electronic device communicate with the communication interface through a communication bus. The communication bus may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus, or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, among others. The communication bus may be classified as an address bus, a data bus, a control bus, or the like.
The memory may include random access memory (Random Access Memory, RAM) or non-volatile memory (non-volatile memory), such as at least one disk memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
There is also provided, in accordance with yet another aspect of an embodiment of the present application, a computer readable medium having non-volatile program code executable by a processor.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments, and this embodiment is not described herein.
In specific implementation, the embodiments of the present application may refer to the above embodiments, which have corresponding technical effects.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For a hardware implementation, the processing units may be implemented within one or more application specific integrated circuits (Application Specific Integrated Circuits, ASIC), digital signal processors (Digital Signal Processing, DSP), digital signal processing devices (DSP devices, DSPD), programmable logic devices (Programmable Logic Device, PLD), field programmable gate arrays (Field-Programmable Gate Array, FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented by means of units that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially or, what contributes to the prior art, or part of the technical solutions, may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc. It should be noted that in this document, relational terms such as "first" and "second" and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing is merely a specific embodiment of the application to enable one skilled in the art to understand or practice the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for deploying a distributed database, comprising:
deploying a master control module on a target node in a plurality of nodes to be deployed, and deploying a host agent module on each node to be deployed;
generating installation files required by installation of the database components for each node to be deployed through the master control module, and issuing the installation files to each host agent module;
installing the database component for the corresponding node to be deployed according to the installation file by the host agent module to obtain a corresponding database node;
and constructing all the database nodes into database clusters, and configuring a mutually trusted environment for the database clusters to finish distributed database deployment.
2. The method of claim 1, wherein deploying the master control module on a target node of the plurality of nodes to be deployed, and deploying the host agent module on each of the nodes to be deployed comprises:
deploying a master control module on the target node, wherein the target node is a preselected node in a plurality of nodes to be deployed;
generating deployment files matched with the nodes to be deployed;
and deploying the host agent module on each node to be deployed by utilizing each deployment file.
3. The method of claim 1, wherein the generating, by the master control module, an installation file required for installing a database component for each node to be deployed, and issuing the installation file to each host agent module comprises:
generating configuration files required by the installation of the database components for each node to be deployed;
acquiring an installation medium matched with the node to be deployed;
determining the configuration file and the installation medium as the installation file;
and under the condition that an installation instruction is received, each installation file is issued to the host agent module of the node to be deployed corresponding to the installation file.
4. The method of claim 1, wherein prior to generating the installation file required for installation of the database component, the method further comprises:
determining the port number range required by each node to be deployed for running the database component through the master control module;
acquiring available ports on the node to be deployed through the host agent module, wherein the number of the available ports is in the range of the number of the ports;
and distributing the available ports to the database components to be installed, which correspond to the nodes to be deployed.
5. The method of claim 1, wherein said building all of said database nodes into a database cluster comprises:
under the condition that the database components of each database node are determined to be installed, a management interface is called through the master control module;
and constructing each database node into the database cluster through the management interface.
6. The method of claim 1, wherein said configuring a mutually trusted environment for said database cluster comprises:
generating respective public keys and private keys at the nodes to be deployed;
summarizing the public keys of the nodes to be deployed to a target authentication file;
and distributing the target authentication file to each node to be deployed so as to avoid dense interaction among the database components of each node to be deployed.
7. The method of claim 1, wherein after completing the distributed database deployment, the method further comprises:
performing functional verification on the database components in each database node through the host agent module to obtain verification results;
and displaying the verification result on a display end so as to display the deployment result of the distributed database to a user.
8. A deployment apparatus for a distributed database, comprising:
the system comprises a module deployment unit, a host agent module, a control unit and a control unit, wherein the module deployment unit is used for deploying the master control module on a target node in a plurality of nodes to be deployed and deploying the host agent module on each node to be deployed;
the file generation unit is used for generating installation files required by the installation of the database components for each node to be deployed through the master control module and issuing the installation files to each host agent module;
the component installation unit is used for installing the database component for the corresponding node to be deployed according to the installation file through the host agent module to obtain the corresponding database node;
and the cluster building unit is used for building all the database nodes into a database cluster and configuring a mutually trusted environment for the database cluster so as to complete distributed database deployment.
9. An electronic device comprising a memory, a processor, a communication interface and a communication bus, said memory storing a computer program executable on said processor, said memory, said processor communicating with said communication interface via said communication bus, characterized in that said processor, when executing said computer program, implements the steps of the method according to any of the preceding claims 1 to 7.
10. A computer readable medium having non-volatile program code executable by a processor, the program code causing the processor to perform the method of any one of claims 1 to 7.
CN202211713606.0A 2022-12-29 2022-12-29 Deployment method and device of distributed database, electronic equipment and readable medium Pending CN116244271A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211713606.0A CN116244271A (en) 2022-12-29 2022-12-29 Deployment method and device of distributed database, electronic equipment and readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211713606.0A CN116244271A (en) 2022-12-29 2022-12-29 Deployment method and device of distributed database, electronic equipment and readable medium

Publications (1)

Publication Number Publication Date
CN116244271A true CN116244271A (en) 2023-06-09

Family

ID=86626863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211713606.0A Pending CN116244271A (en) 2022-12-29 2022-12-29 Deployment method and device of distributed database, electronic equipment and readable medium

Country Status (1)

Country Link
CN (1) CN116244271A (en)

Similar Documents

Publication Publication Date Title
US10929275B2 (en) Automatic test stack creation via production system replication
US8667096B2 (en) Automatically generating system restoration order for network recovery
US9940208B2 (en) Generating reverse installation file for network restoration
US8990368B2 (en) Discovery of network software relationships
CN107925877B (en) System and method for centralized configuration and authentication
CN103455352B (en) The method of application deployment software and application software dispose device
CN112527912B (en) Data processing method and device based on block chain network and computer equipment
US10621651B2 (en) Automatic recharge system and method, and server
US20250103321A1 (en) Automated deployment of changes to applications on a cloud computing platform
CN105871794A (en) Distributed file system date storage method and system, client and server
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN110324191B (en) Hybrid cloud deployment method, device and system
CN116170274A (en) Web application access method, device, system and computing equipment
CN114268638A (en) Block chain platform channel management method and device, computer equipment and storage medium
CN110968413A (en) A data management method, device and server
US8190715B1 (en) System and methods for remote agent installation
CN116244271A (en) Deployment method and device of distributed database, electronic equipment and readable medium
CN113360172B (en) Application deployment method, device, computer equipment and storage medium
CN111506657B (en) Block chain node equipment deployment method
CN115859260A (en) Authority authentication method, device, equipment and readable storage medium
CN112685135A (en) Platform cluster deployment method, device and system and computer readable storage medium
CN118646595B (en) Method, equipment and storage medium for repairing server to avoid secret mutual trust
CN113810241B (en) Testing method and device for kubernetes cluster
CN110795207B (en) Virtual container minimum resource unit mutual trust configuration method and device
US20250240288A1 (en) Operating storage equipment via trusted connectivity

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination