Database building method, device and electronic equipment
By automatically selecting and configuring the target server by controlling the server, the problem of cumbersome and time-consuming database construction steps in the existing technology is solved, and a more efficient database construction process is achieved.
Patent Information
- Application Number
- CN202110875951.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-30
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2041-07-30
AI Technical Summary
When building a database with a large-scale parallel processing architecture, the steps are cumbersome and time-consuming, especially when there are many nodes, the construction work may take more than one week.
Receive database construction requests through the control server, select a template that matches performance requirements, obtain the number of nodes and resources in the target template, select a matching target server, configure database components, and automatically build a database.
Compared with manual construction, automated construction significantly shortens time, reduces human operations, and improves the efficiency of database construction.
Smart Images

Figure CN113590589B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of distributed data storage, and in particular to a database building method, device and electronic device. Background Art
[0002] In a relational database with a massively parallel processing (MPP) architecture, the data of each table is distributed to the data nodes (DN) in the cluster according to rules (such as hash modulus), and the data analysis task needs to be coordinated by the coordinator node (CN) that does not actually store the data to complete the data processing work in parallel. This architecture makes the database performance strongly positively correlated with the various nodes of the database. Therefore, when using a database with a massively parallel processing architecture, users tend to build a database with as many nodes as possible.
[0003] When building a database, the existing technology requires users to plan the database architecture and manually install the operating system, partition the disk, upload the database component package, and install it on the server according to the different node types in the architecture (such as control nodes or data nodes). In addition, the mapping relationship between each node server in the database is configured during the database software installation process. After all nodes complete the above operations, the node network needs to be uniformly tested for connectivity, and configuration modifications are required.
[0004] The existing database construction method is complicated and time-consuming. Especially when there are many nodes in the MPP architecture database, the actual construction work often takes more than a week. Summary of the invention
[0005] The purpose of the embodiments of this specification is to provide a database building method, device and electronic device to improve the efficiency of database building.
[0006] To solve the above technical problems, an embodiment of the present specification provides a database construction method, the method comprising: a control server receives a database construction request, the database construction request carries the performance requirements of the database; selects a template matching the performance requirements from a pre-set template library as a target template; obtains the number of data nodes, the computing resources and storage resources of the control nodes, and the computing resources and storage resources of each data node in the target template; selects one or more target servers matching the number of data nodes, the computing resources and storage resources of the control nodes, and the computing resources and storage resources of each data node in the target template from multiple target servers managed by the control server for creating database nodes; and configures database components for each selected target server according to the node type matching each selected target server to form a database.
[0007] The database building method provided in the embodiments of this specification automatically builds a database by executing steps through a control server. Compared with the existing technology of manually building a database, it takes less time and requires fewer manual operations, which can improve the efficiency of database building. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the implementation methods of the present application or the technical solutions in the prior art, the drawings required for use in the implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some implementation methods recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0009] Figure 1 A schematic diagram of the structure of distributed data is shown;
[0010] Figure 2 A flowchart of a method for building a database according to an embodiment of the present invention is shown;
[0011] Figure 3 A flowchart showing the specific steps of configuring a database component for each selected target server and forming a database according to the node type matched by each selected target server in an embodiment of the present invention;
[0012] Figure 4 A flow chart showing a method for testing a formed database in an implementation of the present invention;
[0013] Figure 5 A functional block diagram of a database building device according to an embodiment of the present invention is shown;
[0014] Figure 6A principle block diagram of another database building device according to an embodiment of the present invention is shown;
[0015] Figure 7 A principle block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION
[0016] In order to enable those skilled in the art to better understand the technical solutions in this application, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this application.
[0017] Figure 1 A schematic diagram of the structure of distributed data is shown. In a distributed database architecture, a control node and multiple data nodes are included, and the control node is connected to each data node in communication. The control node receives the operation instruction of the database, parses the operation instruction, and assigns computing tasks to multiple data nodes according to the parsing results. After the data node executes the computing task, it will feed back the computing result to the control node. The control node summarizes the computing results fed back by each data node, and feeds back the computing result obtained after summarization as the execution result of the operation instruction to the user. Each database node includes a control module, a computing module, and a storage module. The storage module is used to store data in the database table, the computing module is responsible for the computing tasks of the data in the storage module, and the control module is used to interact with the control node for data (such as receiving the task assigned by the control, sending the computing result to the control node, etc.), the internal processing flow of the control node, etc.
[0018] The embodiment of this specification provides a method for building a database, which can automatically complete the construction of the database using a control server. The control server is a server different from the above-mentioned control node and data node. Before executing the database construction method, the database construction personnel only need to configure the control server, upload the required files to the control server, and open the physical connection channel between each server used to build the data and the control server.
[0019] like Figure 2 As shown, the database building method provided in the embodiment of this specification includes the following steps, which can be executed by the management and control server.
[0020] S110: Receive a database construction request, where the database construction request carries database performance requirements.
[0021] Performance requirements, for example, may be computing power requirements, storage power requirements, disk capacity, the number of control nodes and data nodes, the maximum number of database connections allowed, the maximum number of database accesses allowed, the number of calculations per unit time, the number of queries per unit time, etc. Usually, there are requirements such as "8 cores + 64G" and "4 cores + 32G", where 8 cores and 4 cores refer to computing power, and 64G and 32G refer to data storage capacity.
[0022] In some embodiments, the database building request may be manually input, for example, through a command line window.
[0023] In some embodiments, the database building request is given by other electronic devices that are in communication with the management and control server, and is used to instruct the management and control server to automatically build a database.
[0024] S120: Select a template that matches the performance requirement from a preset template library as a target template.
[0025] The template library is pre-set in the management and control server. Each template in the template library includes a combination of a control node and multiple data nodes. Each combination can realize the database architecture. Each node in these combinations is recorded in the template by the database node name. The combination also includes the number of data nodes, the computing resources and storage resources of the control node, the computing resources and storage resources of each data node, and the maximum computing capacity, maximum storage capacity, maximum number of allowed connections, maximum number of allowed accesses, calculation limit per unit time, query limit per unit time, etc. of the database formed by the combination.
[0026] The template that matches the performance requirement can be any one of the above combinations that meets all aspects of the performance requirement, or it can be a specified combination of the above combinations that meets all aspects of the performance requirement. The specified combination can refer to a combination with the least number of data nodes, or a combination with the least amount of computing resources or storage resources of the control nodes, or a combination with the least amount of computing resources or storage resources of the data nodes.
[0027] The template that matches the performance requirement may just meet the performance requirement in one aspect, but far exceed the performance requirement in other aspects. For example, the computing power requirement is 8G and the storage capacity requirement is 64G, but the template library only has one matching combination of "8G+128G".
[0028] S130: Obtain the number of data nodes in the target template, the amount of computing resources and storage resources of the control nodes, and the amount of computing resources and storage resources of each data node.
[0029] S140: Select one or more target servers from the multiple target servers managed by the management and control server that match the number of data nodes in the target template, the computing resources and storage resources of the control nodes, and the computing resources and storage resources of each data node for creating a database node.
[0030] Management means that the target server can be operated by the management server through the network. The management server manages multiple servers, which can be used as target servers and selected to create database nodes according to the performance requirements of the database.
[0031] S150: According to the node type matched by each selected target server, a database component is configured for each selected target server to form a database.
[0032] Node type, that is, control node and data node in the database architecture. Usually there is one control node and multiple data nodes.
[0033] The target template includes two types: control nodes and data nodes. When selecting a matching target server, it is necessary to match the target server to be selected with the computing resources and storage resources of the control nodes and data nodes in the target template. "Node type matched by each selected target server" refers to the node type corresponding to the target server finally selected when it matches the computing resources and storage resources of the control nodes and data nodes in the target template.
[0034] The above-mentioned database construction method automatically builds the database by executing steps through the control server. Compared with the existing technology of manually building a database, it takes less time and requires fewer human operations, which can improve the efficiency of database construction.
[0035] In some embodiments, the management and control server can select a specified installation program from a pre-stored installation program library, where the specified installation program is an installation program corresponding to the node type matching each selected target server, and then send the specified installation program to the selected target server, and then control the selected target server to execute the installation program.
[0036] In some embodiments, Figure 3 As shown, step S150 may include the following steps:
[0037] S151: Select a specified image file from a pre-stored image file library; the specified image file is an image file corresponding to a node type matching each selected target server.
[0038] The image file library only stores the corresponding image files for different types of nodes. That is, the image file library does not store the image files of all different nodes in the database architecture.
[0039] S152: Send the specified image file to the selected target server, wherein the image file carries: files constituting database components, and the database components include database node names.
[0040] The database node name is a server identifier used to distinguish the servers that make up the database. For example, CN represents the control node server, and DN1, DN2, and DN3 represent the three data node servers respectively.
[0041] S153: Mount the image file to the file system directory of the selected target server.
[0042] S154: Replace the database node name in the image file with the database node name in the target template.
[0043] Since the combination of control nodes and data nodes in the target template constitutes the database architecture, and these nodes in the combination are recorded in the target template through database node names, replacing the database node names in the image file mounted by the selected target server with the database node names in the target template can enable the selected target server to connect and implement a database architecture.
[0044] In some embodiments, the target server managed by the control server has not yet installed an operating system. In this case, the image file in steps S151 to S154 may also include files constituting the operating system. Accordingly, after mounting the image file to the file system directory of the selected target server, the selected target server has an operating system.
[0045] The database components and operating system of the target server are formed by mounting the image file. The process is relatively simple and time-saving, which can speed up the process of database construction.
[0046] In some embodiments, before step S110, the account information of the target server is also obtained, the target server is logged in through the account information, and the network configuration and directory structure of the file system in the target server are copied to the control server, so that the control server can manage the target server.
[0047] In some embodiments, before step S110, the account information of the target server is also obtained, the target server is logged in through the account information, and a monitoring software client is installed in the target server to supervise the target server, so that the control server can manage the target server.
[0048] The above provides two ways for the control server to manage the target server.
[0049] In some embodiments, Figure 4 As shown, after step S150, the following steps are also included:
[0050] S160: Control each target server in the formed database to start a database process.
[0051] S170: Check whether there is a database process in each target server.
[0052] In some embodiments, the management and control server can directly log in to each node server through the account and password of each node server, start the database process by controlling the operation of the database component on each node server, and directly check whether there is a database process in the process list.
[0053] In some embodiments, the management and control server can also start the database process by controlling the operation of the database components on each node server through a monitoring software client pre-installed on each node server, and check whether there is a database process in the process list through the monitoring software client.
[0054] S180: When it is determined that a database process exists, the formed database is tested, wherein the test includes at least one of the following: an adding operation, a deleting operation, a modifying operation, and a querying operation.
[0055] It can be seen that step S170 is a stand-alone test of each server to see whether the database process can be started normally, and step S180 is a joint test of each server to see whether the database as a whole can implement the most basic add, delete, modify and query operations on the database.
[0056] In some embodiments, the step S180 of “testing the formed database” includes:
[0057] S181: Obtain the address link and user account of the formed database.
[0058] S182: Connect to the formed database through the address link.
[0059] S183: After linking to the formed database, log in to the formed database through the user account.
[0060] S184: When the login is successful, a test instruction is sent to the database, wherein the test instruction includes at least one of the following: an add instruction, a delete instruction, a modify instruction, and a query instruction.
[0061] In some embodiments, the step S180 of “testing the formed database” includes:
[0062] S185: Send the pre-stored test script to the control node server in the formed database.
[0063] S186: Controlling the execution of the test script through the monitoring software client pre-installed on the control node server to send a test instruction to the database, wherein the test instruction includes at least one of the following: adding instruction, deleting instruction, modifying instruction, and querying instruction.
[0064] The embodiment of this specification provides a database construction device, which can be used to implement Figure 2 The database construction method described. Figure 5 As shown, the device includes a receiving module 10, a selecting module 20, a first obtaining module 30, a selecting module 40 and a configuring module 50.
[0065] The receiving module 10 is used to receive a database construction request, wherein the database construction request carries the performance requirements of the database.
[0066] The selection module 20 is used to select a template matching the performance requirement from a preset template library as a target template.
[0067] The first acquisition module 30 is used to acquire the number of data nodes in the target template, the amount of computing resources and storage resources of the control nodes, and the amount of computing resources and storage resources of each data node.
[0068] The selection module 40 is used to select one or more target servers from the multiple target servers managed by the management and control server that match the number of data nodes in the target template, the computing resources and storage resources of the control nodes, and the computing resources and storage resources of each data node for creating a database node.
[0069] The configuration module 50 is used to configure a database component for each selected target server according to the node type matched by each selected target server to form a database.
[0070] In some embodiments, the target template also includes a database node name; Figure 6 As shown, the configuration module 50 includes a selection submodule 51 , a sending submodule 52 , a mounting submodule 53 and a replacement submodule 54 .
[0071] The selection submodule 51 is used to select a specified image file from a pre-stored image file library; the specified image file is an image file corresponding to a node type matching each selected target server.
[0072] The sending submodule 52 is used to send the specified mirror file to the selected target server, wherein the mirror file carries: files constituting database components, and the database components include database node names.
[0073] The mounting submodule 53 is used to mount the image file to the file system directory of the selected target server.
[0074] The replacement submodule 54 is used to replace the database node name in the image file with the database node name in the target template.
[0075] In some embodiments, the database building device also includes a second acquisition module, a login module and a copy module.
[0076] The second acquisition module is used to acquire the account information of the target server. The login module is used to log in to the target server through the account information. The copy module is used to copy the network configuration and the directory structure of the file system in the target server to the control server.
[0077] In some embodiments, the database building device also includes a third acquisition module, a login module and an installation module.
[0078] The third acquisition module is used to acquire the account information of the target server. The login module is used to log in to the target server through the account information. The installation module is used to install the monitoring software client in the target server to monitor the target server.
[0079] In some embodiments, the database building device also includes a startup control module, a check module and a test module.
[0080] The startup control module is used to control each target server in the formed database to start the database process. The checking module is used to check whether the database process exists in each target server. The testing module is used to test the formed database when it is determined that the database process exists, wherein the test includes at least one of the following: adding operation, deleting operation, modifying operation, and querying operation.
[0081] In some embodiments, the test module includes an acquisition submodule, a connection submodule, a login submodule, and an instruction sending submodule.
[0082] The acquisition submodule is used to acquire the address link and user account of the formed database. The connection submodule is used to connect to the formed database through the address link. The login submodule is used to log in to the formed database through the user account after linking to the formed database. The instruction sending submodule is used to send a test instruction to the database if the login is successful, wherein the test instruction includes at least one of the following: an add instruction, a delete instruction, a modify instruction, and a query instruction.
[0083] In some embodiments, the test module includes a script sending submodule and a control execution submodule.
[0084] The script sending submodule is used to send the pre-stored test script to the control node server in the formed database. The control execution submodule is used to control the execution of the test script through the monitoring software client pre-installed on the control node server to send a test instruction to the database, wherein the test instruction includes at least one of the following: add instruction, delete instruction, modify instruction, and query instruction.
[0085] The embodiment of the present invention further provides an electronic device, such as Figure 7 As shown, the electronic device may include a processor 71, a memory 72 and a communication module 73, wherein the processor 71, the memory 72 and the communication module 73 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.
[0086] The processor 71 may be a central processing unit (CPU). The processor 71 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0087] The memory 72 is a non-transitory computer-readable storage medium that can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the database building method in the embodiment of the present invention (for example, Figure 5The processor 71 executes various functional applications and data processing of the processor by running the non-transient software programs, instructions and modules stored in the memory 72, that is, the database building method in the above method embodiment is realized.
[0088] The memory 72 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and applications required for at least one function; the data storage area may store data created by the processor 71, etc. In addition, the memory 72 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 72 may optionally include a memory remotely arranged relative to the processor 71, and these remote memories may be connected to the processor 71 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0089] The one or more modules are stored in the memory 72 and when executed by the processor 71, perform the following steps: Figure 2 The database building method in the illustrated embodiment.
[0090] For details of the above electronic equipment, please refer to Figure 2 The corresponding descriptions and effects in the embodiments can be understood and will not be repeated here.
[0091] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above-mentioned types of memory.
[0092] In the 1950s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip2. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog2. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0093] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0094] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions.
[0095] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0096] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be essentially or partly contributed to the prior art in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute certain parts of the methods of each implementation method of the present application.
[0097] The present application can be used in many general or special computer system environments or configurations, such as personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc.
[0098] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0099] Although the present application has been described through embodiments, those skilled in the art will appreciate that there are many modifications and variations to the present application without departing from the spirit of the present application, and it is intended that the appended claims include these modifications and variations without departing from the spirit of the present application.
Claims
1. A method for building a database, characterized in that: The method comprises: The management and control server receives a database construction request, wherein the database construction request carries a database performance requirement; Selecting a template matching the performance requirement from a preset template library as a target template; Obtain the number of data nodes in the target template, the amount of computing resources and storage resources of the control node, and the amount of computing resources and storage resources of each data node; Selecting one or more target servers that match the number of data nodes, the amount of computing resources and the amount of storage resources of the control nodes, and the amount of computing resources and the amount of storage resources of each data node in the target template from the multiple target servers managed by the control server for creating a database node; According to the node type matched by each selected target server, a database component is configured for each selected target server to form a database; The target template also includes a database node name; and configuring a database component for each selected target server according to the node type matched by each selected target server includes: Selecting a specified image file from a pre-stored image file library; the specified image file is an image file corresponding to a node type matching each selected target server; Sending the specified image file to the selected target server, wherein the image file carries: files constituting database components, wherein the database components include database node names; Mount the image file to the file system directory of the selected target server; The database node name in the image file is replaced with the database node name in the target template.
2. The database construction method according to claim 1, characterized in that: Before the management and control server receives the database construction request, it also includes: Get the target server's account information; Log in to the target server through the account information; The network configuration and directory structure of the file system in the target server are copied to the control server.
3. The database construction method according to claim 1, characterized in that: Before the management and control server receives the database construction request, it also includes: Get the target server's account information; Log in to the target server through the account information; A monitoring software client is installed in the target server to monitor the target server.
4. The method according to claim 1, characterized in that: After configuring a database component for each selected target server according to the node type matched by each selected target server and forming a database, the method further includes: Control each target server in the formed database to start the database process; Check whether there is a database process in each target server; When it is determined that a database process exists, the formed database is tested, wherein the test includes at least one of the following: an adding operation, a deleting operation, a modifying operation, and a querying operation.
5. The database construction method according to claim 4, characterized in that: Test the formed database, including: Obtaining the address link and user account of the formed database; Connecting to the formed database via the address link; After linking to the formed database, logging into the formed database through the user account; In case of successful login, a test instruction is sent to the database, wherein the test instruction includes at least one of the following: an add instruction, a delete instruction, a modify instruction, and a query instruction.
6. The database construction method according to claim 4, characterized in that: Test the formed database, including: Sending the pre-stored test script to the control node server in the formed database; The test script execution is controlled by the monitoring software client pre-installed on the control node server to send a test instruction to the database, wherein the test instruction includes at least one of the following: an add instruction, a delete instruction, a modify instruction, and a query instruction.
7. A database building device, characterized in that: The device comprises: A receiving module, used for controlling the server to receive a database construction request, wherein the database construction request carries the performance requirements of the database; A selection module, used to select a template matching the performance requirement from a preset template library as a target template; A first acquisition module is used to acquire the number of data nodes in the target template, the amount of computing resources and storage resources of the control node, and the amount of computing resources and storage resources of each data node; A selection module is used to select one or more target servers that match the number of data nodes in the target template, the amount of computing resources and storage resources of the control node, and the amount of computing resources and storage resources of each data node from the multiple target servers managed by the control server for creating a database node; A configuration module, configured to configure a database component for each selected target server according to a node type matched by each selected target server to form a database; The target template also includes a database node name; the configuration module includes: The selection submodule is used to select a specified image file from a pre-stored image file library; the specified image file is an image file corresponding to a node type matching each selected target server; The sending submodule is used to send the specified image file to the selected target server, wherein the image file carries: files constituting database components, wherein the database components include database node names; The mounting submodule is used to mount the image file to the file system directory of the selected target server; The replacement submodule is used to replace the database node name in the image file with the database node name in the target template.
8. An electronic device, characterized in that: include: A communication module, a memory and a processor, wherein the communication module, the processor and the memory are communicatively connected to each other, the memory stores computer instructions, and the processor implements the steps of the method according to any one of claims 1 to 6 by executing the computer instructions.
9. A computer storage medium, characterized in that The computer storage medium stores computer program instructions, and when the computer program instructions are executed, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Method and device for creating database
CN106161250A
A method and device for deploying a database cluster
CN109814881A