Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, partial terms or terminology appearing in the course of describing embodiments of the application are applicable to the following explanation:
out-of-band server: the springboard server is used for enabling the application of the in-band network to access the out-of-band network to acquire out-of-band resources;
out-of-band service: also known as out-of-band functions, such as data acquisition, hardware monitoring, and debugging, etc.;
Network proxy: hardware or software for carrying out proxy forwarding on data packets among different networks;
cloud server: virtual servers provided by cloud computing vendors.
Example 1
There is also provided in accordance with an embodiment of the present application a method of constructing an out-of-band network, it being noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical sequence is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in a different order than that illustrated herein.
The method according to the first embodiment of the present application may be implemented in a mobile terminal, a computer terminal or a similar computing device. Fig. 1 shows a block diagram of a hardware architecture of a computer terminal (or mobile device) for implementing a method of construction of an out-of-band network. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more processors (shown as 102a, 102b, … …,102n in the figures) which may include, but are not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA, a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 1 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors and/or other data processing circuits described above may be referred to herein generally as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Furthermore, the data processing circuitry may be a single stand-alone processing module, or incorporated, in whole or in part, into any of the other elements in the computer terminal 10 (or mobile device). As referred to in embodiments of the application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the method for constructing an out-of-band network in the embodiments of the present application, and the processor executes the software programs and modules stored in the memory 104, thereby executing various functional applications and data processing, that is, implementing the method for constructing an out-of-band network described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module for communicating with the internet wirelessly.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
In the above-described operating environment, the present application provides a method for constructing an out-of-band network as shown in fig. 2. Fig. 2 is a flowchart of a method for constructing an out-of-band network according to a first embodiment of the present application, the method including:
in step S201, a plurality of out-of-band services are deployed onto a target cluster, where the target cluster is composed of a plurality of first cloud servers, and the first cloud servers initiate out-of-band access requests through the out-of-band services.
In particular, the main problem in the prior art is that the resources of the out-of-band server are limited due to the greatly increased out-of-band services, so that in the method provided by the application, all out-of-band services are deployed in a target cluster, and the target cluster is composed of a first cloud server, and the first cloud server is a cloud server with the authority of initiating out-of-band access requests. The cloud server can easily realize addition, deletion and expansion through the capability of the cloud, so that the resource requirement of out-of-band service is met in real time, and meanwhile, the network port and the machine position of the tense out-of-band switch are not occupied. And through the use of cloud VPC (refer to virtual private network service or proprietary network of cloud server), the isolation of the target cluster from external common applications is ensured to a certain extent.
Step S202, a first data path between the target cluster and at least one out-of-band server is constructed, and a second data path between the out-of-band server and an out-of-band switch is constructed, wherein the out-of-band server is used for a network proxy between the target cluster and the out-of-band switch, and the out-of-band switch is used for executing out-of-band access requests.
Specifically, a first data path of the target cluster and at least one out-of-band server is constructed, a second data path of the out-of-band server and the out-of-band switch is constructed, and the out-of-band server realizes the forwarding work of data packets between the target cluster and the out-of-band switch through the first data path and the second data path. Because the out-of-band server only needs to do network forwarding, the greatly increased out-of-band service does not place excessive performance stress on the out-of-band server.
In step S203, the out-of-band server and the out-of-band switch construct an out-of-band network based on the target cluster.
Specifically, as shown in fig. 3, an out-of-band network is built by the target cluster, the out-of-band server and the out-of-band switch.
In conclusion, the out-of-band service is deployed in the target cluster, and the out-of-band server only forwards the data packet, so that the out-of-band server cannot be subjected to excessive performance pressure due to the greatly increased out-of-band function, and the processing efficiency of the out-of-band service is improved.
Optionally, in the method for constructing an out-of-band network according to the first embodiment of the present invention, deploying a plurality of out-of-band services onto a target cluster includes: acquiring a plurality of first cloud servers, and constructing the plurality of first cloud servers as a target cluster; and deploying the plurality of out-of-band services to the first cloud server in the target cluster according to the load balancing service of the first cloud server.
Specifically, a plurality of first cloud servers are selected first and built into a target cluster. The target cluster may be a k8s cluster. The Kubernetes (k 8 s) is a container cluster management system (on the basis of the Docker technology, a series of complete functions such as deployment operation, resource scheduling, service discovery and dynamic expansion are provided for containerized applications, and convenience of large-scale container cluster management is improved.
Optionally, in the method for constructing an out-of-band network according to the first embodiment of the present invention, after selecting the first cloud server and constructing the first cloud server as the target cluster, the method further includes: if the operation of adding the cloud server is detected, a second cloud server is added to the target cluster; and if the operation of deleting the third cloud server in the target cluster is detected, deleting the third cloud server from the target cluster.
Specifically, since the cloud server is used, the addition, deletion and expansion of the cloud server can be easily achieved by the capabilities of the cloud itself. Therefore, cloud services in the target cluster can be operated and managed according to actual out-of-band service requirements, so that the out-of-band resource requirements are met. The cloud server improves the convenience of operation and reduces the performance pressure of the out-of-band server.
Optionally, in the method for constructing an out-of-band network according to the first embodiment of the present invention, the out-of-band server includes an internal switching board and at least one node, where a data transmission channel is provided for the node through the internal switching board, and the node supports hot plug operation.
Specifically, since the out-of-band server only needs to perform data forwarding and filtering, the out-of-band server adopts a multi-node out-of-band server (multi-node out-of-band server) with weaker performance, and the multi-node out-of-band server is composed of an internal exchange board and at least one node. Meanwhile, the nodes of the out-of-band server support hot plug operation, and when a certain node of the multi-node out-of-band server has a problem, replacement repair can be rapidly carried out under the condition that service is not affected, so that the stability of the whole out-of-band network is greatly improved. For example, as shown in fig. 4, the internal switch board is used to provide two paths of data paths for two nodes without changing the number of network ports (1 main and 1 standby) of the original out-of-band switch, so that the out-of-band server is expanded into the out-of-band server of two nodes without increasing the machine position and the network ports.
Optionally, in the method for constructing an out-of-band network provided in the first embodiment of the present invention, constructing a first data path between a target cluster and at least one out-of-band server, and constructing a second data path between the out-of-band server and an out-of-band switch board includes: connecting the target cluster with a network port of at least one node in each out-of-band server to obtain a first data path; and connecting the network port of the out-of-band switch with the network port of the out-of-band switch board to obtain a second data path.
Specifically, as shown in fig. 3 and fig. 4, the target cluster is connected with the network port of the node of the out-of-band server, and the network port of the out-of-band switch board of the out-of-band server is connected with the network port of the out-of-band switch, so that the out-of-band server of the multi-node can provide the function of data forwarding without increasing the number of the network ports of the out-of-band switch. The cloud server is used for dynamically meeting the resource requirements of the out-of-band service, the network proxy is used for carrying out security assurance, and the stability and performance of the out-of-band network are comprehensively improved under the condition that the network port and the machine position of the out-of-band switch are not increased by matching with the multiple out-of-band server.
In summary, in the method for constructing an out-of-band network according to the first embodiment of the present invention, a plurality of out-of-band services are deployed on a target cluster, where the target cluster is composed of a plurality of first cloud servers, and the first cloud servers initiate out-of-band access requests through the out-of-band services; constructing a first data path of the target cluster and at least one out-of-band server, and constructing a second data path of the out-of-band server and an out-of-band switch, wherein the out-of-band server is used for a network proxy between the target cluster and the out-of-band switch, and the out-of-band switch is used for executing out-of-band access requests; based on the target cluster, the out-of-band server and the out-of-band switch construct an out-of-band network, so that the technical problem that the out-of-band service processing efficiency is lower due to the fact that out-of-band service is greatly increased and resources of the out-of-band server are very limited in the related technology is solved. By arranging the out-of-band service in the target cluster, the out-of-band server only forwards the data packet, and the greatly increased out-of-band function does not bring excessive performance pressure to the out-of-band server, so that the effect of improving the processing efficiency of the out-of-band service is achieved.
It should be noted that, for simplicity of description, the foregoing method embodiments are all described as a series of acts, but it should be understood by those skilled in the art that the present application is not limited by the order of acts described, as some steps may be performed in other orders or concurrently in accordance with the present application. Further, those skilled in the art will also appreciate that the embodiments described in the specification are all preferred embodiments, and that the acts and modules referred to are not necessarily required for the present application.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present application.
Example 2
According to an embodiment of the present application, there is further provided an out-of-band processing method based on an out-of-band network, and fig. 5 is a flowchart of an out-of-band processing method based on an out-of-band network according to a second embodiment of the present application, where the method includes:
step 501, receiving, by an out-of-band server, an out-of-band access request initiated by a target cluster, where the out-of-band access request at least includes: an IP address of a cloud server initiating the out-of-band access request and a data requirement of the out-of-band access request;
Specifically, the target cluster initiates an out-of-band access request according to actual requirements, and sends the out-of-band access request to the out-of-band server.
Step 502, forwarding the out-of-band access request to the out-of-band switch through the out-of-band server, wherein the out-of-band switch obtains a target data packet according to the data requirement of the out-of-band access request after receiving the out-of-band access request, and returns the target data packet to the out-of-band server;
Specifically, the out-of-band server forwards the received out-of-band access request to the out-of-band switch, and the out-of-band switch acquires the target data packet according to the data requirement of the out-of-band access request and returns the target data packet to the out-of-band server.
In step 503, the target data packet is forwarded to the target cluster by the node of the out-of-band server.
Specifically, the out-of-band server forwards the data packet to the target cluster.
In sum, the out-of-band access request is initiated through the target cluster, and the out-of-band access request and the forwarding of the target data packet are realized through the out-of-band server, so that the problem that the processing efficiency of the out-of-band service is lower due to the fact that the out-of-band service is greatly increased and the resources of the out-of-band server are very limited in the related art is solved.
Optionally, in the method for processing an out-of-band based on an out-of-band network according to the second embodiment of the present invention, forwarding, by an out-of-band server, the out-of-band access request to the out-of-band switch includes: judging whether the IP address in the out-of-band access request is in a preset range or not through the out-of-band server; and if the IP address in the out-of-band access request is in the preset range, forwarding the out-of-band access request to the out-of-band switch.
Specifically, the out-of-band server determines whether the IP address in the out-of-band access request is within a preset range, and determines whether the cloud server that initiates the out-of-band access request has the right to initiate the request through the IP address. After determining that the request has the right to initiate the request, the out-of-band access request is forwarded to the out-of-band switch. The out-of-band server screens the IP address, so that illegal out-of-band access can be effectively prevented, and isolation and safety of the out-of-band network are ensured.
Optionally, in the out-of-band processing method based on the out-of-band network provided in the second embodiment of the present invention, forwarding, by a node of the out-of-band server, the target data packet to the target cluster includes: after receiving the target data packet, the out-of-band server detects whether each node of the out-of-band server is in a normal working state; and if each node is in a normal working state, forwarding the target data packet to the target cluster through all the nodes.
Specifically, the out-of-band server adopts an out-of-band server with multiple nodes, and when data transmission is performed, if all the nodes are in a normal working state, the target data packet is forwarded through all the nodes. If one node fails, the target data packet is forwarded through the remaining nodes. For example, the dual-node out-of-band server uses an internal switch board to provide two paths of data channels for two internal nodes, when one node fails, the original network traffic can go through the other node before repairing the node, thereby ensuring that the service is not interrupted. The internal exchange board has no calculation task and single function, so that the internal exchange board basically does not have faults. And then the problem of insufficient single node performance is solved by matching with an external target cluster.
Optionally, in the out-of-band processing method based on the out-of-band network according to the second embodiment of the present invention, after detecting whether each node of the out-of-band server is in a normal working state, the method further includes: if the target node of the out-of-band server is detected not to be in a normal working state, forwarding the target data packet to the target cluster through nodes except the target node in the out-of-band server, and sending a reminding signal, wherein the reminding signal is used for reminding the abnormal condition of the target node of the out-of-band server of the target object.
Specifically, when a failure occurs in a target node, the target data packet is forwarded to the target cluster through nodes other than the target node. And simultaneously, sending a reminding signal to remind the target node of the out-of-band server of the target object of the abnormal condition. When a single node fails, the current service processing work does not need to be stopped, and only the node needs to be replaced by hot plug.
In summary, in the out-of-band processing method based on the out-of-band network provided in the second embodiment of the present invention, an out-of-band access request is initiated by receiving, by an out-of-band server, a target cluster, where the out-of-band access request at least includes: an IP address of a cloud server initiating the out-of-band access request and a data requirement of the out-of-band access request; forwarding the out-of-band access request to an out-of-band switch through the out-of-band server, wherein the out-of-band switch acquires a target data packet according to the data requirement of the out-of-band access request after receiving the out-of-band access request, and returns the target data packet to the out-of-band server; the node of the out-of-band server forwards the target data packet to the target cluster, so that the technical problem that the processing efficiency of the out-of-band service is lower due to the fact that the out-of-band service is greatly increased and the resources of the out-of-band server are very limited in the related art is solved.
Example 3
According to an embodiment of the present application, there is also provided an out-of-band processing system for implementing the above out-of-band processing method based on an out-of-band network, as shown in fig. 6, the system including: a target cluster 20, an out-of-band server 30, and an out-of-band switch 40.
The target cluster 20, wherein the target cluster initiates an out-of-band access request and sends the out-of-band access request to the out-of-band server. An out-of-band server 30, wherein the out-of-band server forwards the out-of-band access request to the out-of-band switch. And the out-of-band switch 40, wherein the out-of-band switch obtains the target data packet according to the data requirement of the out-of-band access request after receiving the out-of-band access request, and returns the target data packet to the out-of-band server so as to forward the target data packet to the target cluster through the node of the out-of-band server.
Because the cloud server is used, the resources can be modified simply and dynamically, the number of the out-of-band servers is not limited, a large number of out-of-band services and out-of-band accesses can be supported by the system, and the processing efficiency of the out-of-band services is improved.
In the above system, the specific method of using the target cluster 20, the out-of-band server 30 and the out-of-band switch 40 is the same as that in the second embodiment, and will not be described here again.
Example 4
According to an embodiment of the present application, there is also provided an apparatus for constructing an out-of-band network for implementing the method for constructing an out-of-band network, as shown in fig. 7, the apparatus including: a deployment unit 701, a first construction unit 702 and a second construction unit 703.
A deployment unit 701, configured to deploy a plurality of out-of-band services onto a target cluster, where the target cluster is composed of a plurality of first cloud servers, and the first cloud servers initiate out-of-band access requests through the out-of-band services;
A first construction unit 702, configured to construct a first data path between the target cluster and at least one out-of-band server, and construct a second data path between the out-of-band server and an out-of-band switch, where the out-of-band server is configured to perform a network proxy between the target cluster and the out-of-band switch, and the out-of-band switch is configured to perform an out-of-band access request;
a second construction unit 703 is configured to construct an out-of-band network based on the target cluster, the out-of-band server and the out-of-band switch.
In summary, in the device for constructing an out-of-band network provided in the fourth embodiment of the present invention, a plurality of out-of-band services are deployed onto a target cluster through a deployment unit 701, where the target cluster is composed of a plurality of first cloud servers, and the first cloud servers initiate out-of-band access requests through the out-of-band services; the first construction unit 702 constructs a first data path between the target cluster and at least one out-of-band server, and constructs a second data path between the out-of-band server and an out-of-band switch, where the out-of-band server is configured to perform the out-of-band access request and a network proxy between the target cluster and the out-of-band switch; the second construction unit 703 constructs an out-of-band network based on the target cluster, the out-of-band server and the out-of-band switch, so as to solve the technical problem that the out-of-band service processing efficiency is low due to the fact that the out-of-band service is greatly increased and the resources of the out-of-band server are very limited in the related art. By arranging the out-of-band service in the target cluster, the out-of-band server only forwards the data packet, and the greatly increased out-of-band function does not bring excessive performance pressure to the out-of-band server, so that the effect of improving the processing efficiency of the out-of-band service is achieved.
Optionally, in the device for constructing an out-of-band network provided in the fourth embodiment of the present invention, the deployment unit 701 includes: the acquisition module is used for acquiring a plurality of first cloud servers and constructing the plurality of first cloud servers into a target cluster; the deployment module is used for deploying a plurality of out-of-band services to the first cloud server in the target cluster according to the load balancing service of the first cloud server.
Optionally, in the device for constructing an out-of-band network provided in the fourth embodiment of the present invention, the device further includes: the first detection unit is used for selecting a first cloud server, constructing the first cloud server as a target cluster, and then, if the operation of adding the cloud server is detected, newly adding a second cloud server to the target cluster; and the second detection unit is used for deleting the third cloud server from the target cluster if the operation of deleting the third cloud server in the target cluster is detected.
Optionally, in the device for constructing an out-of-band network according to the fourth embodiment of the present invention, the out-of-band server includes an internal switching board and at least one node, where a data transmission channel is provided for the node through the internal switching board, and the node supports hot plug operation.
Optionally, in the device for constructing an out-of-band network according to the fourth embodiment of the present invention, the first constructing unit 702 includes: the first connection module is used for connecting the target cluster with the network port of at least one node in each out-of-band server to obtain a first data path; and the second connection module is used for connecting the network port of the out-of-band switch with the network port of the out-of-band switch board to obtain a second data path.
Here, it should be noted that the above-mentioned deployment unit 701, the first construction unit 702 and the second construction unit 703 correspond to steps S201 to S203 in embodiment 1, and the two modules are the same as the examples and application scenarios implemented by the corresponding steps, but are not limited to what is disclosed in the above-mentioned embodiment one. It should be noted that the above-described module may be operated as a part of the apparatus in the computer terminal 10 provided in the first embodiment.
It should be noted that, the preferred embodiment of the present application in the above examples is the same as the embodiment provided in example 1, the application scenario and the implementation process, but is not limited to the embodiment provided in example 1.
Example 5
Embodiments of the present application may provide a computer terminal, which may be any one of a group of computer terminals. Alternatively, in the present embodiment, the above-described computer terminal may be replaced with a terminal device such as a mobile terminal.
Alternatively, in this embodiment, the above-mentioned computer terminal may be located in at least one network device among a plurality of network devices of the computer network.
In this embodiment, the above-mentioned computer terminal may execute the program code of the following steps in the method for constructing an out-of-band network: deploying a plurality of out-of-band services onto a target cluster, wherein the target cluster is composed of a plurality of first cloud servers, and the first cloud servers initiate out-of-band access requests through the out-of-band services; constructing a first data path of the target cluster and at least one out-of-band server, and constructing a second data path of the out-of-band server and an out-of-band switch, wherein the out-of-band server is used for a network proxy between the target cluster and the out-of-band switch, and the out-of-band switch is used for executing out-of-band access requests; the out-of-band server and the out-of-band switch construct an out-of-band network based on the target cluster.
The above computer terminal may further execute program codes of the following steps in the method for constructing an out-of-band network: deploying a plurality of out-of-band services onto a target cluster includes: acquiring a plurality of first cloud servers, and constructing the plurality of first cloud servers as a target cluster; and deploying the plurality of out-of-band services to the first cloud server in the target cluster according to the load balancing service of the first cloud server.
The above computer terminal may further execute program codes of the following steps in the method for constructing an out-of-band network: after the first cloud server is selected and is built into a target cluster, if the operation of adding the cloud server is detected, a second cloud server is newly added to the target cluster; and if the operation of deleting the third cloud server in the target cluster is detected, deleting the third cloud server from the target cluster.
The above computer terminal may further execute program codes of the following steps in the method for constructing an out-of-band network: the out-of-band server comprises an internal exchange board and at least one node, wherein the internal exchange board provides a data transmission channel for the node, and the node supports hot plug operation.
The above computer terminal may further execute program codes of the following steps in the method for constructing an out-of-band network: constructing a first data path of the target cluster and at least one out-of-band server, and constructing a second data path of the out-of-band server and the out-of-band switch board includes: connecting the target cluster with a network port of at least one node in each out-of-band server to obtain a first data path; and connecting the network port of the out-of-band switch with the network port of the out-of-band switch board to obtain a second data path.
The above-mentioned computer terminal may further execute program code for the following steps in an out-of-band processing method based on an out-of-band network: receiving a target cluster to initiate an out-of-band access request through an out-of-band server, wherein the out-of-band access request at least comprises: an IP address of a cloud server initiating the out-of-band access request and a data requirement of the out-of-band access request; forwarding the out-of-band access request to an out-of-band switch through the out-of-band server, wherein the out-of-band switch acquires a target data packet according to the data requirement of the out-of-band access request after receiving the out-of-band access request, and returns the target data packet to the out-of-band server; and forwarding the target data packet to the target cluster through the node of the out-of-band server.
The above-mentioned computer terminal may further execute program code for the following steps in an out-of-band processing method based on an out-of-band network: forwarding the out-of-band access request to the out-of-band switch by the out-of-band server includes: judging whether the IP address in the out-of-band access request is in a preset range or not through the out-of-band server; and if the IP address in the out-of-band access request is in the preset range, forwarding the out-of-band access request to the out-of-band switch.
The above-mentioned computer terminal may further execute program code for the following steps in an out-of-band processing method based on an out-of-band network: forwarding the target data packet to the target cluster by the node of the out-of-band server includes: after receiving the target data packet, the out-of-band server detects whether each node of the out-of-band server is in a normal working state; and if each node is in a normal working state, forwarding the target data packet to the target cluster through all the nodes.
The above-mentioned computer terminal may further execute program code for the following steps in an out-of-band processing method based on an out-of-band network: after detecting whether each node of the out-of-band server is in a normal working state or not, if the target node of the out-of-band server is not in the normal working state, forwarding the target data packet to the target cluster through nodes except the target node in the out-of-band server, and sending a reminding signal, wherein the reminding signal is used for reminding the abnormal condition of the target node of the out-of-band server of the target object.
Alternatively, fig. 8 is a block diagram of a computer terminal according to an embodiment of the present application. As shown in fig. 8, the computer terminal 10 may include: one or more (only one shown in fig. 8) processors, memory.
The memory may be used to store software programs and modules, such as program instructions/modules corresponding to the method and apparatus for constructing an out-of-band network in the embodiments of the present application, and the processor executes the software programs and modules stored in the memory, thereby executing various functional applications and data processing, that is, implementing the method for constructing an out-of-band network described above. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory located remotely from the processor, which may be connected to the terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor may call the information and the application program stored in the memory through the transmission device to perform the following steps: deploying a plurality of out-of-band services onto a target cluster, wherein the target cluster is composed of a plurality of first cloud servers, and the first cloud servers initiate out-of-band access requests through the out-of-band services; constructing a first data path of the target cluster and at least one out-of-band server, and constructing a second data path of the out-of-band server and an out-of-band switch, wherein the out-of-band server is used for a network proxy between the target cluster and the out-of-band switch, and the out-of-band switch is used for executing out-of-band access requests; the out-of-band server and the out-of-band switch construct an out-of-band network based on the target cluster.
Optionally, the above processor may further execute program code for: deploying a plurality of out-of-band services onto a target cluster includes: acquiring a plurality of first cloud servers, and constructing the plurality of first cloud servers as a target cluster; and deploying the plurality of out-of-band services to the first cloud server in the target cluster according to the load balancing service of the first cloud server.
Optionally, the above processor may further execute program code for: after the first cloud server is selected and is built into a target cluster, if the operation of adding the cloud server is detected, a second cloud server is newly added to the target cluster; and if the operation of deleting the third cloud server in the target cluster is detected, deleting the third cloud server from the target cluster.
Optionally, the above processor may further execute program code for: the out-of-band server comprises an internal exchange board and at least one node, wherein the internal exchange board provides a data transmission channel for the node, and the node supports hot plug operation.
Optionally, the above processor may further execute program code for: constructing a first data path of the target cluster and at least one out-of-band server, and constructing a second data path of the out-of-band server and the out-of-band switch board includes: connecting the target cluster with a network port of at least one node in each out-of-band server to obtain a first data path; and connecting the network port of the out-of-band switch with the network port of the out-of-band switch board to obtain a second data path.
Optionally, the above processor may further execute program code for: receiving a target cluster to initiate an out-of-band access request through an out-of-band server, wherein the out-of-band access request at least comprises: an IP address of a cloud server initiating the out-of-band access request and a data requirement of the out-of-band access request; forwarding the out-of-band access request to an out-of-band switch through the out-of-band server, wherein the out-of-band switch acquires a target data packet according to the data requirement of the out-of-band access request after receiving the out-of-band access request, and returns the target data packet to the out-of-band server; and forwarding the target data packet to the target cluster through the node of the out-of-band server.
Optionally, the above processor may further execute program code for: forwarding the out-of-band access request to the out-of-band switch by the out-of-band server includes: judging whether the IP address in the out-of-band access request is in a preset range or not through the out-of-band server; and if the IP address in the out-of-band access request is in the preset range, forwarding the out-of-band access request to the out-of-band switch.
Optionally, the above processor may further execute program code for: forwarding the target data packet to the target cluster by the node of the out-of-band server includes: after receiving the target data packet, the out-of-band server detects whether each node of the out-of-band server is in a normal working state; and if each node is in a normal working state, forwarding the target data packet to the target cluster through all the nodes.
Optionally, the above processor may further execute program code for: after detecting whether each node of the out-of-band server is in a normal working state or not, if the target node of the out-of-band server is not in the normal working state, forwarding the target data packet to the target cluster through nodes except the target node in the out-of-band server, and sending a reminding signal, wherein the reminding signal is used for reminding the abnormal condition of the target node of the out-of-band server of the target object.
The embodiment of the application provides a construction method of an out-of-band network. By arranging the out-of-band service in the target cluster, the out-of-band server only forwards the data packet, so that the out-of-band server cannot be subjected to excessive performance pressure by the greatly increased out-of-band function, and the technical problem that the processing efficiency of the out-of-band service is lower due to the fact that the out-of-band service is greatly increased and the resources of the out-of-band server are very limited in the related technology is solved.
It will be appreciated by those skilled in the art that the structure shown in fig. 8 is only illustrative, and the computer terminal may be a smart phone (such as an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, a Mobile internet device (Mobile INTERNET DEVICES, MID), a PAD, etc. Fig. 8 is not limited to the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 8, or have a different configuration than shown in FIG. 8.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing a terminal device to execute in association with hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: flash disk, read-only memory (ROM), random-access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
Example 6
The embodiment of the application also provides a storage medium. Alternatively, in this embodiment, the storage medium may be used to store the program code executed by the method for constructing an out-of-band network provided in the first embodiment and the program code executed by the method for processing an out-of-band based on the out-of-band network provided in the second embodiment.
Alternatively, in this embodiment, the storage medium may be located in any one of the computer terminals in the computer terminal group in the computer network, or in any one of the mobile terminals in the mobile terminal group.
Alternatively, in the present embodiment, the above-described storage medium is configured to store program code for performing the steps of: deploying a plurality of out-of-band services onto a target cluster, wherein the target cluster is composed of a plurality of first cloud servers, and the first cloud servers initiate out-of-band access requests through the out-of-band services; constructing a first data path of the target cluster and at least one out-of-band server, and constructing a second data path of the out-of-band server and an out-of-band switch, wherein the out-of-band server is used for a network proxy between the target cluster and the out-of-band switch, and the out-of-band switch is used for executing out-of-band access requests; the out-of-band server and the out-of-band switch construct an out-of-band network based on the target cluster.
The above-mentioned storage medium is further arranged to store program code for performing the steps of: deploying a plurality of out-of-band services onto a target cluster includes: acquiring a plurality of first cloud servers, and constructing the plurality of first cloud servers as a target cluster; and deploying the plurality of out-of-band services to the first cloud server in the target cluster according to the load balancing service of the first cloud server.
The above-mentioned storage medium is further arranged to store program code for performing the steps of: after the first cloud server is selected and is built into a target cluster, if the operation of adding the cloud server is detected, a second cloud server is newly added to the target cluster; and if the operation of deleting the third cloud server in the target cluster is detected, deleting the third cloud server from the target cluster.
The above-mentioned storage medium is further arranged to store program code for performing the steps of: the out-of-band server comprises an internal exchange board and at least one node, wherein the internal exchange board provides a data transmission channel for the node, and the node supports hot plug operation.
The above-mentioned storage medium is further arranged to store program code for performing the steps of: constructing a first data path of the target cluster and at least one out-of-band server, and constructing a second data path of the out-of-band server and the out-of-band switch board includes: connecting the target cluster with a network port of at least one node in each out-of-band server to obtain a first data path; and connecting the network port of the out-of-band switch with the network port of the out-of-band switch board to obtain a second data path.
The above-mentioned storage medium is further arranged to store program code for performing the steps of: receiving a target cluster to initiate an out-of-band access request through an out-of-band server, wherein the out-of-band access request at least comprises: an IP address of a cloud server initiating the out-of-band access request and a data requirement of the out-of-band access request; forwarding the out-of-band access request to an out-of-band switch through the out-of-band server, wherein the out-of-band switch acquires a target data packet according to the data requirement of the out-of-band access request after receiving the out-of-band access request, and returns the target data packet to the out-of-band server; and forwarding the target data packet to the target cluster through the node of the out-of-band server.
The above-mentioned storage medium is further arranged to store program code for performing the steps of: forwarding the out-of-band access request to the out-of-band switch by the out-of-band server includes: judging whether the IP address in the out-of-band access request is in a preset range or not through the out-of-band server; and if the IP address in the out-of-band access request is in the preset range, forwarding the out-of-band access request to the out-of-band switch.
The above-mentioned storage medium is further arranged to store program code for performing the steps of: forwarding the target data packet to the target cluster by the node of the out-of-band server includes: after receiving the target data packet, the out-of-band server detects whether each node of the out-of-band server is in a normal working state; and if each node is in a normal working state, forwarding the target data packet to the target cluster through all the nodes.
The above-mentioned storage medium is further arranged to store program code for performing the steps of: after detecting whether each node of the out-of-band server is in a normal working state or not, if the target node of the out-of-band server is not in the normal working state, forwarding the target data packet to the target cluster through nodes except the target node in the out-of-band server, and sending a reminding signal, wherein the reminding signal is used for reminding the abnormal condition of the target node of the out-of-band server of the target object.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
In the foregoing embodiments of the present application, the descriptions of the embodiments are emphasized, and for a portion of this disclosure that is not described in detail in this embodiment, reference is made to the related descriptions of other embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed technology may be implemented in other manners. The above-described embodiments of the apparatus are merely exemplary, and the division of the units, such as the division of the units, is merely a logical function division, and may be implemented in another manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some interfaces, units or modules, or may be in electrical or other forms.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a read-only memory (ROM), a random access memory (RAM, random Access Memory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which are intended to be comprehended within the scope of the present application.