CN113268253A - Distributed database deployment method and related equipment - Google Patents

Distributed database deployment method and related equipment Download PDF

Info

Publication number
CN113268253A
CN113268253A CN202110497163.5A CN202110497163A CN113268253A CN 113268253 A CN113268253 A CN 113268253A CN 202110497163 A CN202110497163 A CN 202110497163A CN 113268253 A CN113268253 A CN 113268253A
Authority
CN
China
Prior art keywords
operating system
file
slave
equipment
installation
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
CN202110497163.5A
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.)
China Academy of Railway Sciences Corp Ltd CARS
Institute of Computing Technologies of CARS
Beijing Jingwei Information Technology Co Ltd
Original Assignee
China Academy of Railway Sciences Corp Ltd CARS
Institute of Computing Technologies of CARS
Beijing Jingwei Information Technology 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 China Academy of Railway Sciences Corp Ltd CARS, Institute of Computing Technologies of CARS, Beijing Jingwei Information Technology Co Ltd filed Critical China Academy of Railway Sciences Corp Ltd CARS
Priority to CN202110497163.5A priority Critical patent/CN113268253A/en
Publication of CN113268253A publication Critical patent/CN113268253A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order
    • 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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to the field of device deployment, and in particular, to a distributed database deployment method and related devices. Wherein, the method comprises the following steps: determining slave equipment to be accessed into a distributed database, and receiving an IP acquisition request sent by the slave equipment; allocating an IP address to the slave equipment according to the IP acquisition request; sending the IP address and a preset boot file to the slave device, wherein the preset boot file is used for installing a boot system on the slave device; receiving an operating system installation request sent by the slave device; according to the operating system installation request, sending an operating system installation file to the slave equipment; and after receiving feedback information of the installed operating system sent by the slave equipment, establishing a master server access identifier for the slave equipment, wherein the master server access identifier is used for the slave equipment to access a master server of the distributed database. By the method, parameters do not need to be configured manually, and the deployment speed of the slave equipment is increased.

Description

