CN112003736A - Multi-node configuration information determining method, device and storage medium - Google Patents

Multi-node configuration information determining method, device and storage medium Download PDF

Info

Publication number
CN112003736A
CN112003736A CN202010755350.4A CN202010755350A CN112003736A CN 112003736 A CN112003736 A CN 112003736A CN 202010755350 A CN202010755350 A CN 202010755350A CN 112003736 A CN112003736 A CN 112003736A
Authority
CN
China
Prior art keywords
node
information
pointing
configuration
target
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.)
Granted
Application number
CN202010755350.4A
Other languages
Chinese (zh)
Other versions
CN112003736B (en
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.)
Shenzhen Tencent Domain Computer Network Co Ltd
Original Assignee
Shenzhen Tencent Domain Computer Network 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 Shenzhen Tencent Domain Computer Network Co Ltd filed Critical Shenzhen Tencent Domain Computer Network Co Ltd
Priority to CN202010755350.4A priority Critical patent/CN112003736B/en
Publication of CN112003736A publication Critical patent/CN112003736A/en
Application granted granted Critical
Publication of CN112003736B publication Critical patent/CN112003736B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method, a device and a storage medium for determining multi-node configuration information, wherein the method comprises the following steps: determining a target node group in a configuration file, wherein the target node group comprises at least two target nodes, and each target node corresponds to the same configuration information; determining configuration information of a first node in the target node group; determining a set of nodes in the target node group other than the first node as a second node set, the second node set including at least one second node; determining configuration pointing information of each second node in the second node set, wherein the configuration pointing information of one second node is configured as address information of the first node; and acquiring the configuration information of each second node according to the configuration pointing information of each second node in the second node set. By adopting the method, the parameter configuration redundancy of the nodes is reduced, and the maintainability and the configuration efficiency of the configuration information are improved.

Description

