CN115277398A - Cluster network configuration method and device - Google Patents

Cluster network configuration method and device Download PDF

Info

Publication number
CN115277398A
CN115277398A CN202210993272.0A CN202210993272A CN115277398A CN 115277398 A CN115277398 A CN 115277398A CN 202210993272 A CN202210993272 A CN 202210993272A CN 115277398 A CN115277398 A CN 115277398A
Authority
CN
China
Prior art keywords
packet processing
vector packet
configuration command
cluster
vector
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210993272.0A
Other languages
Chinese (zh)
Inventor
陈南飞
王旸
蒋驰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mingyang Industrial Technology Research Institute Shenyang Co ltd
Original Assignee
Mingyang Industrial Technology Research Institute Shenyang 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 Mingyang Industrial Technology Research Institute Shenyang Co ltd filed Critical Mingyang Industrial Technology Research Institute Shenyang Co ltd
Priority to CN202210993272.0A priority Critical patent/CN115277398A/en
Publication of CN115277398A publication Critical patent/CN115277398A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for configuring a network of a cluster, where the cluster includes at least one node, and the method includes: after a vector packet processing module restarting signal on any node in the cluster is detected, determining a target node where a vector packet processing module restarting event occurs; acquiring a configuration command list of vector packet processing on the target node, wherein the configuration command list comprises at least one vector packet processing configuration command, and the vector packet processing configuration command is used for defining a configuration command executed in the vector packet processing; and executing the replay operation of each vector packet processing configuration command according to the configuration command list so as to restore the network configuration for the restarted vector packet processing module.

Description