Distributed database deployment method and related equipment
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of device deployment, and in particular, to a distributed database deployment method and related devices.
[ background of the invention ]
At present, in a railway passenger ticket system, a distributed storage system is adopted for data storage and data management. When a distributed storage system is implemented, a master-slave device mode is often adopted. Firstly, a virtual machine system is established on a main device and a plurality of slave devices based on virtual machine technology. The master device establishes a master server based on the virtual machine system, and the plurality of slave devices establish slave servers based on the virtual machine system, so that a server cluster supporting the distributed storage system is formed. Under the condition that the current traffic and the transaction amount are continuously enhanced, the processing performance and the storage space of the distributed storage system are not affected, and only more slave devices can be added in the distributed storage system to expand the storage space of the distributed storage system. Configuration parameters need to be manually input by device deployment personnel during deployment of a new slave device to complete system installation of the slave device, and then the slave device needs to be operated to access the master server to enable the slave device to be added into the distributed storage system. However, when the distributed storage system is expanded, a plurality of slave devices are often required to be deployed. Therefore, when the storage space of the distributed storage system is expanded, the problems of long implementation time, more repeated operations and larger workload of deployment personnel exist.
[ summary of the invention ]
In order to solve the above problem, embodiments of the present invention provide a distributed database deployment method and related devices, which do not require deployment personnel to manually configure parameters and install a system for a slave device, reduce workload of the deployment personnel, and accelerate deployment speed of the slave device.
In a first aspect, an embodiment of the present invention provides a distributed database deployment method applied to an activation device, including:
determining slave equipment to be accessed into a distributed database, and receiving an IP acquisition request sent by the slave equipment;
allocating an IP address to the slave equipment according to the IP acquisition request;
sending the IP address and a preset boot file to the slave device, wherein the preset boot file is used for installing a boot system on the slave device;
receiving an operating system installation request sent by the slave device;
according to the operating system installation request, sending an operating system installation file to the slave equipment;
and after receiving feedback information of the installed operating system sent by the slave equipment, establishing a master server access identifier for the slave equipment, wherein the master server access identifier is used for the slave equipment to access a master server of the distributed database.
In the embodiment of the invention, the slave equipment is enabled to install the boot system by allocating the IP address and the preset boot file to the slave equipment, and the operating system installation file is provided for the slave equipment, so that the slave equipment can install the operating system under the boot system. And when the installation of the slave equipment operating system is determined to be completed, establishing a master server access identification for the slave equipment so that the slave equipment can access the master server of the distributed database and join the master server into the distributed database. In the process, the equipment deployment personnel are not required to manually input parameters and instructions, so that the workload of the equipment deployment personnel in deploying the slave equipment is reduced, and the slave equipment deployment speed is increased.
In one possible implementation manner, before determining a slave device to be accessed to the distributed database and receiving an IP acquisition request sent by the slave device, the method further includes:
starting a fault self-checking program to carry out fault detection on the self-checking program;
if there is a failure, the deployment of the slave device is stopped.
In one possible implementation manner, after starting the fault self-checking program, the method further includes:
determining whether the actual storage position of the preset guide file is consistent with the storage position of the preset guide file stored in the file reference list;
if the preset guide file is inconsistent with the preset guide file, the storage position of the preset guide file stored in the file reference list is changed according to the actual storage position of the preset guide file;
determining whether the actual storage location of the operating system installation file is consistent with the storage location of the operating system installation file stored in the file reference list;
and if the two files are inconsistent, changing the storage position of the operating system installation file stored in the file reference list according to the actual storage position of the operating system installation file.
In one possible implementation manner, after receiving feedback information that the installation of the operating system is completed and that is sent by the slave device, establishing a master server access identifier for the slave device includes:
sending an operating system login instruction with a preset secret key to the slave equipment to obtain system operating authority of the slave equipment;
and after the system operation authority of the slave equipment is obtained, establishing a master server access identifier for the slave equipment according to the IP information and the domain name information of the master server.
In one possible implementation manner, after receiving feedback information that the installation of the operating system is completed and sent by the slave device, the method further includes:
and according to preset network service information, performing domain name system configuration and hypertext transfer protocol configuration on the slave equipment.
In a second aspect, an embodiment of the present invention provides a distributed database deployment method applied to a slave device, including:
sending an IP acquisition request to the activation equipment;
after receiving an IP address and a preset boot file sent by the activation equipment, establishing network connection according to the IP address and installing a boot system according to the preset boot file;
after the boot system is determined to be installed, sending an operating system installation request to the activation equipment;
after receiving an operating system installation file sent by the activation equipment, installing an operating system according to the operating system installation file;
and after the operating system is determined to be installed, sending feedback information of the installed operating system to the activation equipment, and accessing the main server according to the main server access identifier established by the activation equipment.
In one possible implementation manner, the installing the operating system file includes an operating system installing medium and operating system configuration information, and installing the operating system according to the operating system installing medium and the operating system configuration information includes:
and according to the operating system installation medium, adopting a kiskstart script program to install the operating system, and configuring the system parameters of the operating system according to the operating system configuration information.
In a third aspect, an embodiment of the present invention provides an activation device, including:
the operating system initialization module is used for determining slave equipment to be accessed into the distributed database and receiving an IP acquisition request sent by the slave equipment;
the operating system initialization module is further configured to allocate an IP address to the slave device according to the IP acquisition request;
the operating system initialization module is further configured to send the IP address and a preset boot file to the slave device, where the preset boot file is used for installing a boot system in the slave device;
the operating system initialization module is further configured to receive an operating system installation request sent by the slave device and send an operating system installation file to the slave device according to the operating system installation request;
and the distributed database installation management control module is used for establishing a master server access identifier for the slave equipment after receiving feedback information which is sent by the slave equipment and used for the slave equipment to access a master server of the distributed database after the operating system is installed.
In one possible implementation manner, the operating system initialization module is further configured to:
starting a fault self-checking program to carry out fault detection on the self-checking program;
if there is a failure, the deployment of the slave device is stopped.
In a fourth aspect, an embodiment of the present invention provides a slave device, including:
a sending module, configured to send an IP acquisition request to the activation device;
the installation module is used for establishing network connection according to the IP address and installing a guide system according to a preset guide file after receiving the IP address and the preset guide file sent by the activation equipment;
the sending module is further configured to send an operating system installation request to the activation device after determining that the installation of the boot system is completed;
the installation module is further configured to install the operating system according to the operating system installation file after receiving the operating system installation file sent by the activation device;
the sending module is further configured to send feedback information of the completion of the installation of the operating system to the activation device after determining that the installation of the operating system is completed;
and the network module is used for accessing the main server according to the main server access identifier established by the activation equipment.
It should be understood that the third aspect of the embodiment of the present invention is related to the technical solution of the first aspect of the embodiment of the present invention, and the fourth aspect of the embodiment of the present invention is related to the technical solution of the second aspect of the embodiment of the present invention, and the beneficial effects achieved by the aspects and the corresponding possible implementation manners are similar and will not be described again.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a distributed database deployment method according to an embodiment of the present invention;
fig. 2 is a flowchart of another distributed database deployment method according to an embodiment of the present invention;
fig. 3 is a flowchart of another distributed database deployment method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an activation device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a slave device according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions in the present specification, the following detailed description of the embodiments of the present invention is provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only a few embodiments of the present specification, and not all embodiments. All other embodiments obtained by a person skilled in the art based on the embodiments in the present specification without any inventive step are within the scope of the present invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the specification. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the embodiment of the invention, the activating equipment is connected with the slave equipment to be accessed into the distributed database, the activating equipment automatically installs the slave equipment based on the preset boot file and the operating system installation file, manual configuration is not needed, the workload of equipment deployment personnel is reduced, and the slave equipment deployment speed is accelerated.
Fig. 1 is a flowchart of a distributed database deployment method according to an embodiment of the present invention. The method is applied to an activation device, and as shown in fig. 1, the method comprises the following steps:
step 101, determining slave devices to be accessed to the distributed database, and receiving an IP acquisition request sent by the slave devices. The activation device may establish a wired connection or a wireless connection with the slave device to be accessed to the distributed database, so as to confirm the slave device to be accessed to the distributed database. In some embodiments, when the system installation and device deployment are performed on the slave device in a network manner, the activation device may also automatically power on and boot the slave device that has completed the hardware installation and has connected the power supply and the network cable through the network. Specifically, the activation device may be configured with a network module and a management interface, communicate with the server through the network module, and enable the slave device to receive a management instruction of the management node through the management interface, and power on and start up the slave device.
In some embodiments, the activating device may assign an IP address to the slave device based on a Dynamic Host Configuration Protocol (DHCP) service.
And 102, allocating an IP address to the slave equipment according to the IP acquisition request. The method includes the steps that an IP pool containing a plurality of IP addresses can be configured in advance, and after an IP acquisition request sent by the slave device is received, an unused IP address is randomly selected from the IP pool and allocated to the slave device.
And 103, sending the IP address and a preset boot file to the slave equipment, wherein the preset boot file is used for installing a boot system on the slave equipment. Since the installation of the operating system can only be performed under the boot system, the preset boot file may be sent to the slave device first, so that the slave device installs the boot system first. Optionally, the preset BOOT file may be a BOOT file.
In some embodiments, the activation device may transmit the preset boot File to the slave device through a simple File Transfer Protocol (TFTP) service.
Step 104, receiving an operating system installation request sent by the slave device. In some embodiments, the operating system installation request sent from the device may include identification information of the operating system that is desired to be installed, for example, identification information of a system such as Windows Server, Netware, Unix, Linux, and the like.
And step 105, sending the operating system installation file to the slave device according to the operating system installation request. The operating system installation file may include an operating system installation medium and operating system configuration information. The operating system installation medium is used for installing the operating system from the equipment, and the operating system configuration information is used for indicating the relevant parameter configuration of the slave equipment in the process of installing the system. For example, how the slave performs partitioning operations, which packages are preinstalled by the slave, optimization and setting of kernel parameters of the slave, and the like. Alternatively, the operating system installation medium may be an image file of the operating system.
And 106, after receiving feedback information of the operating system installation completion sent by the slave equipment, establishing a master server access identifier for the slave equipment, wherein the master server access identifier is used for the slave equipment to access a master server of the distributed database. The HOST server access identifier may be implemented in the form of a HOST file, and the HOST file includes a mapping relationship between a domain name of the HOST server and an IP address. When a server or a website is accessed, the access is usually performed through a network domain name, and specifically, the network domain name needs to be resolved first during the access to obtain an IP address corresponding to the network domain name. And when the analysis is successful and the IP address is obtained, the corresponding server or website can be normally accessed according to the obtained IP address. However, since the network domain name of the server is generally encrypted and cannot be directly resolved to obtain the corresponding IP address, the HOST file is configured such that the slave device directly reads the mapping relationship between the network domain name and the IP address of the HOST server in the HOST file, so that the slave device can perform the access operation of the HOST server and become one member of the distributed storage data.
In some embodiments, the activation device may establish a master server access identity for the slave device based on the playbook program of the ansable automation operation and maintenance tool. Specifically, the activation device may send an operating system login instruction with a preset key to the slave device to obtain a system operating right for the slave device. By using the preset secret key, the activating device can obtain the system operation authority of the slave device under the condition that a password does not need to be manually input, and the activating device can modify the system file of the slave device. The activation device may then establish a master server access identity in the system of slave devices.
In some embodiments, after the activation device receives the feedback information of the completion of the installation of the operating system sent by the slave device, the domain name system configuration and the hypertext transfer protocol configuration may be further performed on the slave device according to the preset network service information, so as to establish a basic network service for the slave device.
In some embodiments, before the slave device is deployed, the activation device may further perform a self-test operation to avoid a failure in the slave device deployment due to a program failure or a hardware failure. As shown in fig. 2, the method comprises the following processing steps:
step 201, starting a fault self-checking program to perform fault detection on itself. If there is a failure, the deployment of the slave device is stopped. If there is no fault then step 202 is performed. The fault detection can comprise a system detection part and a hardware detection part.
Step 202, determining whether the actual storage location of the preset boot file is consistent with the storage location of the preset boot file stored in the file reference list. The execution program of the activation device does not directly send the preset boot file stored in the activation device to the slave device, but copies the preset boot file stored in the activation device to the execution program, and then sends the preset boot file to the slave device. Therefore, it is necessary to determine that the storage location of the preset boot file in the execution program of the activation device is updated, and copy the preset boot file into the execution program based on the updated storage location of the preset boot file.
And step 203, if the two are not consistent, changing the storage position of the preset guide file stored in the file reference list according to the actual storage position of the preset guide file.
Step 204, determining whether the actual storage location of the operating system installation file is consistent with the storage location of the operating system installation file stored in the file reference list. The processing procedure of this step is the same as that of step 202, and is not described herein again.
And step 205, if the two files are not consistent, changing the storage position of the operating system installation file stored in the file reference list according to the actual storage position of the operating system installation file.
Fig. 3 is a flowchart of a distributed database deployment method applied to a slave device according to an embodiment of the present invention. As shown in fig. 3, the method includes:
step 301, an IP acquisition request is sent to the active device. The slave device may be started by using a Preboot eXecution Environment (PXE) through a network interface, and send an IP acquisition request to the active device based on the PXE.
Step 302, after receiving the IP address and the preset boot file sent by the activation device, establishing a network connection according to the IP address and installing a boot system according to the preset boot file.
Step 303, after determining that the booting system is installed, sending an operating system installation request to the activation device.
And step 304, after receiving the operating system installation file sent by the activation equipment, installing the operating system according to the operating system installation file. In some embodiments, the operating system installation file includes operating system installation media and operating system configuration information, and the slave device may perform operating system installation using a kickstart script and configure system parameters of the operating system according to the operating system configuration information.
And 305, after the operating system is determined to be installed, sending feedback information of the installed operating system to the activation equipment, and accessing the main server according to the main server access identifier established by the activation equipment.
Corresponding to the above distributed database deployment method, an embodiment of the present invention provides an activation device, as shown in fig. 4, where the activation device includes: an operating system initialization module 401 and a distributed database installation management control module 402.
The operating system initialization module 401 is configured to determine a slave device to be accessed to the distributed database, and receive an IP obtaining request sent by the slave device.
The operating system initialization module 401 is further configured to allocate an IP address to the slave device according to the IP obtaining request.
The operating system initialization module 401 is further configured to send an IP address and a preset boot file to the slave device, where the preset boot file is used for installing the boot system in the slave device.
The operating system initialization module 401 is further configured to receive an operating system installation request sent by the slave device and send an operating system installation file to the slave device according to the operating system installation request.
The distributed database installation management control module 402 is configured to establish a master server access identifier for the slave device after receiving feedback information that is sent by the slave device and that indicates that the operating system is installed, where the master server access identifier is used for the slave device to access a master server of the distributed database.
In some embodiments, the operating system initialization module 401 is further configured to:
and starting a fault self-checking program to perform fault detection on the self-checking program. If there is a failure, the deployment of the slave device is stopped.
The activation device provided in the embodiment shown in fig. 4 may be used to implement the technical solutions of the method embodiments shown in fig. 1 to fig. 2 in this specification, and the implementation principles and technical effects thereof may further refer to the related descriptions in the method embodiments.
Corresponding to the above distributed database deployment method, an embodiment of the present invention provides a slave device, as shown in fig. 5, where the slave device includes: a sending module 501, an installation module 502 and a network module 503.
A sending module 501, configured to send an IP obtaining request to an active device.
The installation module 502 is configured to, after receiving the IP address and the preset boot file sent by the activation device, establish a network connection according to the IP address and install the boot system according to the preset boot file.
The sending module 501 is further configured to send an operating system installation request to the activation device after determining that the boot system is installed.
The installation module 502 is further configured to install the operating system according to the operating system installation file after receiving the operating system installation file sent by the activation device.
The sending module 501 is further configured to send feedback information of the completion of the installation of the operating system to the activation device after determining that the installation of the operating system is completed.
And a network module 503, configured to access the primary server according to the primary server access identifier established by the activation device.
The slave device provided in the embodiment shown in fig. 5 may be used to implement the technical solution of the method embodiment shown in fig. 3 in this specification, and the implementation principle and technical effect may further refer to the related description in the method embodiment.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present specification, "a plurality" means at least two, e.g., two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present description in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present description.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that the apparatuses referred to in the embodiments of the present disclosure may include, but are not limited to, a Personal Computer (Personal Computer; hereinafter, PC), a Personal Digital Assistant (Personal Digital Assistant; hereinafter, PDA), a wireless handheld apparatus, a Tablet Computer (Tablet Computer), a mobile phone, an MP3 display, an MP4 display, and the like.
In the several embodiments provided in this specification, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present description may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a connector, or a network device) or a Processor (Processor) to execute some steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A distributed database deployment method is applied to an activation device and comprises the following steps:
determining slave equipment to be accessed into a distributed database, and receiving an IP acquisition request sent by the slave equipment;
allocating an IP address to the slave equipment according to the IP acquisition request;
sending the IP address and a preset boot file to the slave device, wherein the preset boot file is used for installing a boot system on the slave device;
receiving an operating system installation request sent by the slave device;
according to the operating system installation request, sending an operating system installation file to the slave equipment;
and after receiving feedback information of the installed operating system sent by the slave equipment, establishing a master server access identifier for the slave equipment, wherein the master server access identifier is used for the slave equipment to access a master server of the distributed database.
2. The method of claim 1, wherein before determining a slave device to access the distributed database and receiving the IP acquisition request sent by the slave device, the method further comprises:
starting a fault self-checking program to carry out fault detection on the self-checking program;
if there is a failure, the deployment of the slave device is stopped.
3. The method of claim 2, wherein after initiating a fault self-test procedure, the method further comprises:
determining whether the actual storage position of the preset guide file is consistent with the storage position of the preset guide file stored in the file reference list;
if the preset guide file is inconsistent with the preset guide file, the storage position of the preset guide file stored in the file reference list is changed according to the actual storage position of the preset guide file;
determining whether the actual storage location of the operating system installation file is consistent with the storage location of the operating system installation file stored in the file reference list;
and if the two files are inconsistent, changing the storage position of the operating system installation file stored in the file reference list according to the actual storage position of the operating system installation file.
4. The method of claim 1, wherein after receiving feedback information that the installation of the operating system is completed and sent by the slave device, establishing a master server access identifier for the slave device comprises:
sending an operating system login instruction with a preset secret key to the slave equipment to obtain system operating authority of the slave equipment;
and after the system operation authority of the slave equipment is obtained, establishing a master server access identifier for the slave equipment according to the IP information and the domain name information of the master server.
5. The method of claim 1, wherein after receiving the feedback information of the installed operating system sent by the slave device, the method further comprises:
and according to preset network service information, performing domain name system configuration and hypertext transfer protocol configuration on the slave equipment.
6. A distributed database deployment method is applied to slave equipment and comprises the following steps:
sending an IP acquisition request to the activation equipment;
after receiving an IP address and a preset boot file sent by the activation equipment, establishing network connection according to the IP address and installing a boot system according to the preset boot file;
after the boot system is determined to be installed, sending an operating system installation request to the activation equipment;
after receiving an operating system installation file sent by the activation equipment, installing an operating system according to the operating system installation file;
and after the operating system is determined to be installed, sending feedback information of the installed operating system to the activation equipment, and accessing the main server according to the main server access identifier established by the activation equipment.
7. The method of claim 6, wherein the operating system installation file comprises operating system installation media and operating system configuration information, and wherein installing the operating system according to the operating system installation media and the operating system configuration information comprises:
and according to the operating system installation medium, adopting a kiskstart script program to install the operating system, and configuring the system parameters of the operating system according to the operating system configuration information.
8. An activation device, comprising:
the operating system initialization module is used for determining slave equipment to be accessed into the distributed database and receiving an IP acquisition request sent by the slave equipment;
the operating system initialization module is further configured to allocate an IP address to the slave device according to the IP acquisition request;
the operating system initialization module is further configured to send the IP address and a preset boot file to the slave device, where the preset boot file is used for installing a boot system in the slave device;
the operating system initialization module is further configured to receive an operating system installation request sent by the slave device and send an operating system installation file to the slave device according to the operating system installation request;
and the distributed database installation management control module is used for establishing a master server access identifier for the slave equipment after receiving feedback information which is sent by the slave equipment and used for the slave equipment to access a master server of the distributed database after the operating system is installed.
9. The device of claim 8, wherein the operating system initialization module is further configured to:
starting a fault self-checking program to carry out fault detection on the self-checking program;
if there is a failure, the deployment of the slave device is stopped.
10. A slave device, comprising:
a sending module, configured to send an IP acquisition request to the activation device;
the installation module is used for establishing network connection according to the IP address and installing a guide system according to a preset guide file after receiving the IP address and the preset guide file sent by the activation equipment;
the sending module is further configured to send an operating system installation request to the activation device after determining that the installation of the boot system is completed;
the installation module is further configured to install the operating system according to the operating system installation file after receiving the operating system installation file sent by the activation device;
the sending module is further configured to send feedback information of the completion of the installation of the operating system to the activation device after determining that the installation of the operating system is completed;
and the network module is used for accessing the main server according to the main server access identifier established by the activation equipment.
CN202110497163.5A 2021-05-07 2021-05-07 Distributed database deployment method and related equipment Pending CN113268253A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110497163.5A CN113268253A (en) 2021-05-07 2021-05-07 Distributed database deployment method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110497163.5A CN113268253A (en) 2021-05-07 2021-05-07 Distributed database deployment method and related equipment