Multi-node configuration information determining method, device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for determining multi-node configuration information, and a storage medium.
Background
In the prior art, when different configuration nodes need to use the same configuration information, the configuration information of only one configuration node can be copied and copied to obtain the configuration information of other configuration nodes; for example, when two peer configuration nodes a and b need to use the same configuration information, the current implementation scheme writes the configuration information of the node a first, and then writes a copy of the configuration information to the node b repeatedly.
In the prior art, configuration information can be repeatedly filled in configuration only in a large amount of redundancy; or the configuration information can only be obtained through the program, and the target configuration is constructed by combining and splicing in the use process, and the method needs to additionally add a logic code using the configuration information, and needs to modify the code logic when the configuration information changes, which is not beneficial to system maintenance and expansion.
The scheme in the prior art can cause a large amount of node parameter redundancy and increase the maintenance difficulty of configuration information; in addition, it is easy to miss the modification of some associated nodes in the configuration modification in the case where a plurality of nodes need to use the same configuration information.
Therefore, it is necessary to provide a method, an apparatus, and a storage medium for determining multi-node configuration information, which avoid repeatedly writing configuration information of each node, thereby reducing redundancy of parameter configuration of the node, and improving maintainability and configuration efficiency of the configuration information.
Disclosure of Invention
The application provides a method, a device and a storage medium for determining multi-node configuration information, which can avoid repeatedly writing the configuration information of each node, thereby reducing the parameter configuration redundancy of the node and improving the maintainability and configuration efficiency of the configuration information.
In one aspect, the present application provides a method for determining multi-node configuration information, where the method includes:
determining a target node group in a configuration file, wherein the target node group comprises at least two target nodes, and each target node corresponds to the same configuration information;
determining configuration information of a first node in the target node group;
determining a set of nodes in the target node group other than the first node as a second node set, the second node set including at least one second node;
determining configuration pointing information of each second node in the second node set, wherein the configuration pointing information of one second node is configured as address information of the first node;
and acquiring the configuration information of each second node according to the configuration pointing information of each second node in the second node set.
Another aspect provides a multi-node configuration information determining apparatus, the apparatus including:
a target node group determining module, configured to determine a target node group in the configuration file, where the target node group includes at least two target nodes, and each target node corresponds to the same configuration information;
a configuration information determining module of the first node, configured to determine configuration information of the first node in the target node group;
a second node set determining module, configured to determine a set formed by nodes in the target node group except the first node as a second node set, where the second node set includes at least one second node;
a configuration direction information determining module, configured to determine configuration direction information of each second node in the second node set, where the configuration direction information of one second node is configured as address information of the first node;
and the configuration information determining module of the second node is used for acquiring the configuration information of each second node according to the configuration pointing information of each second node in the second node set.
Another aspect provides a multi-node configuration information determining apparatus, the apparatus comprising a processor and a memory, the memory having at least one instruction or at least one program stored therein, the at least one instruction or the at least one program being loaded and executed by the processor to implement the multi-node configuration information determining method as described above.
Another aspect provides a computer-readable storage medium storing at least one instruction or at least one program, the at least one instruction or at least one program being loaded and executed by a processor to implement the multi-node configuration information determining method as described above.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the multi-node configuration information determination method.
The multi-node configuration information determining method, the multi-node configuration information determining device and the storage medium have the following technical effects:
according to the method and the device, the target node group needing to be provided with the same configuration information in the configuration file is determined, the configuration information of the first node in the target node group is determined, the configuration pointing information of other nodes in the target node group is set, and the configuration information of one node in the other nodes points to the address of the first node, so that the same configuration information is directly configured for the nodes based on the configuration pointing information of the nodes, repeated writing of the configuration information of each node is avoided, the parameter configuration redundancy of the nodes is reduced, and the maintainability and the configuration efficiency of the configuration information are improved.
Drawings
In order to more clearly illustrate the technical solutions and advantages of the embodiments of the present application or the prior art, the drawings used in the description of the embodiments or the 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 other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of a multi-node configuration information determination system according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a multi-node configuration information determining method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a method for determining configuration direction information of each second node in the second node set according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a method for determining address information of a first node according to an embodiment of the present application;
fig. 5 is a schematic diagram of an address information structure of a first node according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a method for acquiring configuration information of each second node according to an embodiment of the present application;
fig. 7 is a flowchart illustrating a method for determining configuration information of peer nodes a and b according to an embodiment of the present application;
fig. 8 is a schematic flowchart of a method for determining configuration information of a child node region node under a node a and a child node region node of a base node according to the embodiment of the present application;
fig. 9 is a schematic flowchart of a method for determining configuration information of a multi-level nested node according to an embodiment of the present application;
fig. 10 is a schematic flowchart of a method for determining configuration information of a parent-child node according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a blockchain system according to an embodiment of the present disclosure;
FIG. 12 is a block diagram according to an embodiment of the present disclosure;
fig. 13 is a configuration item relationship diagram obtained by using the node configuration information determining method according to the present application provided in the embodiment of the present application;
fig. 14 is a configuration item relationship diagram obtained by a method of repeatedly writing node configuration information according to the prior art provided in an embodiment of the present application;
FIG. 15 is a schematic structural diagram of a multi-node configuration information determining apparatus according to an embodiment of the present application;
fig. 16 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the 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.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Referring to fig. 1, fig. 1 is a schematic diagram of a multi-node configuration information determining system according to an embodiment of the present disclosure, and as shown in fig. 1, the multi-node configuration information determining system may at least include a server 01 and a client 02.
Specifically, in this embodiment of the present disclosure, the server 01 may include a server that operates independently, or a distributed server, or a server cluster composed of a plurality of servers. The server 01 may comprise a network communication unit, a processor, a memory, etc. Specifically, the server 01 may be configured to determine configuration information of a plurality of nodes in a configuration file.
Specifically, in the embodiment of the present disclosure, the client 02 may include a physical device such as a smart phone, a desktop computer, a tablet computer, a notebook computer, a digital assistant, and a smart wearable device, and may also include software running in the physical device, such as a web page provided by some service providers to a user, and an application provided by the service providers to the user. Specifically, the client 02 may be used to write configuration information of a node.
A multi-node configuration information determining method of the present application is described below, and fig. 2 is a flowchart illustrating a multi-node configuration information determining method provided in an embodiment of the present application, and the present specification provides the method operation steps as described in the embodiment or the flowchart, but may include more or less operation steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 2, the method may include:
s201: and determining a target node group in the configuration file, wherein the target node group comprises at least two target nodes, and each target node corresponds to the same configuration information.
In this specification embodiment, a configuration file may be a file in an application program, and each application program may include one or more configuration files; the applications may include gaming applications, multimedia file playing applications, and the like.
In this embodiment of the present specification, before setting configuration information of a node, a node that needs to set the same configuration information may be determined in advance, and then nodes in a configuration file may be divided into a plurality of target node groups according to the configuration information corresponding to the node, where one configuration file may include a plurality of target node groups; the configuration information of the target nodes in each target node group is the same, and different target nodes in the same group can be peer nodes, parent-child nodes or multi-level nested nodes and the like.
S203: configuration information of a first node in the target node group is determined.
Specifically, in the embodiment of the present specification, configuration information of a first node may be written in a terminal, and then sent to a server; the target node group may include only one first node, and the first node may be any one node in the target node group;
s205: determining a set of nodes in the target node group other than the first node as a second node set, the second node set including at least one second node.
Specifically, in this embodiment of the present specification, the nodes in the target node group may be divided into a first node and a second node, and the configuration information of the two nodes is the same; the second set of nodes may include one or more second nodes, and the configuration information of each second node in the second set of nodes is the same as the configuration information of the first node.
S207: and determining configuration pointing information of each second node in the second node set, wherein the configuration pointing information of one second node is configured as the address information of the first node.
Specifically, in the embodiment of the present specification, the configuration information of each second node is directly or indirectly obtained through the configuration information of the first node.
Specifically, in this embodiment of the present specification, when one second node is included in the second node set, the determining configuration pointing information of each second node in the second node set may include:
and configuring configuration pointing information of the second node as address information of the first node.
Specifically, in this embodiment of the present specification, as shown in fig. 3, when the second node set includes at least two second nodes, the determining configuration pointing information of each second node in the second node set may include:
s2071: determining any second node in the second node set as a target second node;
s2073: configuring configuration pointing information of the target second node as address information of the first node;
s2075: and determining configuration pointing information of second nodes except the target second node in the second node set according to the configuration pointing information of the target second node.
In this embodiment of the present specification, after determining the configuration direction information of the target second node, the configuration information of the target second node may be determined according to the configuration direction information; configuring configuration pointing information of any second node remaining in the second node set as address information of the target second node; setting the configuration information of the target second node as the configuration information of any second node according to the address information of the target second node; by analogy, the configuration direction information of all the second nodes in the second node set can be determined.
In this specification embodiment, the configuration direction information of each other second node in the second node set may be determined according to the configuration direction information of the target second node, so as to facilitate determination of the configuration information of each second node.
Specifically, in this embodiment of the present specification, as shown in fig. 4, before the step of configuring the configuration pointing information of the target second node as the address information of the first node, the method further includes:
s20711: setting a target format of the address information;
s20713: determining address information of the first node based on a target format of the address information.
Specifically, in the embodiment of the present specification, a mark identification symbol may be added on both sides of the address information; for example: ' [ < ] ' or ' [ ] ' or ' < ' > ' or ' { } ' or '/', and the like; the address information is usually the path information of the node, starting from the root node to the current node, and may also add a separator to the identification information of the nodes at different levels in the address information, for example, the separator may be a single or joint symbol such as ' · ' or ' - ' or ' _ ' or ' - >; as shown in fig. 5, the address information added with the mark identification symbol and the separator on both sides may be [ <. > where is the identification information (e.g., node name) of the node of different levels.
Specifically, in this embodiment of the present specification, after the step of determining a set formed by nodes other than the first node in the target node group as the second node set, the method further includes:
determining a target format of address information of each second node pointing to the node;
and constructing the address information of the pointing node of each second node according to the target format of the address information.
In a specific embodiment, the address information of the second node pointing to the node may be '[ < a.actid > ]'.
Specifically, in this embodiment of the present specification, after the step of constructing the address information of each second node pointing to a node according to the target format of the address information, the method further includes:
when the pointing node matches the parameter value, setting the state flag of the pointing node as a first flag;
and when the pointing node is matched with the memory address, setting the state mark of the pointing node as a second mark.
In this embodiment of the present description, different labels may be adopted for different pointing nodes, and when a multi-node hierarchy is referred to, for example, a refers to b, and b refers to c, a feature mark point is needed, and the reference is performed to obtain a memory address, instead of an address of the memory address, so as to avoid referring to the address of the address. The memory address stores a lot of data, which is configuration information.
S209: and acquiring the configuration information of each second node according to the configuration pointing information of each second node in the second node set.
Specifically, in this embodiment of the present specification, as shown in fig. 6, the configuration pointing information of each second node in the second node set is pointer information, and the acquiring the configuration information of each second node according to the configuration pointing information of each second node in the second node set may include:
s2091: determining address information of a pointing node corresponding to each second node according to the pointer information of each second node;
in the embodiment of this specification, a Pointer (Pointer) is an object in a programming language whose value directly points to a value stored elsewhere in computer memory, using an address. Since the desired variable location can be found by the address, the address can be said to point to the variable location. Therefore, the address information can be determined by the pointer information. For example, when the pointer of the second node points to ' [ < a > ] ', ' [ < b > ] ' or ' [ < base.
S2093: searching the pointing node of each second node according to the address information of the pointing node corresponding to each second node;
s2095: acquiring configuration information of the pointing node of each second node;
s2097: and taking the configuration information of each second node pointing to the node as the configuration information of each second node.
In this embodiment of the present specification, the address information of each pointing node may be path information of the pointing node, a path from the root node to the pointing node is recorded, the pointing node may be searched according to the path information, and configuration information of the pointing node is acquired.
Specifically, in this embodiment of the present specification, before the step of searching for a pointing node of each second node according to address information of a pointing node corresponding to each second node, the method further includes:
traversing nodes in the configuration file, and determining address information as a matching node of a target format;
in this embodiment of the present specification, all nodes of the entire configuration information may be traversed, matching is performed in an agreed characteristic format (target format), and when the traversed matching is performed in the agreed characteristic format, after the identification symbols marked on both sides are removed, segmentation is performed with separators, so as to obtain a node name of each layer of nodes in the characteristic information. For example, the feature format matching canonical example: [ \\ (([ a-zA-Z0-9_ - ] +) (\\ a-zA-Z0-9_ - ] +).
In this embodiment of the present specification, the searching for the destination node of each second node according to the address information of the destination node corresponding to each second node includes:
s20931: determining identification information corresponding to each level of nodes in the address information of the pointing node corresponding to each second node according to the address information of the pointing node corresponding to each second node;
s20933: traversing the matched nodes in the configuration file, and starting to search from the root node in the address information of the pointing node corresponding to each second node until the node of the last level in the address information is matched;
s20935: taking the node of the last hierarchy in the address information corresponding to each second node as a pointing node of each second node;
in this embodiment of the present specification, searching may be performed step by step according to node names according to address information pointing to nodes, starting the searching with a root node, performing node name matching on each layer of nodes, and returning memory address reference of a parameter value corresponding to a node of a last layer to a node configured with address information as a target format when matching is successful for all layer node names.
In this embodiment of the present specification, the acquiring configuration information of a node pointing to each second node includes:
acquiring a memory address corresponding to the pointing node of each second node;
and acquiring configuration information of the pointing node of each second node according to the memory address corresponding to the pointing node of each second node.
In the embodiments of the present specification, a memory address stores a lot of data, i.e., configuration information.
Specifically, in this embodiment of the present specification, when the target node group includes a multi-level target node, before the step of acquiring the configuration information of the node pointed to by each second node, the method further includes:
determining a state mark of a pointing node corresponding to each second node;
correspondingly, the obtaining of the memory address corresponding to the pointing node corresponding to each second node includes:
when the state mark is a first mark, acquiring a parameter value corresponding to a pointing node corresponding to each second node;
determining a memory address corresponding to the parameter value;
and when the state mark is a second mark, acquiring the memory address corresponding to the pointing node corresponding to each second node.
In this embodiment of the present specification, when a multi-node hierarchy is referred to, for example, a refers to b, and b refers to c, a feature mark point is to be made, and the purpose of reference is to obtain a memory address, rather than an address of the memory address, so as to avoid referring to the address of the address.
The multi-node configuration information determining method of the present application is described below with reference to specific application scenarios.
In an embodiment, when peer nodes a and b have the same configuration information, the node configuration method according to the present application is shown in fig. 7, and the corresponding programming codes are as follows:
Figure BDA0002611376660000101
Figure BDA0002611376660000111
wherein '[ < a > ]' is a quoted writing method, and the parser can point the pointer of the b node to the a node after parsing and identifying the content, so that the aim of multiplexing the configuration information of the b node and the a node is fulfilled.
In an embodiment, the sub-node region node under the a node and one sub-node region node of the base node need to use the same configuration, and the node configuration method adopting the present application is shown in fig. 8, and the corresponding programming codes are as follows:
Figure BDA0002611376660000112
the parser can point the region node pointer under the a node to the region node under the base node after parsing and identifying the content, so that the configuration contents of the two nodes are kept synchronous in real time.
In an embodiment, when the same configuration information exists in the multi-level nested node, for example, the configuration information of a child node under the node c is the same as the configuration information of the node b, and the node b has the same configuration information as the node a, the node configuration method adopting the present application is shown in fig. 9, and the corresponding programming codes are as follows:
Figure BDA0002611376660000113
Figure BDA0002611376660000121
wherein '[ < a > ] and' [ < b > ] are the writing method of the quote, the resolver can point the node pointer to the address of the a node when resolving to '[ < a > ]', and can point the node pointer to the b node when resolving to '[ < b > ]', thereby realizing more complex coupling relation quote. The analysis order of the three nodes a, b and c may be changed, for example, the configuration information of the node b may be written first, and then the configuration information of the nodes a and c may be obtained through sequential analysis according to the node b.
In one embodiment, when the parent-child nodes have the same configuration information, for example, the actId parameter of the child node under the a node is the same as the actId parameter of the a node, the node configuration method of the present application is adopted as shown in fig. 10, and the corresponding programming codes are as follows:
Figure BDA0002611376660000122
Figure BDA0002611376660000131
where "[ < a.actid > ]" is a writing of references by which other nodes under the parent node can be referenced as multi-level child nodes.
In an embodiment of the present specification, when a plurality of target node groups are included in the configuration file, the method may further include:
configuration information for a first node in each target node group is stored based on a blockchain system that includes a plurality of nodes forming a peer-to-peer network therebetween.
In some embodiments, the blockchain system may be the structure shown in fig. 11, a Peer-To-Peer (P2P) network is formed among a plurality of nodes, and the P2P Protocol is an application layer Protocol operating on top of a Transmission Control Protocol (TCP). In the blockchain system, any machine such as a server and a terminal can be added to become a node, and the node comprises a hardware layer, a middle layer, an operating system layer and an application layer.
The functions of each node in the blockchain system shown in fig. 11 include:
1) routing, a basic function that a node has, is used to support communication between nodes.
Besides the routing function, the node may also have the following functions:
2) the application is used for being deployed in a block chain, realizing specific services according to actual service requirements, recording data related to the realization functions to form recording data, carrying a digital signature in the recording data to represent a source of task data, and sending the recording data to other nodes in the block chain system, so that the other nodes add the recording data to a temporary block when the source and integrity of the recording data are verified successfully.
3) And the Block chain comprises a series of blocks (blocks) which are mutually connected according to the generated chronological order, new blocks cannot be removed once being added into the Block chain, and recorded data submitted by nodes in the Block chain system are recorded in the blocks.
In some embodiments, the Block Structure (Block Structure) may be the Structure shown in fig. 12, where each Block includes a hash value of the Block storing the transaction record (hash value of the Block) and a hash value of a previous Block, and the blocks are connected by the hash values to form a Block chain. The block may include information such as a time stamp at the time of block generation. A Block chain (Block chain), which is essentially a decentralized database, is a series of data blocks associated by using cryptography, and each data Block contains related information for verifying the validity (anti-counterfeiting) of the information and generating a next Block.
In a specific embodiment, the prior art and the scheme of the present application are respectively adopted to perform configuration information setting of nodes on configuration files of a maintenance platform of the same application program.
Fig. 13 is a configuration item relationship diagram obtained by the node configuration information determining method according to the present application; FIG. 14 is a relational diagram of configuration items obtained by a method of repeatedly compiling node configuration information according to the prior art;
the corresponding english notation in fig. 13-14 is as follows:
aci: a unified access module; and (5) Qual: a qualification platform; mrms: a delivery platform; batch: a batch query platform; trans: a transaction platform; jifen: an integration platform; idip: and a data interface platform.
The numbers in parentheses in fig. 13-14 represent the number of configuration items, for example, (9) represents 9 configuration items, and the analysis is performed on the number of total configuration items, and as can be seen from fig. 13-14, when there is a dependency relationship between modules in the system corresponding to the maintenance platform, if there is no scheme for configuration reference, a large number of configuration items are generated during configuration, the configuration items need to be configured repeatedly, a large amount of redundancy is generated, and the system is inconvenient to maintain and expand.
As can be seen from the above technical solutions provided by the embodiments of the present specification, the embodiments of the present specification determine a target node group in which the same configuration information needs to be set in a configuration file, determine configuration information of a first node in the target node group, and set configuration pointing information of other nodes in the target node group, where the configuration information of one node in the other nodes points to an address of the first node, so that the same configuration information is directly configured for the nodes based on the configuration pointing information of the nodes, and the configuration information of each node is prevented from being repeatedly written. The parameter configuration redundancy of the nodes is reduced, and the maintainability and configuration efficiency of the configuration information are improved.
An embodiment of the present application further provides a multi-node configuration information determining apparatus, as shown in fig. 15, the apparatus includes:
a target node group determining module 1510, configured to determine a target node group in the configuration file, where the target node group includes at least two target nodes, and each target node corresponds to the same configuration information;
a configuration information determining module 1520 of the first node, configured to determine configuration information of the first node in the target node group;
a second node set determining module 1530, configured to determine a set formed by nodes in the target node group except the first node as a second node set, where the second node set includes at least one second node;
a configuration direction information determining module 1540, configured to determine configuration direction information of each second node in the second node set, where the configuration direction information of one second node is configured as address information of the first node;
the configuration information determining module 1550 of the second node is configured to obtain the configuration information of each second node in the second node set according to the configuration pointing information of each second node.
In some embodiments, when at least two second nodes are included in the second node set, the configuration pointing information determination module may include:
a target second node determining submodule, configured to determine any second node in the second node set as a target second node;
the address information determination submodule of the first node is used for configuring the configuration pointing information of the target second node as the address information of the first node;
and the configuration direction information determining submodule of the second node is used for determining the configuration direction information of the second nodes except the target second node in the second node set according to the configuration direction information of the target second node.
In some embodiments, the configuration pointing information of each second node in the second node set is pointer information, and the configuration information determining module of the second node may include:
the pointing node address information determining submodule is used for determining the address information of the pointing node corresponding to each second node according to the pointer information of each second node;
the pointing node determination submodule of the second node is used for searching the pointing node of each second node according to the address information of the pointing node corresponding to each second node;
a configuration information determination submodule of the directed node, configured to acquire configuration information of the directed node of each second node;
and the configuration information determining submodule of the second nodes is used for taking the configuration information of the nodes pointed by each second node as the configuration information of each second node.
In some embodiments, the apparatus may further comprise:
the target format setting module is used for setting the target format of the address information;
an address information determination module, configured to determine address information of the first node based on a target format of the address information.
In some embodiments, the apparatus may further comprise:
and the matching node determining module is used for traversing the nodes in the configuration file and determining the matching node of which the address information is in the target format.
In some embodiments, the pointing nodes determination submodule of the second node may include:
an identification information determining unit, configured to determine, according to the address information of the pointing node corresponding to each second node, identification information corresponding to each level node in the address information of the pointing node corresponding to each second node;
the matching unit is used for traversing the matching nodes in the configuration file, and searching from the root node in the address information of the pointing node corresponding to each second node until the node of the last level in the address information is matched;
and a directed node determining unit, configured to use a node of a last hierarchy in the address information corresponding to each second node as a directed node of each second node.
In some embodiments, the node-directed configuration information determination submodule includes:
a memory address obtaining unit, configured to obtain a memory address corresponding to the pointing node of each second node;
and the configuration information acquisition unit is used for acquiring the configuration information of the pointing node of each second node according to the memory address corresponding to the pointing node of each second node.
In some embodiments, when a multi-level target node is included in the target node group, the apparatus may further include:
and the state mark determining module is used for determining the state marks of the pointing nodes corresponding to each second node.
In some embodiments, the memory address obtaining unit may include:
a parameter value determining subunit, configured to, when the state flag is a first flag, obtain a parameter value corresponding to a pointing node corresponding to each second node;
the memory address determining subunit is used for determining the memory address corresponding to the parameter value;
and the memory address acquisition subunit is configured to acquire a memory address corresponding to the pointing node corresponding to each second node when the status flag is the second flag.
In some embodiments, the apparatus may further comprise:
the destination address format determining module is used for determining the destination format of the destination address information of the destination node of each second node;
and the node-pointing address information construction module is used for constructing the node-pointing address information of each second node according to the target format of the address information.
In some embodiments, the apparatus may further comprise:
the first mark setting module is used for setting the state mark of the pointing node as a first mark when the pointing node is matched with the parameter value;
and the second mark setting module is used for setting the state mark of the pointing node as a second mark when the pointing node is matched with the memory address.
The device and method embodiments in the device embodiment described are based on the same inventive concept.
The embodiment of the application provides a multi-node configuration information determining device, which comprises a processor and a memory, wherein at least one instruction or at least one program is stored in the memory, and the at least one instruction or the at least one program is loaded and executed by the processor to realize the multi-node configuration information determining method provided by the above method embodiment.
Embodiments of the present application further provide a computer-readable storage medium, where the storage medium may be disposed in a terminal to store at least one instruction or at least one program for implementing a multi-node configuration information determination method in the method embodiments, and the at least one instruction or at least one program is loaded and executed by the processor to implement the multi-node configuration information determination method provided in the method embodiments.
Alternatively, in the present specification embodiment, the storage medium may be located at least one network server among a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The memory described in the embodiments of the present disclosure may be used to store software programs and modules, and the processor may execute various functional applications and data processing by operating the software programs and modules stored in the memory. The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs needed by functions and the like; the storage data area may store data created according to use of the apparatus, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory may also include a memory controller to provide the processor access to the memory.
The embodiment of the multi-node configuration information determining method provided by the embodiment of the application can be executed in a mobile terminal, a computer terminal, a server or a similar computing device. Taking the example of the method running on a server, fig. 16 is a hardware structure block diagram of the server of the multi-node configuration information determination method according to the embodiment of the present application. As shown in fig. 16, the server 1600 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 1610 (the processor 1610 may include but is not limited to a Processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1630 for storing data, and one or more storage media 1620 (e.g., one or more mass storage devices) for storing applications 1623 or data 1622. Memory 1630 and storage media 1620 may be transient or persistent storage, among others. The program stored in the storage medium 1620 may include one or more modules, and each module may include a series of instruction operations in a server. Further, the central processor 1610 may be configured to communicate with the storage medium 1620, and execute a series of instruction operations in the storage medium 1620 on the server 1600. The server 1600 may also include one or more power supplies 1660, one or more wired or wireless network interfaces 1650, one or more input-output interfaces 1640, and/or one or more operating systems 1621, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The input/output interface 1640 may be used to receive or transmit data over a network. Specific examples of such networks may include wireless networks provided by the communications provider of server 1600. In one example, i/o Interface 1640 includes a Network adapter (NIC) that may be coupled to other Network devices through a base station to communicate with the internet. In one example, the input/output interface 1640 may be a Radio Frequency (RF) module, which is used to communicate with the internet via wireless.
It will be understood by those skilled in the art that the structure shown in fig. 16 is merely illustrative and is not intended to limit the structure of the electronic device. For example, server 1600 may also include more or fewer components than shown in FIG. 16, or have a different configuration than shown in FIG. 16.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the multi-node configuration information determination method provided in the above-mentioned various alternative implementations.
As can be seen from the foregoing embodiments of the method, apparatus, or storage medium for determining multi-node configuration information provided by the present application, the present application determines a target node group in a configuration file that needs to set the same configuration information, determines configuration information of a first node in the target node group, and sets configuration pointing information of other nodes in the target node group, where the configuration information of one node in the other nodes points to an address of the first node, so that the same configuration information is directly configured for the nodes based on the configuration pointing information of the nodes, thereby avoiding repeatedly writing configuration information of each node. The parameter configuration redundancy of the nodes is reduced, and the maintainability and configuration efficiency of the configuration information are improved.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. 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.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, device, and storage medium embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for multi-node configuration information determination, the method comprising:
determining a target node group in a configuration file, wherein the target node group comprises at least two target nodes, and each target node corresponds to the same configuration information;
determining configuration information of a first node in the target node group;
determining a set of nodes in the target node group other than the first node as a second node set, the second node set including at least one second node;
determining configuration pointing information of each second node in the second node set, wherein the configuration pointing information of one second node is configured as address information of the first node;
and acquiring the configuration information of each second node according to the configuration pointing information of each second node in the second node set.
2. The method of claim 1, wherein when at least two second nodes are included in the second set of nodes, the determining the configuration pointing information for each second node in the second set of nodes comprises:
determining any second node in the second node set as a target second node;
configuring configuration pointing information of the target second node as address information of the first node;
and determining configuration pointing information of second nodes except the target second node in the second node set according to the configuration pointing information of the target second node.
3. The method according to claim 2, wherein the configuration pointing information of each second node in the second node set is pointer information, and the obtaining the configuration information of each second node according to the configuration pointing information of each second node in the second node set comprises:
determining address information of a pointing node corresponding to each second node according to the pointer information of each second node;
searching the pointing node of each second node according to the address information of the pointing node corresponding to each second node;
acquiring configuration information of the pointing node of each second node;
and taking the configuration information of each second node pointing to the node as the configuration information of each second node.
4. The method according to claim 1, wherein before the step of configuring the configuration pointing information of the target second node as the address information of the first node, the method further comprises:
setting a target format of the address information;
determining address information of the first node based on a target format of the address information.
5. The method according to claim 3, wherein before the step of searching for the node pointing to each second node according to the node pointing address information corresponding to each second node, the method further comprises:
traversing nodes in the configuration file, and determining address information as a matching node of a target format;
correspondingly, the searching the pointing node of each second node according to the address information of the pointing node corresponding to each second node includes:
determining identification information corresponding to each level of nodes in the address information of the pointing node corresponding to each second node according to the address information of the pointing node corresponding to each second node;
traversing the matched nodes in the configuration file, and starting to search from the root node in the address information of the pointing node corresponding to each second node until the node of the last level in the address information is matched;
taking the node of the last hierarchy in the address information corresponding to each second node as a pointing node of each second node;
correspondingly, the obtaining of the configuration information of the node pointing to each second node includes:
acquiring a memory address corresponding to the pointing node of each second node;
and acquiring configuration information of the pointing node of each second node according to the memory address corresponding to the pointing node of each second node.
6. The method according to claim 5, wherein when the target node group includes a multi-level target node, the step of obtaining the configuration information of the node pointing to each second node is preceded by the method further comprising:
determining a state mark of a pointing node corresponding to each second node;
correspondingly, the obtaining of the memory address corresponding to the pointing node corresponding to each second node includes:
when the state mark is a first mark, acquiring a parameter value corresponding to a pointing node corresponding to each second node;
determining a memory address corresponding to the parameter value;
and when the state mark is a second mark, acquiring the memory address corresponding to the pointing node corresponding to each second node.
7. The method of claim 1, wherein after the step of determining the set of nodes in the target group of nodes other than the first node as a second set of nodes, the method further comprises:
determining a target format of address information of each second node pointing to the node;
and constructing the address information of the pointing node of each second node according to the target format of the address information.
8. The method according to claim 7, wherein after the step of constructing the address information of each second node pointing to a node according to the target format of the address information, the method further comprises:
when the pointing node matches the parameter value, setting the state flag of the pointing node as a first flag;
and when the pointing node is matched with the memory address, setting the state mark of the pointing node as a second mark.
9. An apparatus for multi-node configuration information determination, the apparatus comprising:
a target node group determining module, configured to determine a target node group in the configuration file, where the target node group includes at least two target nodes, and each target node corresponds to the same configuration information;
a configuration information determining module of the first node, configured to determine configuration information of the first node in the target node group;
a second node set determining module, configured to determine a set formed by nodes in the target node group except the first node as a second node set, where the second node set includes at least one second node;
a configuration direction information determining module, configured to determine configuration direction information of each second node in the second node set, where the configuration direction information of one second node is configured as address information of the first node;
and the configuration information determining module of the second node is used for acquiring the configuration information of each second node according to the configuration pointing information of each second node in the second node set.
10. A computer-readable storage medium, in which at least one instruction or at least one program is stored, the at least one instruction or the at least one program being loaded and executed by a processor to implement the multi-node configuration information determining method according to any one of claims 1 to 8.
CN202010755350.4A 2020-07-31 2020-07-31 Multi-node configuration information determining method, device and storage medium Active CN112003736B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010755350.4A CN112003736B (en) 2020-07-31 2020-07-31 Multi-node configuration information determining method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010755350.4A CN112003736B (en) 2020-07-31 2020-07-31 Multi-node configuration information determining method, device and storage medium

Publications (2)

Publication Number Publication Date
CN112003736A true CN112003736A (en) 2020-11-27
CN112003736B CN112003736B (en) 2023-05-02

Family

ID=73463323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010755350.4A Active CN112003736B (en) 2020-07-31 2020-07-31 Multi-node configuration information determining method, device and storage medium

Country Status (1)

Country Link
CN (1) CN112003736B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113449159A (en) * 2021-06-29 2021-09-28 乐视云计算有限公司 Node data processing method, device, equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402441A (en) * 2010-09-16 2012-04-04 腾讯科技(深圳)有限公司 System and method for configuring multiple computers
US20160364296A1 (en) * 2015-06-10 2016-12-15 International Business Machines Corporation Synchronization policies among nodes
CN106687943A (en) * 2014-08-29 2017-05-17 塞尼股份公司 Systems and methods to organize a computing system having multiple computers, distribute computing tasks among the computers, and maintain data integrity and redundancy in the computing system
US20180262585A1 (en) * 2017-03-08 2018-09-13 Linkedin Corporation Sub-second network telemetry using a publish-subscribe messaging system
CN110290174A (en) * 2019-05-24 2019-09-27 华为技术有限公司 A kind of control method and control node of main cluster
CN111090440A (en) * 2018-10-23 2020-05-01 阿里巴巴集团控股有限公司 Information processing method, system, device and storage medium
CN111324389A (en) * 2020-02-18 2020-06-23 深信服科技股份有限公司 Cloud platform network management method, device, equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102402441A (en) * 2010-09-16 2012-04-04 腾讯科技(深圳)有限公司 System and method for configuring multiple computers
CN106687943A (en) * 2014-08-29 2017-05-17 塞尼股份公司 Systems and methods to organize a computing system having multiple computers, distribute computing tasks among the computers, and maintain data integrity and redundancy in the computing system
US20160364296A1 (en) * 2015-06-10 2016-12-15 International Business Machines Corporation Synchronization policies among nodes
US20180262585A1 (en) * 2017-03-08 2018-09-13 Linkedin Corporation Sub-second network telemetry using a publish-subscribe messaging system
CN111090440A (en) * 2018-10-23 2020-05-01 阿里巴巴集团控股有限公司 Information processing method, system, device and storage medium
CN110290174A (en) * 2019-05-24 2019-09-27 华为技术有限公司 A kind of control method and control node of main cluster
CN111324389A (en) * 2020-02-18 2020-06-23 深信服科技股份有限公司 Cloud platform network management method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
佚名: ""hadoop多节点配置,压缩,序列化,快照,回收站"", 《HTTPS://WWW.CNBLOGS.COM/ZYDE/P/8899774.HTML》 *
卿利: "基于OLSR的MANET地址自动配置机制", 《计算机应用研究》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113449159A (en) * 2021-06-29 2021-09-28 乐视云计算有限公司 Node data processing method, device, equipment and computer readable storage medium
CN113449159B (en) * 2021-06-29 2024-02-02 乐视云网络技术(北京)有限公司 Node data processing method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN112003736B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN107577427B (en) data migration method, device and storage medium for blockchain system
US10055216B2 (en) Minimizing image copying during partition updates
CN103984582B (en) A kind of hot update method and device
JP2020530213A (en) Blockchain World State Markle Patricia Tri Tree Subtree Construction
CN113986873B (en) Method for processing, storing and sharing data modeling of mass Internet of things
CN111143382B (en) Data processing method, system and computer readable storage medium
CN111580884A (en) Configuration updating method and device, server and electronic equipment
US11630803B2 (en) Persistent indexing and free space management for flat directory
CN110737663A (en) data storage method, device, equipment and storage medium
CN113687964B (en) Data processing method, device, electronic equipment, storage medium and program product
CN106445643A (en) Method and device for cloning and updating virtual machine
CN110020272B (en) Caching method and device and computer storage medium
CN111522574B (en) Differential packet generation method and related equipment
CN105141681A (en) RPKI file synchronizing method and device
CN112003736B (en) Multi-node configuration information determining method, device and storage medium
CN112040015B (en) Consensus node list generation method and related device
Skjegstad et al. Low complexity set reconciliation using Bloom filters
CN110677497B (en) Network medium distribution method and device
CN111400317A (en) Method and device for determining full-function dynamic call link and storage medium
CN109962942B (en) Copy update method and apparatus, and computer-readable storage medium
CN115221360A (en) Tree structure configuration method and system
CN113315801A (en) Method and system for storing blockchain data
CN111097175B (en) Simulator determination method and device and storage medium
CN113282551B (en) Data processing method, system and equipment
CN104615784A (en) Method for data access

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
GR01 Patent grant
GR01 Patent grant