CN110635944A - Cluster network configuration method and device, electronic equipment and storage medium - Google Patents
Cluster network configuration method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN110635944A CN110635944A CN201910828171.6A CN201910828171A CN110635944A CN 110635944 A CN110635944 A CN 110635944A CN 201910828171 A CN201910828171 A CN 201910828171A CN 110635944 A CN110635944 A CN 110635944A
- Authority
- CN
- China
- Prior art keywords
- information
- network
- configuration
- node
- cluster
- 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
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0823—Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/30—Profiles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/75—Indicating network or usage conditions on the user display
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Automation & Control Theory (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a cluster network configuration method, a device, equipment and a medium, wherein the method is applied to a main node in a cluster and comprises the following steps: acquiring identification information of each slave node in the cluster and corresponding network information to be configured; receiving actual configuration information input for network information to be configured; and issuing the actual configuration information to each slave node so that each slave node acquires the node configuration information corresponding to the identification information from the actual configuration information, and modifying the network configuration file according to the node configuration information. According to the method and the device, the identification information of each slave node and the network information to be configured in the cluster are firstly acquired, the actual configuration information corresponding to the network information to be configured is received, and the actual configuration information is issued to each slave node, so that each slave node can automatically modify the network configuration file according to the node configuration information corresponding to the identification of the slave node in the actual configuration information, the configuration of the cluster network can be realized without manually modifying each node, and the waste of manpower and material resources is effectively reduced.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for configuring a cluster network, an electronic device, and a computer-readable storage medium.
Background
Computer technology has entered a network-centric era today. With the rapid development of the internet, the rapid increase of the number of users and the network flow makes more and more servers become burdensome, higher requirements are put forward on the expandability and the availability of the network servers, and the problem cannot be really solved by simply improving the hardware performance. For this reason, multiple servers and load balancing techniques must be employed to satisfy the need for a large number of concurrent accesses.
The clustering technology is a technology for organizing a plurality of computers to perform cooperative work to simulate a server with stronger functions, and the same software can be run on a group of computers and virtualized into a host system to provide services for clients and applications. However, in the context of mass data, the complexity of a cluster is higher and higher, the scale of the cluster is larger and larger, when the cluster is deployed, the network of the cluster is generally planned as a whole, and nodes need to configure different network segments to support different services. When configuring a cluster network, the configuration is usually performed by manually modifying different network card configuration files in each node. When the cluster size is large, the workload of the manual modification of different network card configuration files of each node is large, and more manpower and material resources are consumed.
Therefore, how to solve the above problems is a great concern for those skilled in the art.
Disclosure of Invention
The application aims to provide a cluster network configuration method and device, an electronic device and a computer readable storage medium, which effectively reduce the waste of manpower and material resources in the cluster network configuration process.
In order to achieve the above object, the present application provides a cluster network configuration method, which is applied to a master node in a cluster, and the method includes:
acquiring identification information of each slave node in the cluster and corresponding network information to be configured;
receiving actual configuration information input aiming at the network information to be configured;
and sending the actual configuration information to each slave node so that each slave node acquires the node configuration information corresponding to the identification information from the actual configuration information, and modifying a network configuration file according to the node configuration information.
Optionally, the obtaining the identification information of each slave node in the cluster and the corresponding network information to be configured includes:
receiving information collection requests for the respective slave nodes;
and acquiring the identification information of each slave node and the corresponding network information to be configured according to the information collection request.
Optionally, the obtaining, according to the information collection request, the identification information of each slave node and the corresponding network information to be configured includes:
starting the information collection service of each slave node according to the information collection request;
and acquiring the identification information and the to-be-configured network information reported by the information collection service.
Optionally, the receiving the actual configuration information entered for the network information to be configured includes:
displaying the identification information of each slave node and the corresponding network information to be configured by using a visual interface;
and receiving actual configuration information aiming at the network information to be configured through the visual interface.
Optionally, after the sending the actual configuration information to each slave node, the method further includes:
and recording the configuration process of each slave node to obtain a configuration log so as to query the configuration progress and the configuration state by using the configuration log.
In order to achieve the above object, the present application provides a cluster network configuration method, applied to a slave node in a cluster, where the method includes:
receiving actual configuration information; the actual configuration information is configuration information which is received by a master node in the cluster after acquiring identification information of each slave node and corresponding network information to be configured and is input aiming at the network information to be configured;
acquiring node configuration information corresponding to the identification information in the actual configuration information;
and modifying the corresponding network configuration file according to the node configuration information.
In order to achieve the above object, the present application provides a cluster network configuration device, which is applied to a master node in a cluster, and the device includes:
the first acquisition module is used for acquiring the identification information of each slave node in the cluster and the corresponding network information to be configured;
the first receiving module is used for receiving actual configuration information input aiming at the network information to be configured;
and the information issuing module is used for issuing the actual configuration information to each slave node so that each slave node acquires the node configuration information corresponding to the identification information from the actual configuration information and modifies a network configuration file according to the node configuration information.
In order to achieve the above object, the present application provides a cluster network configuration apparatus, applied to a slave node in a cluster, the apparatus including:
the second receiving module is used for receiving the actual configuration information; the actual configuration information is configuration information which is received by a master node in the cluster after acquiring identification information of each slave node and corresponding network information to be configured and is input aiming at the network information to be configured;
a second obtaining module, configured to obtain node configuration information corresponding to the identification information in the actual configuration information;
and the configuration modification module is used for modifying the corresponding network configuration file according to the node configuration information.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
a processor for implementing the steps of any one of the cluster network configuration methods as disclosed in the foregoing when executing the computer program.
To achieve the above object, the present application provides a computer readable storage medium having stored thereon a computer program which, when being executed by a processor, realizes the steps of any one of the cluster network configuration methods as disclosed in the foregoing.
According to the above scheme, the cluster network configuration method provided by the present application is applied to a master node in a cluster, and includes: acquiring identification information of each slave node in the cluster and corresponding network information to be configured; receiving actual configuration information input aiming at the network information to be configured; and sending the actual configuration information to each slave node so that each slave node acquires the node configuration information corresponding to the identification information from the actual configuration information, and modifying a network configuration file according to the node configuration information. Therefore, according to the method and the device, the identification information of each slave node and the network information to be configured in the cluster are firstly acquired, the actual configuration information corresponding to the network information to be configured is received, and the actual configuration information is issued to each slave node, so that each slave node automatically modifies the network configuration file according to the node configuration information corresponding to the identification of the slave node in the actual configuration information, the configuration of the cluster network can be realized without manually modifying each node, and the waste of manpower and material resources is effectively reduced.
The application also discloses a cluster network configuration device, an electronic device and a computer readable storage medium, which can also realize the technical effects.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in 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 for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a cluster network configuration method disclosed in an embodiment of the present application;
fig. 2 is a flowchart of another cluster network configuration method disclosed in an embodiment of the present application;
fig. 3 is an overall flowchart of a specific cluster network configuration method disclosed in the embodiment of the present application;
fig. 4 is a structural diagram of a cluster network configuration device disclosed in an embodiment of the present application;
fig. 5 is a structural diagram of another cluster network configuration device disclosed in the embodiment of the present application;
fig. 6 is a block diagram of an electronic device disclosed in an embodiment of the present application;
fig. 7 is a block diagram of another electronic device disclosed in the embodiments 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.
In the prior art, when a cluster is deployed, an overall network of the cluster is generally planned, and nodes need to be configured with different network segments to support different services. When configuring a cluster network, the configuration is usually performed by manually modifying different network card configuration files in each node. When the cluster size is large, the workload is large in the mode of manually modifying different network card configuration files of each node, and more manpower and material resources are consumed.
Therefore, the embodiment of the application discloses a cluster network configuration method, which effectively reduces the waste of manpower and material resources in the cluster network configuration process.
Referring to fig. 1, an embodiment of the present application discloses a cluster network configuration method, which is applied to a master node in a cluster, and the method includes:
s101: acquiring identification information of each slave node in the cluster and corresponding network information to be configured;
in this step, the master node in the cluster is used to obtain the identification information of each slave node in the cluster, and obtain the network information to be configured corresponding to each slave node. The network information to be configured may specifically be information such as an IP address, a gateway, a subnet mask, and the like of each network card in the slave node; the identification information may specifically be a serial number of the node.
Specifically, the process of acquiring the identification information of each slave node in the cluster and the corresponding network information to be configured may specifically include: receiving information collection requests for the respective slave nodes; and acquiring the identification information of each slave node and the corresponding network information to be configured according to the information collection request. That is, an information collection request for each slave node initiated by a user may be received through the preset input interface, so as to trigger an information request process, and obtain information of each slave node according to the information collection request.
It can be understood that, when the identification information of each slave node and the corresponding network information to be configured are obtained according to the information collection request, the information collection service deployed in each slave node may be started according to the information collection request, so that the identification information of each slave node and the network information to be configured of different network cards on the slave node are collected by the information collection service, and are actively reported to the master node in the cluster after the collection is completed. The nodes can communicate with each other through Mac addresses between network cards by using a two-layer protocol. Specifically, the information collection service may be embodied as one or more processes, threads, or scripts, which is not specifically limited in this embodiment.
S102: receiving actual configuration information input aiming at the network information to be configured;
in the embodiment of the application, actual configuration information which is correspondingly input by a user aiming at the network information to be configured can be received. In specific implementation, the identification information of each slave node and the corresponding network information to be configured can be displayed by using a visual interface of the master node, so that a user can know which information needs to be configured through the visual node, and fills and inputs actual configuration information corresponding to the network information to be configured in the visual interface through a preset input interface.
Specifically, the identification information of each slave node and the corresponding network information to be configured may be displayed in a form according to the embodiment of the present application, so that a user fills the corresponding actual configuration information into the corresponding cell according to the network information to be configured.
S103: and sending the actual configuration information to each slave node so that each slave node acquires the node configuration information corresponding to the identification information from the actual configuration information, and modifying a network configuration file according to the node configuration information.
After receiving the actual configuration information entered by the user, the master node issues the actual configuration information to each slave node, and the slave nodes can search the node configuration information corresponding to the slave nodes from the actual configuration information according to the identification information of the slave nodes, so as to modify the network configuration files of the slave nodes according to the node configuration information. After the modification is completed, the network service of the node itself will be restarted. And when all the slave nodes complete the modification of the configuration file and restart, the network configuration of the current cluster is completed.
In a preferred embodiment, after the actual configuration information is sent to each slave node, the configuration process of each slave node may be further recorded to obtain a configuration log, so that a user can track the network configuration completion condition of each slave node in real time by using the configuration log to know the network configuration progress and configuration state, and can quickly locate an abnormality occurring in the configuration process.
According to the above scheme, the cluster network configuration method provided by the present application is applied to a master node in a cluster, and includes: acquiring identification information of each slave node in the cluster and corresponding network information to be configured; receiving actual configuration information input aiming at the network information to be configured; and sending the actual configuration information to each slave node so that each slave node acquires the node configuration information corresponding to the identification information from the actual configuration information, and modifying a network configuration file according to the node configuration information. Therefore, according to the method and the device, the identification information of each slave node and the network information to be configured in the cluster are firstly acquired, the actual configuration information corresponding to the network information to be configured is received, and the actual configuration information is issued to each slave node, so that each slave node automatically modifies the network configuration file according to the node configuration information corresponding to the identification of the slave node in the actual configuration information, the configuration of the cluster network can be realized without manually modifying each node, and the waste of manpower and material resources is effectively reduced.
Referring to fig. 2, an embodiment of the present application discloses another cluster network configuration method, which is applied to a slave node in a cluster, and the method includes:
s201: receiving actual configuration information; the actual configuration information is configuration information which is received by a master node in the cluster after acquiring identification information of each slave node and corresponding network information to be configured and is input aiming at the network information to be configured;
s202: acquiring node configuration information corresponding to the identification information in the actual configuration information;
s203: and modifying the corresponding network configuration file according to the node configuration information.
In the embodiment of the application, after acquiring the identification information of each slave node and the to-be-configured network information which needs to be configured, the master node in the cluster receives the actual configuration information which is input by the user for the to-be-configured network information, and issues the actual configuration information to each slave node. After receiving the actual configuration information from the node, the corresponding node configuration information is searched by comparing the identification information of the node itself with the identification information in the actual configuration information, so as to modify the network configuration file of the node itself according to the node configuration information, and restart the network service of the node after modification. And when all the slave nodes complete the modification of the configuration file and restart, the network configuration of the current cluster is completed.
Fig. 3 is a specific cluster network configuration method provided in this embodiment of the present application, and as shown in fig. 3, a master node first collects network information to be configured of all network cards to be deployed to nodes of a cluster and product serial number information corresponding to the nodes, and returns the network information to a UI page (User Interface) of the master node, so that a User sets information such as corresponding IP addresses, gateways, subnet masks, and the like for different network cards of each slave node through the page, and further pushes a request for configuring a network to each slave node in batch. After each slave node receives a request for configuring the network pushed by the master node, the product serial number contained in the request is compared with the product serial number of the slave node, if the product serial number is consistent with the product serial number, the slave node automatically modifies configuration files of different network cards of the slave node according to configuration information of the network card contained in the request, and restarts network service of the slave node. When all the slave nodes complete the step, the network configuration of the current cluster is completed.
In the embodiment of the application, each slave node in the cluster, which needs to configure the network, can run a service related to the automatic configuration network, and report information such as a sequence number and a network card corresponding to the slave node to the master node through the service. After receiving network configuration information set for different network cards of each slave node by a user through a page, the master node sends a request for configuring the networks of the slave nodes of the cluster in batches, so that the slave nodes modify configuration files of the network cards in batches, programmed configuration is realized, configuration of the cluster network can be realized without manually modifying the nodes, interference caused by human factors when the cluster is manually deployed is avoided, and time and energy are remarkably saved.
In the following, a cluster network configuration device provided in an embodiment of the present application is introduced, and a cluster network configuration device described below and a cluster network configuration method described above may refer to each other.
Referring to fig. 4, an embodiment of the present application provides a cluster network configuration apparatus, which is applied to a master node in a cluster, where the apparatus includes:
a first obtaining module 301, configured to obtain identification information of each slave node in the cluster and corresponding network information to be configured;
a first receiving module 302, configured to receive actual configuration information entered for the network information to be configured;
an information issuing module 303, configured to issue the actual configuration information to each slave node, so that each slave node obtains node configuration information corresponding to the identification information from the actual configuration information, and modifies a network configuration file according to the node configuration information.
On the basis of the foregoing embodiment, as a preferred implementation, the first obtaining module 301 includes:
a request receiving unit configured to receive information collection requests for the respective slave nodes;
and the information acquisition unit is used for acquiring the identification information of each slave node and the corresponding network information to be configured according to the information collection request.
On the basis of the foregoing embodiment, as a preferred implementation, the information acquiring unit includes:
the service starting subunit is used for starting the information collection service of each slave node according to the information collection request;
and the information collection subunit is configured to acquire the identification information and the to-be-configured network information reported by the information collection service.
On the basis of the foregoing embodiment, as a preferred implementation, the first receiving module 302 includes:
the information display unit is used for displaying the identification information of each slave node and the corresponding network information to be configured by using a visual interface;
and the configuration receiving unit is used for receiving the actual configuration information aiming at the network information to be configured through the visual interface.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the configuration recording module is used for recording the configuration process of each slave node to obtain a configuration log so as to query the configuration progress and the configuration state by using the configuration log.
In the following, another cluster network configuration device provided in the embodiment of the present application is introduced, and a cluster network configuration device described below and a cluster network configuration method described above may refer to each other.
Referring to fig. 5, an embodiment of the present application provides another cluster network configuration apparatus, which is applied to a slave node in a cluster, and the apparatus includes:
a second receiving module 401, configured to receive actual configuration information; the actual configuration information is configuration information which is received by a master node in the cluster after acquiring identification information of each slave node and corresponding network information to be configured and is input aiming at the network information to be configured;
a second obtaining module 402, configured to obtain node configuration information corresponding to the identification information in the actual configuration information;
a configuration modification module 403, configured to modify a corresponding network configuration file according to the node configuration information.
For the specific implementation process of the modules 401 to 403, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.
The present application further provides an electronic device, and as shown in fig. 6, an electronic device provided in an embodiment of the present application includes:
a memory 100 for storing a computer program;
the processor 200, configured to execute the computer program, may implement the steps of any one of the cluster network configuration methods provided in the foregoing embodiments.
Specifically, the memory 100 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and computer-readable instructions, and the internal memory provides an environment for the operating system and the computer-readable instructions in the non-volatile storage medium to run. The processor 200 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor or other data processing chip in some embodiments, and provides computing and controlling capability for the electronic device, and when executing the computer program stored in the memory 100, the steps of the cluster network configuration method disclosed in any of the foregoing embodiments may be implemented.
On the basis of the above embodiment, as a preferred implementation, referring to fig. 7, the electronic device further includes:
and an input interface 300 connected to the processor 200, for acquiring computer programs, parameters and instructions imported from the outside, and storing the computer programs, parameters and instructions into the memory 100 under the control of the processor 200. The input interface 300 may be connected to an input device for receiving parameters or instructions manually input by a user. The input device may be a touch layer covered on a display screen, or a button, a track ball or a touch pad arranged on a terminal shell, or a keyboard, a touch pad or a mouse, etc.
And a display unit 400 connected to the processor 200 for displaying data processed by the processor 200 and for displaying a visualized user interface. The display unit 400 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like.
And a network port 500 connected to the processor 200 for performing communication connection with each external terminal device. The communication technology adopted by the communication connection can be a wired communication technology or a wireless communication technology, such as a mobile high definition link (MHL) technology, a Universal Serial Bus (USB), a High Definition Multimedia Interface (HDMI), a wireless fidelity (WiFi), a bluetooth communication technology, a low power consumption bluetooth communication technology, an ieee802.11 s-based communication technology, and the like.
While fig. 7 shows only an electronic device having the assembly 100 and 500, those skilled in the art will appreciate that the configuration shown in fig. 7 is not intended to be limiting of electronic devices and may include fewer or more components than those shown, or some components may be combined, or a different arrangement of components.
The present application also provides a computer-readable storage medium, which may include: various media capable of storing program codes, 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. The storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the cluster network configuration method disclosed in any of the foregoing embodiments.
According to the method and the device, the identification information of each slave node and the network information to be configured in the cluster are firstly acquired, the actual configuration information corresponding to the network information to be configured is received, and the actual configuration information is issued to each slave node, so that each slave node can automatically modify the network configuration file according to the node configuration information corresponding to the identification of the slave node in the actual configuration information, the configuration of the cluster network can be realized without manually modifying each node, and the waste of manpower and material resources is effectively reduced.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the system disclosed by the embodiment, the description is relatively simple because the system corresponds to the method disclosed by the embodiment, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. A cluster network configuration method is applied to a master node in a cluster, and comprises the following steps:
acquiring identification information of each slave node in the cluster and corresponding network information to be configured;
receiving actual configuration information input aiming at the network information to be configured;
and sending the actual configuration information to each slave node so that each slave node acquires the node configuration information corresponding to the identification information from the actual configuration information, and modifying a network configuration file according to the node configuration information.
2. The method according to claim 1, wherein the obtaining identification information of each slave node in the cluster and corresponding network information to be configured includes:
receiving information collection requests for the respective slave nodes;
and acquiring the identification information of each slave node and the corresponding network information to be configured according to the information collection request.
3. The method according to claim 2, wherein the acquiring, according to the information collection request, the identification information of each slave node and the corresponding network information to be configured includes:
starting the information collection service of each slave node according to the information collection request;
and acquiring the identification information and the to-be-configured network information reported by the information collection service.
4. The cluster network configuration method according to claim 1, wherein the receiving actual configuration information for the network information entry to be configured comprises:
displaying the identification information of each slave node and the corresponding network information to be configured by using a visual interface;
and receiving actual configuration information aiming at the network information to be configured through the visual interface.
5. The method according to any one of claims 1 to 4, wherein after sending the actual configuration information to each slave node, the method further comprises:
and recording the configuration process of each slave node to obtain a configuration log so as to query the configuration progress and the configuration state by using the configuration log.
6. A cluster network configuration method is applied to slave nodes in a cluster, and comprises the following steps:
receiving actual configuration information; the actual configuration information is configuration information which is received by a master node in the cluster after acquiring identification information of each slave node and corresponding network information to be configured and is input aiming at the network information to be configured;
acquiring node configuration information corresponding to the identification information in the actual configuration information;
and modifying the corresponding network configuration file according to the node configuration information.
7. A cluster network configuration apparatus, applied to a master node in a cluster, the apparatus comprising:
the first acquisition module is used for acquiring the identification information of each slave node in the cluster and the corresponding network information to be configured;
the first receiving module is used for receiving actual configuration information input aiming at the network information to be configured;
and the information issuing module is used for issuing the actual configuration information to each slave node so that each slave node acquires the node configuration information corresponding to the identification information from the actual configuration information and modifies a network configuration file according to the node configuration information.
8. A cluster network configuration apparatus, applied to a slave node in a cluster, the apparatus comprising:
the second receiving module is used for receiving the actual configuration information; the actual configuration information is configuration information which is received by a master node in the cluster after acquiring identification information of each slave node and corresponding network information to be configured and is input aiming at the network information to be configured;
a second obtaining module, configured to obtain node configuration information corresponding to the identification information in the actual configuration information;
and the configuration modification module is used for modifying the corresponding network configuration file according to the node configuration information.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the cluster network configuration method according to any of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the cluster network configuration method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910828171.6A CN110635944A (en) | 2019-09-03 | 2019-09-03 | Cluster network configuration method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910828171.6A CN110635944A (en) | 2019-09-03 | 2019-09-03 | Cluster network configuration method and device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110635944A true CN110635944A (en) | 2019-12-31 |
Family
ID=68970115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910828171.6A Withdrawn CN110635944A (en) | 2019-09-03 | 2019-09-03 | Cluster network configuration method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110635944A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111259072A (en) * | 2020-01-08 | 2020-06-09 | 广州虎牙科技有限公司 | Data synchronization method and device, electronic equipment and computer readable storage medium |
CN111343010A (en) * | 2020-02-16 | 2020-06-26 | 苏州浪潮智能科技有限公司 | Method and equipment for configuring storage IP network port |
CN111510327A (en) * | 2020-04-08 | 2020-08-07 | 北京字节跳动网络技术有限公司 | Network connection method and device for training participants of co-training model |
CN112214377A (en) * | 2020-10-21 | 2021-01-12 | 新华三信息安全技术有限公司 | Equipment management method and system |
CN112260863A (en) * | 2020-10-15 | 2021-01-22 | 腾讯科技(深圳)有限公司 | Organization-level network equipment connection management method and device and computer equipment |
CN112261086A (en) * | 2020-09-24 | 2021-01-22 | 北京天融信网络安全技术有限公司 | Synchronization method, device, equipment and storage medium of load balancing configuration information |
CN112738206A (en) * | 2020-12-25 | 2021-04-30 | 北京浪潮数据技术有限公司 | Butt joint method and assembly of distributed cluster and cloud platform |
CN115277391A (en) * | 2022-06-30 | 2022-11-01 | 联想(北京)有限公司 | Network configuration method, device, cluster and storage medium |
-
2019
- 2019-09-03 CN CN201910828171.6A patent/CN110635944A/en not_active Withdrawn
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111259072A (en) * | 2020-01-08 | 2020-06-09 | 广州虎牙科技有限公司 | Data synchronization method and device, electronic equipment and computer readable storage medium |
CN111259072B (en) * | 2020-01-08 | 2023-11-14 | 广州虎牙科技有限公司 | Data synchronization method, device, electronic equipment and computer readable storage medium |
CN111343010A (en) * | 2020-02-16 | 2020-06-26 | 苏州浪潮智能科技有限公司 | Method and equipment for configuring storage IP network port |
CN111343010B (en) * | 2020-02-16 | 2022-12-27 | 苏州浪潮智能科技有限公司 | Method and equipment for configuring storage IP network port |
CN111510327B (en) * | 2020-04-08 | 2022-01-21 | 北京字节跳动网络技术有限公司 | Network connection method, device, system and server for training participants of co-training model |
WO2021203920A1 (en) * | 2020-04-08 | 2021-10-14 | 北京字节跳动网络技术有限公司 | Network connection method and device for training participant end of common training model |
US11811864B2 (en) | 2020-04-08 | 2023-11-07 | Douyin Vision Co., Ltd. | Network connection method and device for training participant end of common training model |
CN111510327A (en) * | 2020-04-08 | 2020-08-07 | 北京字节跳动网络技术有限公司 | Network connection method and device for training participants of co-training model |
CN112261086A (en) * | 2020-09-24 | 2021-01-22 | 北京天融信网络安全技术有限公司 | Synchronization method, device, equipment and storage medium of load balancing configuration information |
CN112260863A (en) * | 2020-10-15 | 2021-01-22 | 腾讯科技(深圳)有限公司 | Organization-level network equipment connection management method and device and computer equipment |
CN112260863B (en) * | 2020-10-15 | 2024-05-14 | 腾讯科技(深圳)有限公司 | Organization-level network device connection management method and device and computer device |
CN112214377B (en) * | 2020-10-21 | 2022-09-27 | 新华三信息安全技术有限公司 | Equipment management method and system |
CN112214377A (en) * | 2020-10-21 | 2021-01-12 | 新华三信息安全技术有限公司 | Equipment management method and system |
CN112738206A (en) * | 2020-12-25 | 2021-04-30 | 北京浪潮数据技术有限公司 | Butt joint method and assembly of distributed cluster and cloud platform |
CN112738206B (en) * | 2020-12-25 | 2022-08-23 | 北京浪潮数据技术有限公司 | Butt joint method and assembly of distributed cluster and cloud platform |
CN115277391A (en) * | 2022-06-30 | 2022-11-01 | 联想(北京)有限公司 | Network configuration method, device, cluster and storage medium |
CN115277391B (en) * | 2022-06-30 | 2024-03-26 | 联想(北京)有限公司 | Network configuration method, device, cluster and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110635944A (en) | Cluster network configuration method and device, electronic equipment and storage medium | |
US20220179682A1 (en) | Task processing method, apparatus, and system based on distributed system | |
CN110096336B (en) | Data monitoring method, device, equipment and medium | |
US10686755B2 (en) | Assigning IP addresses and configuration parameters in hyper-converged infrastructure | |
CN111897638B (en) | Distributed task scheduling method and system | |
CN106534281B (en) | A kind of response method of request of data, apparatus and system | |
CN110830234B (en) | User traffic distribution method and device | |
CN114244717B (en) | Configuration method and device of virtual network card resources, computer equipment and medium | |
CN107666493B (en) | Database configuration method and equipment thereof | |
CN110427386B (en) | Data processing method, device and computer storage medium | |
CN112433812B (en) | Virtual machine cross-cluster migration method, system, equipment and computer medium | |
CN111124286A (en) | Libcloud-based multi-cloud management implementation method | |
CN109358876A (en) | A kind of version synchronization method and device, equipment, storage medium | |
US20220038444A1 (en) | Cloud device, application processing method, electronic device and storage medium | |
CN110928681A (en) | Data processing method and device, storage medium and electronic device | |
TWI641951B (en) | Method and device for dynamically assigning work and providing resource and system thereof | |
CN111045789A (en) | Virtual machine starting method and device, electronic equipment and storage medium | |
CN109413180B (en) | Data acquisition method, system and equipment and storage medium | |
CN106156210B (en) | Method and device for determining application identifier matching list | |
CN116501487A (en) | Task execution method and device on virtual machine, storage medium and electronic equipment | |
CN111669355B (en) | Method for batch processing of nginx network isolation space and nginx server | |
CN112306373B (en) | Cluster capacity expansion method and system, electronic equipment and storage medium | |
CN113342461A (en) | Equipment mounting method and device, computer equipment and readable storage medium | |
CN107220053B (en) | BIOS management method and electronic equipment | |
CN111343253A (en) | Information extraction method and system |
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: 20191231 |
|
WW01 | Invention patent application withdrawn after publication |