Publications (1)

Publication Number Publication Date
CN113268253A true CN113268253A (en) 2021-08-17

Family

ID=77230300

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110497163.5A Pending CN113268253A (en) 2021-05-07 2021-05-07 Distributed database deployment method and related equipment

Country Status (1)

Country Link
CN (1) CN113268253A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850437A (en) * 2015-05-19 2015-08-19 曙光信息产业(北京)有限公司 Installation method and apparatus of operating system
CN105959134A (en) * 2016-04-22 2016-09-21 汉柏科技有限公司 Automatic installation deployment method based on PXE, and PXE server
CN107066287A (en) * 2017-01-14 2017-08-18 郑州云海信息技术有限公司 The method and system of ESXI virtual machine automatic deployment installation systems
US9910678B1 (en) * 2015-04-24 2018-03-06 Parallels IP Holdings GmbH NetBoot for installation of a non-native OS on a target host

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9910678B1 (en) * 2015-04-24 2018-03-06 Parallels IP Holdings GmbH NetBoot for installation of a non-native OS on a target host
CN104850437A (en) * 2015-05-19 2015-08-19 曙光信息产业(北京)有限公司 Installation method and apparatus of operating system
CN105959134A (en) * 2016-04-22 2016-09-21 汉柏科技有限公司 Automatic installation deployment method based on PXE, and PXE server
CN107066287A (en) * 2017-01-14 2017-08-18 郑州云海信息技术有限公司 The method and system of ESXI virtual machine automatic deployment installation systems

Similar Documents

Publication Publication Date Title
CN108809722B (en) Method, device and storage medium for deploying Kubernetes cluster
EP3495938B1 (en) Raid configuration
US20040003063A1 (en) Procedure for dynamic reconfiguration of resources of logical partitions
WO2016037479A1 (en) Method, device and system for optimizing virtualized network function (vnf)
CN104932919A (en) Implementation method of Linux unattended setup
EP2863281B1 (en) System and method to configure a field device
CN109240754B (en) Logic device, method and system for configuring BIOS starting item
CN107800580B (en) Method, server and system for monitoring installation state of large-batch operating systems
CN112083971B (en) Component processing method, device and storage medium
CN110795158A (en) Bare computer server management method, system, electronic equipment and storage medium
CN110971689B (en) System installation method, device, system, equipment and storage medium
CN110099095B (en) Software deployment method and device, electronic equipment and computer-readable storage medium
CN109600439B (en) PaaS platform and deployment method thereof based on microservice
CN111078305A (en) Information acquisition method and device, server and information management system
US11212168B2 (en) Apparatuses and methods for remote computing node initialization using a configuration template and resource pools
CN112948008A (en) Ironic based physical bare computer management method
CN107659621B (en) RAID control card configuration method and device
CN113268253A (en) Distributed database deployment method and related equipment
CN114885032B (en) Method, device, equipment and medium for generating and displaying equipment information
CN114995888A (en) Intelligent network card deployment method, device and medium
CN114625575A (en) Business system synchronization method, device, equipment and storage medium
JP5073171B2 (en) Network boot system, client terminal activation method, and management server
CN109684134A (en) For the method and server that rapid deployment firmware is set between multiple equipment
CN111061503A (en) Cluster system configuration method and cluster system
CN116302926A (en) Test environment deployment method, system, device, electronic equipment and medium

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