Cluster network configuration method and device
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.
Background
Vector Packet Processing (VPP) is an extensible framework that provides out-of-box production quality switch and router functionality. When the VPPs deployed on the cluster are restarted due to an abnormal condition, for example, when a node server where the VPPs are deployed is powered off and restarted, all configurations before the VPPs are restarted will be lost, and the VPPs cannot restore all configurations by themselves after being restarted, which causes that the VPPs cannot provide network services for the outside after being restarted.
Based on this, those skilled in the art have a need for a clustered network configuration method, so that the network configuration of the VPP itself can be restored after the VPP reboots.
Disclosure of Invention
Embodiments of the present application provide a method and an apparatus for configuring a network of a cluster, so that a network configuration of a VPP itself can be recovered at least to a certain extent after the VPP is restarted.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of an embodiment of the present application, there is provided a network configuration method for a cluster, where the cluster includes at least one node, the method including: after a vector packet processing module restarting signal on any node in the cluster is detected, determining a target node where a vector packet processing module restarting event occurs; acquiring a configuration command list of vector packet processing on the target node, wherein the configuration command list comprises at least one vector packet processing configuration command, and the vector packet processing configuration command is used for defining a configuration command executed in the vector packet processing; and according to the configuration command list, executing the replay operation of each vector packet processing configuration command so as to restore the network configuration for the restarted vector packet processing module.
In some embodiments of the present application, before detecting a restart signal of a vector packet processing module at any one node in the cluster, the method further includes: and detecting a vector packet processing module restart signal of each node according to a preset period.
In some embodiments of the present application, based on the foregoing solution, before detecting the vector packet processing module restart signal of each node at a predetermined period, the method further includes: deploying at least one vector package processing module on the cluster.
In some embodiments of the present application, based on the foregoing solution, the deploying at least one vector package processing module on the cluster includes: determining a host node of each vector packet processing module; acquiring the mapping relation between the logical interface of each vector packet processing module and the physical network card address of the host node; and finishing the deployment of each vector packet processing module according to each host node and each mapping relation.
In some embodiments of the present application, based on the foregoing solution, before the obtaining a configuration command list of vector packet processing on the target node, the method further includes: and creating at least one vector packet processing configuration command in the cluster, and storing the vector packet processing configuration command in a database of the cluster, wherein each vector packet processing configuration command corresponds to a host node.
In some embodiments of the present application, based on the foregoing solution, after at least one vector packet is created in the cluster to process the configuration command, the method further includes: and executing each vector packet processing configuration command on the host node corresponding to each vector packet processing configuration command.
In some embodiments of the application, based on the foregoing solution, the performing, according to the configuration command list, a replay operation of each vector packet processing configuration command includes: and executing the replay operation of the vector packet processing configuration commands according to the sequence of the vector packet processing configuration commands in the configuration command list, wherein the sequence is determined according to the creation time of the vector packet processing configuration commands.
In some embodiments of the present application, based on the foregoing solution, the method further comprises: if a deletion event of a vector packet processing configuration command of the database is monitored, a host node corresponding to the deleted vector packet processing configuration command is obtained; and canceling the execution of the deleted vector packet processing configuration command on the host node corresponding to the deleted vector packet processing configuration command.
According to an aspect of the embodiments of the present application, there is provided a network configuration apparatus for a cluster, the cluster including at least one node, the network configuration apparatus including: the determining unit is used for determining a target node of a vector packet processing module restart event after detecting a vector packet processing module restart signal on any node in the cluster; an obtaining unit, configured to obtain a configuration command list of vector packet processing on the target node, where the configuration command list includes at least one vector packet processing configuration command, and the vector packet processing configuration command is used to define a configuration command executed in vector packet processing; and the execution unit is used for executing the replay operation of each vector packet processing configuration command according to the configuration command list so as to restore the network configuration for the restarted vector packet processing module.
Based on the scheme, the application has at least the following advantages or progresses:
in the technical solutions provided in some embodiments of the present application, by determining a target node where a restart event of a vector packet processing module occurs, and then executing a replay operation of preloaded vector packet processing configuration commands, a network configuration is restored for the restarted vector packet processing module through the vector packet processing configuration commands, so that it is ensured that the vector packet processing module can still normally provide a network service after being restarted, and a use experience of a user is improved.
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
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
In the drawings:
fig. 1 shows a flow diagram of a network configuration method of a cluster according to an embodiment of the application;
FIG. 2 illustrates a flow diagram of a method of network configuration of a cluster according to one embodiment of the present application;
fig. 3 shows a network configuration apparatus of a cluster according to an embodiment of the application;
FIG. 4 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the embodiments of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It should be noted that: reference herein to "a plurality" means two or more. "and/or" describes the association relationship of the associated object, indicating that there may be three relationships, for example, a and/or B may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
It should be noted that the embodiments provided in this application may be used in a cloud scenario, for example, cloud computing (cloud computing) is a computing mode, and distributes computing tasks on a resource pool formed by a large number of computers, so that various application systems can obtain computing power, storage space, and information services as needed. The network that provides the resources is referred to as the "cloud". Resources in the 'cloud' can be infinitely expanded to users, and can be acquired at any time, used as required and expanded at any time. The cloud computing resource pool mainly comprises computing equipment (which is a virtualization machine and comprises an operating system), storage equipment and network equipment.
It should be noted that the cluster described in this application may be a K8S cluster, that is, a kubernets cluster, where the kubernets cluster includes at least one Master node (i.e., a management node) and at least one Worker node (i.e., a work node), and the kubernets cluster is a highly available computer cluster, and these computers are connected to work as a unit. The abstraction in the kubernets cluster allows containerized applications to be deployed to the cluster without having to bind them specifically to a computer. To take advantage of this new deployment model, applications need to be containerized in a way that separates them from a single host. Compared with the past deployment model, the containerized application is more flexible and available, the application is directly installed on a specific computer, and the program package is deeply integrated into a host. Kubernets cluster automates the distribution and scheduling of application containers across clusters in a more efficient manner.
It should be noted that the present application has related contents related to VPP, vector Packet Processing, and is an extensible framework that can provide out-of-box, production quality switch and router functions. The VPP can be deployed on a general X86 server, can be directly deployed on the server in a process form, can be deployed on the server in a virtual machine form, and can be deployed on the server in a container form, so that the VPP can be deployed in a K8S cluster.
The implementation details of the technical solution of the embodiment of the present application are set forth in detail below:
please refer to fig. 1.
Fig. 1 shows a flowchart of a network configuration method of a cluster according to an embodiment of the present application, where the cluster may include at least one node, and as shown in fig. 1, the method may include steps S101 to S103:
step S101, after detecting a vector packet processing module restarting signal on any node in the cluster, determining a target node where a vector packet processing module restarting event occurs.
Step S102, obtaining a configuration command list of vector packet processing on the target node, where the configuration command list includes at least one vector packet processing configuration command, and the vector packet processing configuration command is used to define a configuration command executed in vector packet processing.
Step S103, according to the configuration command list, executing the replay operation of each vector packet processing configuration command so as to recover the network configuration for the restarted vector packet processing module.
In the technical solutions provided in some embodiments of the present application, by determining a target node where a restart event of a vector packet processing module occurs, and then executing a replay operation of preloaded vector packet processing configuration commands, a network configuration is restored for the restarted vector packet processing module through the vector packet processing configuration commands, so that it is ensured that the vector packet processing module can still normally provide a network service after being restarted, and a use experience of a user is improved.
In this application, before detecting a restart signal of a vector packet processing module at any node in the cluster, the method may further include: and detecting a vector packet processing module restart signal of each node according to a preset period.
In this application, before detecting a restart signal of the vector packet processing module of each node at a predetermined period, the method may further include: deploying at least one vector package processing module on the cluster.
Please refer to fig. 2.
Fig. 2 is a flowchart illustrating a network configuration method of a cluster according to an embodiment of the present application, and as shown in fig. 2, the method for deploying at least one vector package processing module on the cluster may include steps S201 to S203:
step S201, determining a host node of each vector packet processing module.
Step S202, the mapping relation between the logic interface of each vector packet processing module and the address of the physical network card of the host node is obtained.
And step S203, finishing the deployment of each vector packet processing module according to each host node and each mapping relation.
In this application, a VPP registration module may be added to a K8S cluster, and the VPP registration module may be run by a Master node in the K8S cluster, and in this application, it is necessary to provide that a vector packet processing module (VPP) is registered in the K8S cluster: (1) A node where a vector packet processing module (VPP) is deployed, that is, a host node, such as a worker01 node, may be a host node where the vector packet processing module (VPP) is deployed; (2) Mapping relation between logical interface of vector packet processing module (VPP) and physical address of DPDK (Data Plane Development Kit) network card.
For example, the host node is worker01, the logical interface list of the host node may be XGE1/0/1, XGE1/0/2, XGE1/0/3, XGE1/0/4, XGE1/0/5, XGE1/0/6, and the physical address of the DPDK network card bound to these interfaces is 0000 17: the following configurations are from the VPP's configuration file.
Figure BDA0003804743450000061
Figure BDA0003804743450000071
The configuration file defines a configuration range of a DPDK interface of a vector packet processing module (VPP), and if a DPDK interface out of the range is designated when the DPDK interface is configured, the configuration will fail.
In the present application, after the deployment of each vector packet processing module (VPP) is completed, a label may be added to each host node to indicate that the VPP has been deployed on the host node.
For example, a label labels "mingyangtech.com.cn/node-roll: VPP" may be added to the host node of VPP worker01 by the host node of worker01, where the label has a key of "mingyangtech.com.cn/node-roll" and a value of "VPP" to indicate that a vector packet processing module (VPP) is deployed on the node of worker01.
In this application, a VPP management module may be added to the K8S cluster, and the VPP management module monitors whether a VPP restart event occurs at each node in the K8S cluster, for example, the VPP management module may monitor whether a restart event occurs at a VPP deployed on the node every 1 minute on each node where a vector packet processing module (VPP) is deployed.
If the vector packet processing module (VPP) is not restarted, the processing is not needed, and the next periodical monitoring is waited to be executed. Otherwise, if it is monitored that the vector packet processing module (VPP) on any node is restarted, it reports the restart event to the VPP management module, notifies the VPP management module, determines the host node of the vector packet processing module (VPP), and the VPP management module is responsible for restoring all network configurations for the restarted VPP.
In this application, before obtaining the configuration command list of vector packet processing on the target node, the method further includes: and creating at least one vector packet processing configuration command in the cluster, and storing the vector packet processing configuration command in a database of the cluster, wherein each vector packet processing configuration command corresponds to a host node.
In the present application, a new CRD (custom resource definition) resource VppCommand, which represents a vector packet processing configuration command, may be added to the K8S cluster to define the configuration command to be executed in the VPP and store it in etct in the K8S cluster.
For example, a VppCommand object command01 may be added, and command01 may define a VPP configuration command to set the state of the logical interface XGE1/0/1 to an online state.
Figure BDA0003804743450000081
In the present application, a Restful API is added for VppCommand resources for creating, editing, deleting, and querying VppCommand resources. Meanwhile, the kubecect command can be used for creating, editing, deleting and querying the VppCommand resource. If the vector packet processing module (VPP) needs to be configured, the VppCommand resource can be created, edited, and deleted through the Restful API or the kubecect command, so as to configure the vector packet processing module (VPP).
In this application, after creating at least one vector packet processing configuration command in the cluster, the method may further include: and executing each vector packet processing configuration command on the host node corresponding to each vector packet processing configuration command. And for the VppCommand object command01, a logic interface XGE1/0/1 is switched to an online state on worker01.
In the application, if a deletion event of a vector packet processing configuration command of the database is monitored, a logic interface and a host node corresponding to the deleted vector packet processing configuration command are obtained; and canceling to execute the deleted vector packet processing configuration command on the host node corresponding to the deleted vector packet processing configuration command. For VppCommand object command01, the logic interface XGE1/0/1 is switched to an offline state on worker01. In the application, a new controller can be added to the K8S cluster to monitor the change of the VppCommand resource in the K8S cluster and perform corresponding processing.
The VppCommand resource command01 can be exemplified.
(1) When creating command01, the controller may be responsible for executing the command "set interface state XGE1/0/1up" in the vectoring packet processing module (VPP) on the worker01 node to switch the logical interface XGE1/0/1 to online.
(2) When a command01 is deleted, the controller may be responsible for undoing, in the VPP on the worker01 node, the command "set interface state XGE1/0/1up" that has been executed when the command01 was created, i.e.: the undo operation is implemented in the vector packet processing module (VPP) by executing the command "set interface state XGE1/0/1down" to switch the logical interface XGE1/0/1 to an offline state.
Therefore, a set of commands for configuring and de-configuring is formed by processing the configuration commands through the vector packet involved in creating the VppCommand resource and deleting the VppCommand resource.
In this application, the executing the replay operation of each vector packet processing configuration command according to the configuration command list includes: and executing the replay operation of the vector packet processing configuration commands according to the sequence of the vector packet processing configuration commands in the configuration command list, wherein the sequence is determined according to the creation time of the vector packet processing configuration commands.
In the present application, as described above, it may be responsible for recovering all network configurations for a restarted VPP through the VPP management module, and the specific process may be as follows:
suppose that the host node of the VPP is worker01.
(1) Acquiring all VppCommand objects from a Kubernets cluster, and filtering according to a target node, namely: and only obtaining a configuration command list of which the host node is worker01.
(2) Traversing each vector packet processing configuration command, namely a VppCommand object according to the sequence of each vector packet processing configuration command of the configuration command list, and executing replay operation in a vector packet processing module (VPP) of a worker01 node for each VppCommand object. The replay is the same operation as that performed when creating the VppCommand object.
As can be seen from the above, when creating the VppCommand resource command01, the controller is responsible for executing the command "set interface state XGE1/0/1up" in the VPP on worker01 node. Then, a replay operation is executed for the VppCommand resource command01, namely, a command "set interface state XGE1/0/1up" is executed in VPP on the worker01 node, so that the corresponding logic interface XGE1/0/1 can be switched to the online state again on the corresponding host node worker01.
Through the above processing, the VPP management module can restore all configurations for the restarted VPP, and ensure that the VPP can still normally provide network services after the VPP is restarted.
As another example, a VppCommand object command02 may be added, and the command02 may define a VPP configuration command for setting an IPv4 default route for a vector packet processing module (VPP).
Figure BDA0003804743450000091
Figure BDA0003804743450000101
In the present application, a Restful API is added for VppCommand resources for creating, editing, deleting, and querying VppCommand resources. Meanwhile, a kubecect command can be used for creating, editing, deleting and querying the VppCommand resource. If the vector packet processing module (VPP) needs to be configured, the VppCommand resource can be created, edited, and deleted through the Restful API or the kubecect command, so as to configure the vector packet processing module (VPP).
In this application, after creating at least one vector packet processing configuration command in the cluster, the method may further include: and executing each vector packet processing configuration command on the corresponding host node of each vector packet processing configuration command. For VppCommand object command02, a route is added on worker 01: 0.0.0.0/0via 10.89.2.1.
In the application, if a deletion event of a vector packet processing configuration command of the database is monitored, a host node corresponding to the deleted vector packet processing configuration command is obtained; and canceling the execution of the deleted vector packet processing configuration command on the host node corresponding to the deleted vector packet processing configuration command. And for the VppCommand object command02, deleting the route on worker 01: 0.0.0.0/0via 10.89.2.1.
In the application, a new controller can be added to the K8S cluster to monitor the change of the VppCommand resource in the K8S cluster and perform corresponding processing.
The VppCommand resource command02 can be exemplified.
(1) When creating command02, the controller may be responsible for executing the command "ip route add 0.0.0.0/0via 10.89.2.1" in the vector packet processing module (VPP) on the worker01 node to add the route: 0.0.0.0/0via 10.89.2.1.
(2) When command02 is deleted, the controller may be responsible for undoing the command "ip route add 0.0.0.0/0via 10.89.2.1" that has been executed when command02 was created, in the VPP on the worker01 node, i.e.: the withdraw operation is implemented in the vector packet processing module (VPP) by executing the command "ip route del 0.0.0.0/0via 10.89.2.1" to delete the route: 0.0.0.0/0via 10.89.2.1.
Therefore, a set of commands for configuring and de-configuring is formed by processing the configuration commands through the vector packet involved in creating the VppCommand resource and deleting the VppCommand resource.
In this application, the executing the replay operation of each vector packet processing configuration command according to the configuration command list includes: and executing the replay operation of the vector packet processing configuration commands according to the sequence of the vector packet processing configuration commands in the configuration command list, wherein the sequence is determined according to the creation time of the vector packet processing configuration commands.
In the present application, as described above, it may be responsible for recovering all network configurations for a restarted VPP through the VPP management module, and the specific process may be as follows:
suppose that the host node of the VPP is worker01.
(1) Acquiring all VppCommand objects from the Kubernets cluster, and filtering according to the target node, namely: and only obtaining a configuration command list of which the host node is worker01.
(2) Traversing each vector packet processing configuration command, namely a VppCommand object according to the sequence of each vector packet processing configuration command of the configuration command list, and executing replay operation in a vector packet processing module (VPP) of a worker01 node for each VppCommand object. The playback is the same as the operation performed when creating the VppCommand object.
As can be seen from the above, when creating VppCommand resource command02, the controller is responsible for executing the command "ip route add 0.0.0.0/0via 10.89.2.1" in VPP on worker01 node. Then, a replay operation is performed for the VppC ommand resource command02, that is, the command "ip route add 0.0.0.0/0via 10.89.2.1" is re-executed in the VPP on the worker01 node, so that the route can be re-added on the corresponding host node worker 01: 0.0.0.0/0via 10.89.2.1.
Through the above processing, the VPP management module can restore all configurations for the restarted VPP, and ensure that the VPP can still normally provide network services after the VPP is restarted.
An apparatus embodiment of the present application will be described with reference to the accompanying drawings.
Please refer to fig. 3.
Fig. 3 illustrates a network configuration apparatus of a cluster including at least one node according to an embodiment of the present application, and the network configuration apparatus 300 may include: a determination unit 301, an acquisition unit 302, and an execution unit 303.
The specific configuration of the network configuration device 300 may be: a determining unit 301, configured to determine a target node where a restart event of a vector packet processing module occurs after detecting a restart signal of the vector packet processing module at any node in the cluster; an obtaining unit 302, configured to obtain a configuration command list of vector packet processing on the target node, where the configuration command list includes at least one vector packet processing configuration command, and the vector packet processing configuration command is used to define a configuration command executed in vector packet processing; and the execution unit 303 is configured to execute a replay operation of each vector packet processing configuration command according to the configuration command list, so as to restore the network configuration for the restarted vector packet processing module.
Please refer to fig. 4.
FIG. 4 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
It should be noted that the computer system 400 of the electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiments.
As shown in fig. 4, the computer system 400 includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, according to a program stored in a Read-Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for system operation are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An Input/Output (I/O) interface 405 is also connected to the bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a Display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as needed, so that a computer program read out therefrom is mounted into the storage section 408 as needed.
In particular, according to embodiments of the present application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411. The computer program executes various functions defined in the system of the present application when executed by a Central Processing Unit (CPU) 401.
It should be noted that the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer program product or computer program comprising computer instructions 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 network configuration method of the cluster described in the above embodiments.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiment; or may be separate and not incorporated into the electronic device. The computer readable medium carries one or more programs, and when the one or more programs are executed by an electronic device, the electronic device is enabled to implement the network configuration method of the cluster described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method for network configuration of a cluster, the cluster comprising at least one node, the method comprising:
after a vector packet processing module restarting signal on any node in the cluster is detected, determining a target node where a vector packet processing module restarting event occurs;
acquiring a configuration command list of vector packet processing on the target node, wherein the configuration command list comprises at least one vector packet processing configuration command, and the vector packet processing configuration command is used for defining a configuration command executed in the vector packet processing;
and according to the configuration command list, executing the replay operation of each vector packet processing configuration command so as to restore the network configuration for the restarted vector packet processing module.
2. The method of claim 1, wherein prior to detecting a vector packet processing module restart signal on any one node in the cluster, the method further comprises:
and detecting a vector packet processing module restart signal of each node according to a preset period.
3. The method of claim 2, wherein before detecting the vector packet processing module restart signal of each node at a predetermined period, the method further comprises:
deploying at least one vector package processing module on the cluster.
4. The method of claim 3, wherein deploying at least one vector package processing module on the cluster comprises:
determining a host node of each vector packet processing module;
acquiring the mapping relation between the logic interface of each vector packet processing module and the address of the physical network card of the host node;
and finishing the deployment of each vector packet processing module according to each host node and each mapping relation.
5. The method of claim 4, wherein prior to obtaining the list of configuration commands for vector packet processing on the target node, the method further comprises:
and creating at least one vector packet processing configuration command in the cluster, and storing the vector packet processing configuration command in a database of the cluster, wherein each vector packet processing configuration command corresponds to a host node.
6. The method of claim 5, wherein after creating at least one vector packet processing configuration command in the cluster, the method further comprises:
and executing each vector packet processing configuration command on the host node corresponding to each vector packet processing configuration command.
7. The method of claim 5, wherein said performing a replay operation of each vector packet processing configuration command according to said configuration command list comprises:
and executing the replay operation of the vector packet processing configuration commands according to the sequence of the vector packet processing configuration commands in the configuration command list, wherein the sequence is determined according to the creation time of the vector packet processing configuration commands.
8. The method of claim 5, further comprising:
if the deletion event of the vector packet processing configuration command of the database is monitored, a host node corresponding to the deleted vector packet processing configuration command is obtained;
and canceling the execution of the deleted vector packet processing configuration command on the host node corresponding to the deleted vector packet processing configuration command.
9. A network configuration apparatus of a cluster, the cluster comprising at least one node, the network configuration apparatus comprising:
the determining unit is used for determining a target node of a restarting event of the vector packet processing module after detecting a restarting signal of the vector packet processing module on any one node in the cluster;
an obtaining unit, configured to obtain a configuration command list of vector packet processing on the target node, where the configuration command list includes at least one vector packet processing configuration command, and the vector packet processing configuration command is used to define a configuration command executed in vector packet processing;
and the execution unit is used for executing the replay operation of each vector packet processing configuration command according to the configuration command list so as to restore the network configuration for the restarted vector packet processing module.
10. An electronic device, comprising one or more processors and one or more memories having stored therein at least one program code, the at least one program code being loaded and executed by the one or more processors to perform operations performed by a network configuration method of a cluster according to any of claims 1 to 8.
CN202210993272.0A 2022-08-18 2022-08-18 Cluster network configuration method and device Pending CN115277398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210993272.0A CN115277398A (en) 2022-08-18 2022-08-18 Cluster network configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210993272.0A CN115277398A (en) 2022-08-18 2022-08-18 Cluster network configuration method and device

