CN114285739A - Node information batch configuration method, device, terminal and storage medium - Google Patents
Node information batch configuration method, device, terminal and storage medium Download PDFInfo
- Publication number
- CN114285739A CN114285739A CN202111384208.4A CN202111384208A CN114285739A CN 114285739 A CN114285739 A CN 114285739A CN 202111384208 A CN202111384208 A CN 202111384208A CN 114285739 A CN114285739 A CN 114285739A
- Authority
- CN
- China
- Prior art keywords
- configuration
- node
- data packet
- node information
- nodes
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 230000006855 networking Effects 0.000 claims description 7
- 238000010276 construction Methods 0.000 claims description 6
- 238000012544 monitoring process Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 7
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000013499 data model Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008676 import Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the field of distributed storage cluster node information configuration, and particularly discloses a method, a device, a terminal and a storage medium for node information batch configuration, wherein all nodes are networked according to network planning, so that network intercommunication among all nodes is realized; selecting a node as a main node to configure node information; the main node acquires the configuration file and analyzes the content in the configuration file to construct each data packet; the configuration file comprises the unique identification codes of other nodes and corresponding node information; the main node sends out each data packet in a broadcasting mode, and other nodes in the same local area network automatically configure according to node information in the data packet after receiving the data packet. According to the invention, the workflow set by the node information is directly connected with each node, then the information of each node is manually input, and the workflow is transferred to the filling of the configuration file, so that the node information configuration flow is simplified, the manual participation is reduced, and the error rate possibly caused by manual operation is reduced.
Description
Technical Field
The invention relates to the field of distributed storage cluster node information configuration, in particular to a node information batch configuration method, a node information batch configuration device, a node information batch configuration terminal and a storage medium.
Background
In recent years, with the continuous development of storage technology, the storage requirement for a single cluster is rapidly increasing, so that the number of nodes of the single cluster is increasing, and in order to make hundreds of nodes form a complete distributed system, all the nodes need to be configured relatively to form a cluster, and then a service for storage is built on the basis of the cluster. When the number of nodes is small, the nodes can be set one by one in a direct connection mode, but along with the sudden increase of the number of the nodes in the cluster, the efficiency is insufficient by adopting the traditional single-node one-by-one setting mode; moreover, errors are easily caused when node information is manually set, for example, node IP setting is performed, a single node often needs to set multiple IPs, configuration errors can be caused if the single node is careless slightly, a cluster cannot be deployed, and a long time is required to troubleshoot problems.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method, an apparatus, a terminal and a storage medium for batch configuration of node information, which complete automatic configuration by importing a configuration file, simplify the work flow, avoid errors caused by manual errors, and greatly improve the configuration efficiency and shorten the work period because the setting of each node information is performed synchronously.
In a first aspect, a technical solution of the present invention provides a method for batch configuration of node information, which is applied to a distributed storage cluster, and includes the following steps:
networking all nodes according to network planning, so that network intercommunication among all nodes is realized;
selecting a node as a main node to configure node information;
the main node acquires the configuration file and analyzes the content in the configuration file to construct each data packet; the configuration file comprises the unique identification codes of other nodes and corresponding node information;
the main node sends out each data packet in a broadcasting mode, and other nodes in the same local area network automatically configure according to node information in the data packet after receiving the data packet.
Further, after selecting a node as the master node to configure the node information, the method further comprises the following steps:
the method comprises the steps that a browser accesses a web service of a main node to download a configuration template and unique identification codes of other nodes;
filling the unique identification codes of other nodes and the corresponding node information into a configuration template to form a configuration file;
and importing the configuration file through a browser, so that the main node acquires the configuration file.
Further, when the master node analyzes the content in the configuration file to construct each data packet, the method further comprises the following steps:
and setting configuration identification for each data packet.
Further, when other nodes in the same lan receive the data packet, the method specifically includes the following steps:
and other nodes in the same local area network monitor the broadcast information, judge whether the broadcast information contains the configuration identifier, and if so, judge that the data packet is a data packet of the configuration node information and receive the data packet.
Further, when the other nodes automatically configure according to the data including the internal node information, the method comprises the following steps:
and the node compares the unique identification code in the received data packet with the unique identification code of the node, if the unique identification code is consistent with the unique identification code of the node, the node judges the data packet to be a required data packet, and automatic configuration is carried out based on the data packet.
In a second aspect, a technical solution of the present invention provides a device for batch configuration of node information, which is applied to a distributed storage cluster and includes a first configuration module configured in a master node and a second configuration module configured in other nodes;
the first configuration module includes a configuration module that includes,
a configuration file acquisition unit: acquiring a configuration file;
a configuration file analysis unit: analyzing the content in the configuration file; the configuration file comprises the unique identification codes of other nodes and corresponding node information;
a packet construction unit: constructing the content analyzed from the configuration file into each data packet;
a broadcasting unit: sending out each data packet in a broadcasting mode;
the second configuration module includes a second configuration module that includes,
a packet receiving unit: receiving data packets broadcasted by main nodes in the same local area network;
an automatic configuration unit: and carrying out automatic configuration based on the node information in the received data packet.
Furthermore, when the data packet construction unit constructs the content analyzed from the configuration file into each data packet, a configuration identifier is also set for each data packet;
when the data packet receiving unit receives the data packet, the method specifically includes:
monitoring the broadcast information, judging whether the broadcast information contains the configuration identifier, if so, judging that the data packet is the data packet of the configuration node information, and receiving the data packet.
Further, the automatic configuration unit performs automatic configuration based on the node information in the received data packet, and specifically includes:
and comparing the unique identification code in the received data packet with the unique identification code of the data packet, if the unique identification code is consistent with the unique identification code, judging the data packet to be a required data packet, and automatically configuring based on the data packet.
In a third aspect, a technical solution of the present invention provides a terminal, including:
the memory is used for storing a node information batch configuration program;
and the processor is used for realizing the steps of the node information batch configuration method in any one of the above steps when the node information batch configuration program is executed.
In a fourth aspect, an aspect of the present invention provides a computer-readable storage medium, where a node information batch configuration program is stored on the computer-readable storage medium, and when being executed by a processor, the node information batch configuration program implements the steps of the node information batch configuration method according to any one of the above.
Compared with the prior art, the node information batch configuration method, the node information batch configuration device, the terminal and the storage medium provided by the invention have the following beneficial effects: only one node needs to be configured, then the node information is issued to each node in a mode of importing configuration files, and each node completes the information configuration. According to the invention, the work flow set by the node information is directly connected to each node, then the information of each node (such as the node network information and the node name information) is manually input, and the information is transferred to the filling of the configuration file, so that the node information configuration flow is simplified, the manual participation is reduced, and the error rate possibly caused by manual operation is reduced.
Drawings
For a clearer explanation of the embodiments or technical solutions of the prior art of the present application, the drawings needed for the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a node information batch configuration method according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a conventional configuration mode.
Fig. 3 is a schematic diagram illustrating a principle of a node information batch configuration method according to a first embodiment of the present invention.
Fig. 4 is a schematic block diagram of a structure of a node information batch configuration apparatus according to a second embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
The existing distributed storage cluster node configuration is set one by adopting a direct connection mode, along with the sudden increase of the number of nodes in a cluster, the traditional single node is adopted again, and equipment is carried out one by one, so that the efficiency is insufficient, and errors are easy to occur when node information is manually set, such as node IP setting, a plurality of IPs are often set for a single node, the configuration errors are caused by slight carelessness, the cluster cannot be deployed, and the problem is solved by spending a long time. The invention provides a distributed storage cluster node information batch configuration scheme, which only needs to set one node (namely a main node), fills a configuration file containing information of each node (information such as node SN number, node IP address, node name and the like), imports the configuration file through web service on the first node, reads the configuration file by the main node, analyzes the content of the file, broadcasts the analyzed configuration information to other nodes in a data packet mode, and the other nodes finish self information configuration according to the received information. By the method, the main workload of node information setting is converted from information which is connected to each node and manually configured to the SN number of each node, and the SN number and the node information are filled in a configuration file; the configuration process is simplified, the configuration efficiency is improved, and meanwhile, the probability of errors of manual configuration information is reduced.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
Fig. 1 is a schematic flow chart of a node information batch configuration method provided in this embodiment, where the method is applied to a distributed storage cluster, and includes the following steps.
And S101, networking all the nodes according to network planning, so that network intercommunication among all the nodes is realized.
And performing network planning in advance, networking all nodes to form a local area network so as to facilitate communication of each node in the subsequent local area network, acquiring broadcast information, receiving a data packet and the like.
S102, selecting a node as a main node to configure node information.
Any node is selected as the main node according to the requirement, and the main node can be selected according to the performance of each node. According to the scheme, only manual node information configuration needs to be carried out on the main node, and other nodes (except the main node in the local area network) receive the data packet broadcast by the main node and automatically configure the data packet. In addition, node information configuration is carried out on the main node, so that an operator can use the web service on the main node through a browser to carry out configuration file operation and the like.
S103, the main node acquires the configuration file and analyzes the content in the configuration file to construct each data packet; the configuration file comprises the unique identification codes of other nodes and corresponding node information.
The configuration file comprises the unique identification codes of other nodes and corresponding node information, each data packet is constructed according to the unique identification codes, and each unique identification code and the corresponding node information form one data packet.
Wherein the unique identification code may use an SN Number (Serial Number) of the node. According to different configurations, the node information specifically includes different configuration information, for example, the node information includes an IP address and a node name to be configured by the node, so that the node implements configuration of the IP address.
And S104, the main node sends out each data packet in a broadcasting mode, and other nodes in the same local area network automatically configure according to the node information in the data packet after receiving the data packet.
Other nodes in the same local area network monitor the broadcast information in real time, and after receiving the data packet, the nodes in the data packet are analyzed to complete automatic configuration.
In the method for batch configuration of node information provided in this embodiment, only one node needs to be configured, and then node information is issued to each node in a manner of importing a configuration file, and each node completes its own information configuration. According to the invention, the workflow set by the node information is directly connected with each node, then the information of each node is manually input, and the workflow is transferred to the filling of the configuration file, so that the node information configuration flow is simplified, the manual participation is reduced, and the error rate possibly caused by manual operation is reduced.
In this embodiment, the master node obtains the configuration file to analyze the configuration file to form a data packet, where the configuration file includes the unique identification codes of other nodes and corresponding node information. In some embodiments, the configuration file is manually populated by an operator and based on the web service of the host node, the configuration template and the unique identification code of each node are downloaded and the node information is populated into the configuration template to form the configuration file. The method comprises the steps of setting a configuration file after the master node completes node information configuration by means of web service of the master node, and specifically, after one node is selected as the master node to perform node information configuration, executing the following steps to perform configuration file setting.
Step one, a browser is used for accessing a web service of a main node to download a configuration template and unique identification codes of other nodes.
And step two, filling the unique identification codes of other nodes and the corresponding node information into a configuration template to form a configuration file.
And step three, importing the configuration file through a browser, so that the main node acquires the configuration file.
The configuration template is preset based on a certain rule, and an operator can manually fill the unique node identification code and the node information.
In this embodiment, the master node parses the content in the configuration file to construct each data packet, and then broadcasts the data packet to other nodes, and the other nodes monitor the broadcast information of the master node in real time, and in order to identify the data packet required for configuration, in some specific embodiments, when the master node parses the content in the configuration file to construct each data packet, a configuration identifier is further set for each data packet. Correspondingly, when other nodes in the same local area network receive the data packet, the method specifically comprises the following processes: and other nodes in the same local area network monitor the broadcast information, judge whether the broadcast information contains the configuration identifier, and if so, judge that the data packet is a data packet of the configuration node information and receive the data packet.
In this embodiment, the master node constructs a plurality of data packets, each data packet should correspond to one node, and each of the other nodes should select the data packet corresponding to itself to extract correct information. Therefore, when the specific implementation is carried out, other nodes carry out automatic configuration according to the data including the internal node information, the nodes compare the unique identification codes in the received data packet with the unique identification codes of the nodes, if the unique identification codes are consistent, the data packet is judged to be the required data packet, and the automatic configuration is carried out based on the data packet.
In order to further explain the present invention, in the following, in combination with the above steps, based on the principle of the present invention, a specific embodiment is provided, in which an automatic configuration server of a node is embedded into a Linux system, and after the node system is filled, the automatic configuration server is automatically started, so as to implement automatic batch configuration of node information. Firstly, networking all nodes according to a preset network plan, so that network intercommunication among all nodes can be realized; then node information setting is carried out on the main node, and the main node is configured mainly for using web service on the main node through a browser and further configuring information of other nodes; then, accessing the web service of the main node through a browser, and downloading a configuration template and SN (serial number) information of each node through the browser; filling information of each node and a node SN number into a configuration template, importing the filled template through a browser, analyzing the template file by a main node, forming data models capable of being analyzed by services of other nodes by the analyzed information of each node and a node information configuration identifier, and sending the data models out in a broadcasting mode; after other nodes in the same local area network receive the broadcast message, whether the broadcast message contains the configuration identifier is firstly searched, if yes, the data packet is considered to be required by the configuration node information, then the SN number of the node is compared with the SN number in the data packet, the data packet is judged to be the data packet required by the node, and then the node information configuration is completed.
Specifically, this embodiment includes the following steps.
Step one, all nodes are networked according to network planning, and network intercommunication among all nodes is achieved.
And step two, selecting one node as a main node to configure node information.
Thirdly, a browser is used for accessing the web service of the main node to download a configuration template and the unique identification codes of other nodes; filling the unique identification codes of other nodes and the corresponding node information into a configuration template to form a configuration file; and importing the configuration file through a browser, so that the main node acquires the configuration file.
And fourthly, the main node acquires the configuration file, analyzes the content in the configuration file to construct each data packet, and sets a configuration identifier for each data packet.
And step five, the main node sends out each data packet in a broadcasting mode.
And step six, monitoring the broadcast information in real time by other nodes in the same local area network with the main node, judging whether the broadcast information contains the configuration identification, if so, judging that the data packet is the data packet of the configuration node information, and receiving the data packet.
And step seven, the node compares the unique identification code in the received data packet with the unique identification code of the node, if the unique identification code is consistent with the unique identification code of the node, the node judges the data packet to be a required data packet, and automatic configuration is carried out based on the data packet.
According to the scheme, the node information configuration of each node one by one and manually in a direct connection mode is not needed any more; the configuration work is encapsulated into a service, and the automatic configuration is completed by importing the configuration file, so that the work flow is simplified, the error caused by manual error is avoided, meanwhile, the information setting of each node is synchronously performed, the configuration efficiency is greatly improved, and the work period is shortened.
As shown in fig. 2, a schematic diagram of a principle of a conventional configuration mode is provided, an operator manually configures node information one by one in a direct connection manner, as shown in fig. 3, a schematic diagram of a principle of a node information batch configuration method according to the first embodiment is provided, the operator only needs to download a configuration template to fill in configuration information, and configures a first node, and other nodes are automatically configured.
Therefore, in the conventional mode, the portal information, the node name, and the configuration file of each node need to be manually configured, for example, there are 100 nodes, and each node configures 3 portal information (usually, at least 3, if binding is needed and the number of virtual local area networks is possibly more), then the nodes need to be directly connected to 100 nodes respectively, and then configuration is performed for 500 times in total; in the invention, only one node needs to be configured, and the configuration and the filling of the configuration file are carried out for 5 times; the workload is greatly reduced, and the configuration is completed by a program, so that errors are not easy to occur.
Example two
The second embodiment provides a node information batch configuration device, which is applied to a distributed storage cluster and is used for implementing the node information batch configuration method.
Fig. 4 is a schematic block diagram of a structure of a node information batch configuration apparatus provided in the second embodiment, including a first configuration module configured on a master node and a second configuration module configured on another node.
Wherein, the first configuration module comprises the following functional units.
A configuration file acquisition unit: and acquiring a configuration file.
A configuration file analysis unit: analyzing the content in the configuration file; the configuration file comprises the unique identification codes of other nodes and corresponding node information.
A packet construction unit: and constructing the content analyzed from the configuration file into each data packet.
A broadcasting unit: and sending out each data packet in a broadcasting mode.
The second configuration module includes the following functional units.
A packet receiving unit: and receiving the data packet broadcasted by the main node in the same local area network.
An automatic configuration unit: and carrying out automatic configuration based on the node information in the received data packet.
In some embodiments, when the packet construction unit constructs the content parsed from the configuration file into each packet, a configuration identifier is further set for each packet.
In some specific embodiments, when the packet receiving unit receives the packet, the method specifically includes: monitoring the broadcast information, judging whether the broadcast information contains the configuration identifier, if so, judging that the data packet is the data packet of the configuration node information, and receiving the data packet.
In some specific embodiments, the automatically configuring unit performs automatic configuration based on the node information in the received data packet, which specifically includes: and comparing the unique identification code in the received data packet with the unique identification code of the data packet, if the unique identification code is consistent with the unique identification code, judging the data packet to be a required data packet, and automatically configuring based on the data packet.
It should be noted that the configuration file acquired by the master node is set by an operator, after one node is selected as the master node to configure the node information, the operator accesses the web service of the master node through a browser to download the configuration template and the unique identification codes of other nodes, fills the unique identification codes of other nodes and the corresponding node information into the configuration template to form the configuration file, and fills the unique identification codes of other nodes and the corresponding node information into the configuration template to form the configuration file;
the node information batch configuration apparatus of this embodiment is used to implement the foregoing node information batch configuration method, so that a specific implementation manner in the apparatus can be seen in the foregoing embodiment section of the node information batch configuration method, and therefore, the specific implementation manner thereof may refer to the description of the corresponding respective section embodiments, and is not described here again.
In the second embodiment, the node information batch configuration device only needs to configure one node, and then issues the node information to each node in a manner of importing the configuration file, so that each node completes its own information configuration. According to the invention, the workflow set by the node information is directly connected with each node, then the information of each node is manually input, and the workflow is transferred to the filling of the configuration file, so that the node information configuration flow is simplified, the manual participation is reduced, and the error rate possibly caused by manual operation is reduced.
EXAMPLE III
Fig. 5 is a schematic structural diagram of a terminal device 500 according to an embodiment of the present invention, including: a processor 510, a memory 520, and a communication unit 530. The processor 510 is configured to implement the node information batch configuration program stored in the memory 520, and implement the following steps:
networking all nodes according to network planning, so that network intercommunication among all nodes is realized;
selecting a node as a main node to configure node information;
the main node acquires the configuration file and analyzes the content in the configuration file to construct each data packet; the configuration file comprises the unique identification codes of other nodes and corresponding node information;
the main node sends out each data packet in a broadcasting mode, and other nodes in the same local area network automatically configure according to node information in the data packet after receiving the data packet.
The invention only needs to configure one node, then sends the node information to each node by importing the configuration file, and each node completes the self information configuration. According to the invention, the workflow set by the node information is directly connected with each node, then the information of each node is manually input, and the workflow is transferred to the filling of the configuration file, so that the node information configuration flow is simplified, the manual participation is reduced, and the error rate possibly caused by manual operation is reduced.
The terminal apparatus 500 includes a processor 510, a memory 520, and a communication unit 530. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 520 may be used for storing instructions executed by the processor 510, and the memory 520 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 520, when executed by processor 510, enable terminal 500 to perform some or all of the steps in the method embodiments described below.
The processor 510 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, processor 510 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 530 for establishing a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
Example four
The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
The computer storage medium stores a node information bulk configuration program that when executed by a processor implements the steps of:
networking all nodes according to network planning, so that network intercommunication among all nodes is realized;
selecting a node as a main node to configure node information;
the main node acquires the configuration file and analyzes the content in the configuration file to construct each data packet; the configuration file comprises the unique identification codes of other nodes and corresponding node information;
the main node sends out each data packet in a broadcasting mode, and other nodes in the same local area network automatically configure according to node information in the data packet after receiving the data packet.
The invention only needs to configure one node, then sends the node information to each node by importing the configuration file, and each node completes the self information configuration. According to the invention, the workflow set by the node information is directly connected with each node, then the information of each node is manually input, and the workflow is transferred to the filling of the configuration file, so that the node information configuration flow is simplified, the manual participation is reduced, and the error rate possibly caused by manual operation is reduced.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
In the embodiments provided in the present invention, 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 other divisions may be realized in practice, 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.
The units described as separate parts may or may not be physically separate, and parts displayed 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 can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention 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 above disclosure is only for the preferred embodiments of the present invention, but the present invention is not limited thereto, and any non-inventive changes that can be made by those skilled in the art and several modifications and amendments made without departing from the principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. A node information batch configuration method is applied to a distributed storage cluster and is characterized by comprising the following steps:
networking all nodes according to network planning, so that network intercommunication among all nodes is realized;
selecting a node as a main node to configure node information;
the main node acquires the configuration file and analyzes the content in the configuration file to construct each data packet; the configuration file comprises the unique identification codes of other nodes and corresponding node information;
the main node sends out each data packet in a broadcasting mode, and other nodes in the same local area network automatically configure according to node information in the data packet after receiving the data packet.
2. The method for batch configuration of node information according to claim 1, wherein after selecting a node as a master node for node information configuration, the method further comprises the following steps:
the method comprises the steps that a browser accesses a web service of a main node to download a configuration template and unique identification codes of other nodes;
filling the unique identification codes of other nodes and the corresponding node information into a configuration template to form a configuration file;
and importing the configuration file through a browser, so that the main node acquires the configuration file.
3. The method for batch configuration of node information according to claim 2, wherein the step of the master node analyzing the content in the configuration file to construct each data packet further comprises the steps of:
and setting configuration identification for each data packet.
4. The method for batch configuration of node information according to claim 3, wherein when receiving the data packet, the other nodes in the same local area network specifically include the following steps:
and other nodes in the same local area network monitor the broadcast information, judge whether the broadcast information contains the configuration identifier, and if so, judge that the data packet is a data packet of the configuration node information and receive the data packet.
5. The method for batch configuration of node information according to claim 4, wherein when other nodes perform automatic configuration according to data including internal node information, the method comprises the following steps:
and the node compares the unique identification code in the received data packet with the unique identification code of the node, if the unique identification code is consistent with the unique identification code of the node, the node judges the data packet to be a required data packet, and automatic configuration is carried out based on the data packet.
6. A node information batch configuration device is applied to a distributed storage cluster and is characterized by comprising a first configuration module configured on a main node and a second configuration module configured on other nodes;
the first configuration module includes a configuration module that includes,
a configuration file acquisition unit: acquiring a configuration file;
a configuration file analysis unit: analyzing the content in the configuration file; the configuration file comprises the unique identification codes of other nodes and corresponding node information;
a packet construction unit: constructing the content analyzed from the configuration file into each data packet;
a broadcasting unit: sending out each data packet in a broadcasting mode;
the second configuration module includes a second configuration module that includes,
a packet receiving unit: receiving data packets broadcasted by main nodes in the same local area network;
an automatic configuration unit: and carrying out automatic configuration based on the node information in the received data packet.
7. The apparatus according to claim 6, wherein the packet construction unit further sets a configuration identifier for each packet when constructing the content parsed from the configuration file into each packet;
when the data packet receiving unit receives the data packet, the method specifically includes:
monitoring the broadcast information, judging whether the broadcast information contains the configuration identifier, if so, judging that the data packet is the data packet of the configuration node information, and receiving the data packet.
8. The apparatus for batch configuration of node information according to claim 7, wherein the automatic configuration unit performs automatic configuration based on the node information in the received data packet, and specifically includes:
and comparing the unique identification code in the received data packet with the unique identification code of the data packet, if the unique identification code is consistent with the unique identification code, judging the data packet to be a required data packet, and automatically configuring based on the data packet.
9. A terminal, comprising:
the memory is used for storing a node information batch configuration program;
a processor for implementing the steps of the node information batch configuration method according to any one of claims 1 to 5 when executing the node information batch configuration program.
10. A computer-readable storage medium, wherein the computer-readable storage medium has stored thereon a node information batch configuration program, which when executed by a processor implements the steps of the node information batch configuration method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111384208.4A CN114285739A (en) | 2021-11-19 | 2021-11-19 | Node information batch configuration method, device, terminal and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111384208.4A CN114285739A (en) | 2021-11-19 | 2021-11-19 | Node information batch configuration method, device, terminal and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114285739A true CN114285739A (en) | 2022-04-05 |
Family
ID=80869529
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111384208.4A Withdrawn CN114285739A (en) | 2021-11-19 | 2021-11-19 | Node information batch configuration method, device, terminal and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114285739A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115208758A (en) * | 2022-06-14 | 2022-10-18 | 福建新大陆通信科技股份有限公司 | Batch management method for emergency broadcasting equipment |
-
2021
- 2021-11-19 CN CN202111384208.4A patent/CN114285739A/en not_active Withdrawn
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115208758A (en) * | 2022-06-14 | 2022-10-18 | 福建新大陆通信科技股份有限公司 | Batch management method for emergency broadcasting equipment |
CN115208758B (en) * | 2022-06-14 | 2023-05-30 | 福建新大陆通信科技股份有限公司 | Batch management method for emergency broadcasting equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111371638B (en) | Intelligent equipment testing method and device, server and storage medium | |
CN110719209B (en) | Cluster network configuration method, system, equipment and readable storage medium | |
CN114244717B (en) | Configuration method and device of virtual network card resources, computer equipment and medium | |
CN110120970B (en) | Data processing method and device based on Internet of vehicles and gateway system | |
CN111885115A (en) | Equipment binding change method and device | |
CN110290024B (en) | Method, device and equipment for testing strategy before online | |
CN113312064A (en) | Installation configuration method and device of physical machine and computer readable medium | |
CN104811979A (en) | Pressure testing method and device based on FOTA upgrading | |
CN111813622B (en) | Equipment monitoring method and device | |
CN111459795A (en) | Cluster pressure testing method and device, computer equipment and storage medium | |
CN114285739A (en) | Node information batch configuration method, device, terminal and storage medium | |
CN114221866A (en) | Method, device and medium for upgrading terminal | |
CN110535919B (en) | Network access method and device of concentrator and power peak regulation system | |
CN112333026A (en) | Network device, network management device and zero configuration opening system and method for network device | |
CN112788576A (en) | Equipment offline processing method and system, storage medium and electronic device | |
CN112003730A (en) | Method, system, terminal and storage medium for rapid cluster deployment | |
CN116319492A (en) | Switch testing method and device, storage medium and electronic equipment | |
CN111506501A (en) | Test instruction set generation method and device and electronic equipment | |
CN113076111A (en) | Customized cluster configuration method, system, terminal and storage medium | |
CN114138654A (en) | Interface test case generation method and device, computer equipment and storage medium | |
CN113934591A (en) | Data monitoring method and device, storage medium and electronic device | |
CN113934552A (en) | Method and device for determining function code, storage medium and electronic device | |
CN112465604A (en) | Order distribution method and device, computer equipment and computer readable storage medium | |
CN115914055A (en) | Distributed network testing method, device, medium and equipment | |
CN112698948A (en) | Method and device for acquiring product resources, storage medium and electronic device |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220405 |
|
WW01 | Invention patent application withdrawn after publication |