Publications (1)

Publication Number Publication Date
CN115277398A true CN115277398A (en) 2022-11-01

Family

ID=83751952

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210993272.0A Pending CN115277398A (en) 2022-08-18 2022-08-18 Cluster network configuration method and device

Country Status (1)

Country Link
CN (1) CN115277398A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116302682A (en) * 2023-01-13 2023-06-23 明阳产业技术研究院(沈阳)有限公司 Log-based VPP configuration recovery method, system, medium and equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116302682A (en) * 2023-01-13 2023-06-23 明阳产业技术研究院(沈阳)有限公司 Log-based VPP configuration recovery method, system, medium and equipment
CN116302682B (en) * 2023-01-13 2024-05-24 明阳产业技术研究院(沈阳)有限公司 Log-based VPP configuration recovery method, system, medium and equipment

Similar Documents

Publication Publication Date Title
US10860532B2 (en) Sharing of snapshots among multiple computing machines
US10496503B2 (en) Healing cloud services during upgrades
US10678656B2 (en) Intelligent restore-container service offering for backup validation testing and business resiliency
CN104714822B (en) For the method and system for the real-time update for performing operating system
US20210004292A1 (en) Automatically configuring boot sequence of container systems for disaster recovery
CN109656742B (en) Node exception handling method and device and storage medium
CN107368353B (en) Method and device for realizing hot addition of virtual machine memory
CN104951694A (en) Isolation method and apparatus for management virtual machine
US10795688B2 (en) System and method for performing an image-based update
CN111897558A (en) Kubernets upgrading method and device for container cluster management system
CN115113987A (en) Method, device, equipment and medium for allocating non-uniform memory access resources
CN115277398A (en) Cluster network configuration method and device
CN116560803B (en) Resource management method and related device based on SR-IOV
CN112948102B (en) Virtual machine event processing method, device and system
US9798571B1 (en) System and method for optimizing provisioning time by dynamically customizing a shared virtual machine
US20230161643A1 (en) Lifecycle management for workloads on heterogeneous infrastructure
CN115150268A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment
CN114721686A (en) Configuration data updating method and device, electronic equipment and storage medium
CN114281473A (en) Cloud platform test environment management method, system, terminal and storage medium
CN113051122A (en) Performance data acquisition method, performance data acquisition device, electronic equipment and medium
CN112241293A (en) Application management method, device, equipment and medium for industrial internet cloud platform
WO2023193609A1 (en) Selective privileged container augmentation
US20240152371A1 (en) Dynamic re-execution of parts of a containerized application pipeline
CN111565228B (en) Data source switching method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination