CN109039933B - Cluster network optimization method, device, equipment and medium - Google Patents

Cluster network optimization method, device, equipment and medium Download PDF

Info

Publication number
CN109039933B
CN109039933B CN201810921913.5A CN201810921913A CN109039933B CN 109039933 B CN109039933 B CN 109039933B CN 201810921913 A CN201810921913 A CN 201810921913A CN 109039933 B CN109039933 B CN 109039933B
Authority
CN
China
Prior art keywords
target
virtual machine
server
resource
idle
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.)
Active
Application number
CN201810921913.5A
Other languages
Chinese (zh)
Other versions
CN109039933A (en
Inventor
李俊山
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201810921913.5A priority Critical patent/CN109039933B/en
Publication of CN109039933A publication Critical patent/CN109039933A/en
Application granted granted Critical
Publication of CN109039933B publication Critical patent/CN109039933B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds

Landscapes

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

Abstract

The invention discloses a cluster network optimization method, a device, equipment and a medium, wherein the method comprises the following steps: acquiring idle resource information of a target server in a cluster network; the idle resource information at least comprises idle bandwidths of all network links of the target server; when the value of any target resource item in the idle resource information is smaller than a preset threshold corresponding to the target resource item, judging whether a virtual machine runs in a target server or not; if yes, selecting a target virtual machine from the target server according to the first preset logic, and selecting the target server according to the second preset logic; and transmitting the target virtual machine to the destination server by taking the idle bandwidth as the constraint of the data transmission quantity. The method avoids network congestion of the cluster network in the process of migrating the virtual machine of the server, and further ensures the availability and the service quality of the cluster network. In addition, the invention also provides a cluster network optimization device, equipment and a medium, and the beneficial effects are as above.

Description

Cluster network optimization method, device, equipment and medium
Technical Field
The present invention relates to the field of internet, and in particular, to a method, an apparatus, a device, and a medium for cluster network optimization.
Background
At present, with the rapid development of cloud computing technology under the background of big data, the processing of data gradually favors being performed through a network cluster, and servers in the network cluster are no longer independent computing modules, but need to cooperate with each other, so that when monitoring and managing are performed on the servers in the network under this scenario, large-scale regulation and control are often required according to the overall situation of the servers.
Taking a data center commonly used by a current enterprise as an example, the data center is a management and control core of a cloud computing architecture, can macroscopically count the use conditions of resources such as a CPU (central processing unit), a memory, a storage and a network of each server in a current cluster network, and can perform uniform allocation on the resource load of each server to optimize the cluster network, so that the aim of relatively averaging the working pressure of each server in the cluster network is fulfilled.
In the current usage mode, one physical server usually runs a plurality of virtual machines, and the virtual machines are used as units to provide support for upper-layer applications, so migrating a virtual machine in a server with a large load to a server with a relatively small load is a commonly used method for uniformly allocating resource loads of the servers. However, because the data volume of the virtual machine is relatively large, during the process of migrating the virtual machine, a large amount of network resources are easily occupied to generate network congestion, so that the availability of the cluster network is influenced, and the service quality of the cluster network is reduced.
Therefore, it is obvious that a method for optimizing a cluster network is provided to avoid network congestion of the cluster network during a process of migrating a virtual machine of a server, so as to ensure availability and service quality of the cluster network, and a problem to be solved by those skilled in the art is urgently needed.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a medium for optimizing a cluster network, so as to avoid network congestion of the cluster network in the process of migrating a virtual machine of a server, and further guarantee the availability and the service quality of the cluster network.
In order to solve the above technical problem, the present invention provides a method for optimizing a cluster network, including:
acquiring idle resource information of a target server in a cluster network; the idle resource information at least comprises idle bandwidths of all network links of the target server;
when the value of any target resource item in the idle resource information is smaller than a preset threshold corresponding to the target resource item, judging whether a virtual machine runs in a target server or not;
if yes, selecting a target virtual machine from the target server according to the first preset logic, and selecting the target server according to the second preset logic;
and transmitting the target virtual machine to the destination server by taking the idle bandwidth as the constraint of the data transmission quantity.
Preferably, selecting a target virtual machine in a target server according to a first preset logic specifically includes:
acquiring the memory occupation amount of each virtual machine, and respectively counting the total occupation amount of each virtual machine on each specified resource item;
and respectively calculating the ratio of the total occupied amount of each virtual machine to the occupied amount of the memory, and selecting the virtual machine with the largest result value as a target virtual machine.
Preferably, selecting the destination server according to a second preset logic specifically includes:
acquiring the resource occupation amount of the target virtual machine on each specified resource item, and acquiring the available resource amount of each server in the cluster network;
and selecting the server with the smallest proportion value between the resource occupation amount and the available resource amount from the servers as the target server.
Preferably, the cluster network is a SDN type cluster network.
Preferably, the transmitting the target virtual machine to the destination server specifically includes:
and transmitting the target virtual machine to the target server in a multilink parallel transmission mode.
Preferably, the acquiring of the idle resource information of the target server in the cluster network specifically includes:
and acquiring the idle resource information according to a preset time interval.
Preferably, the free resource information further includes a CPU free resource of the target server and a memory free resource of the target server.
In addition, the present invention also provides a cluster network optimization apparatus, including:
the information acquisition module is used for acquiring the idle resource information of the target server in the cluster network; the idle resource information at least comprises idle bandwidths of all network links of the target server;
the threshold value judging module is used for judging whether a virtual machine runs in the target server or not when the value of any target resource item in the idle resource information is smaller than a preset threshold value corresponding to the target resource item, and if so, the selecting module is called;
the selection module is used for selecting a target virtual machine from the target server according to a first preset logic and selecting the target server according to a second preset logic;
and the transmission module is used for transmitting the target virtual machine to the destination server by taking the idle bandwidth as the constraint of the data transmission quantity.
In addition, the present invention also provides a cluster network optimization device, including:
a memory for storing a computer program;
a processor for implementing the steps of the cluster network optimization method as described above when executing the computer program.
Furthermore, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the cluster network optimization method as described above.
The method for optimizing the cluster network comprises the steps of firstly obtaining idle resource information of a target server in the cluster network, wherein the idle resource information at least comprises idle bandwidths of all network links of the target server, judging whether a virtual machine runs in the target server when the idle degree value of any resource in the idle resource information is smaller than a corresponding preset threshold value, if the virtual machine runs, selecting the target virtual machine from all the virtual machines according to a first preset logic, selecting a target server in the cluster network according to a second preset logic, and finally taking the idle bandwidth as a constraint condition for transmitting the target virtual machine to transmit the target virtual machine to the target server so as to finally realize optimization of the cluster network. Therefore, the method considers that the data volume of the virtual machine in the server is relatively large, and the problem of network congestion is easily caused in the process of migrating the virtual machine, so that the idle bandwidth of each network link in the target server is obtained in advance, and then after the target virtual machine and the target server are selected, the idle bandwidth is used as the restriction of transmitting the target virtual machine to the target server, so that the single data volume does not exceed the idle bandwidth of the network link when the target virtual machine is transmitted through a certain network link, the smooth work of the network link is ensured, the condition that the network congestion occurs in the cluster network in the process of migrating the virtual machine is avoided, and the overall availability and the service quality of the cluster network are ensured. In addition, the invention also provides a cluster network optimization device, equipment and a medium, and the beneficial effects are as above.
Drawings
In order to illustrate the embodiments of the present invention more clearly, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained by those skilled in the art without inventive effort.
Fig. 1 is a flowchart of a method for optimizing a cluster network according to an embodiment of the present invention;
fig. 2 is a structural diagram of a cluster network optimization apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without any creative work belong to the protection scope of the present invention.
The core of the invention is to provide a cluster network optimization method to avoid network congestion of the cluster network in the process of migrating the virtual machine of the server, thereby ensuring the availability and the service quality of the cluster network. The other core of the invention is to provide a cluster network optimization device, equipment and medium.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Example one
Fig. 1 is a flowchart of a method for optimizing a cluster network according to an embodiment of the present invention. Referring to fig. 1, the specific steps of the cluster network optimization method include:
step S10: and acquiring idle resource information of a target server in the cluster network.
The idle resource information at least comprises idle bandwidth of each network link of the target server.
It can be understood that, in this step, the free resource information is obtained for a certain target server in the cluster network, and the free resource information record refers to the information of the free degree of each resource in the target server. In addition, because the method focuses on avoiding cluster network congestion during data transmission, the idle resource information obtained in this step should at least include idle bandwidths of each network link of the target server, where the idle bandwidths represent data volumes that can be carried and transmitted by normal operation of the links under the current situation, and when the data volumes transmitted through the links exceed the idle bandwidths, the links may fail to operate due to congestion, and therefore the idle bandwidths of each network link reflect the transmission capabilities of the links.
Step S11: when the value of any target resource item in the idle resource information is smaller than the preset threshold corresponding to the target resource item, determining whether a virtual machine is running in the target server, if so, executing step S12.
Step S12: and selecting a target virtual machine in the target server according to the first preset logic, and selecting the target server according to the second preset logic.
It should be noted that each target resource item in the idle resource information has a corresponding preset threshold, where the preset threshold is used to define whether a value of each target resource item in the idle resource information is normal, and when a value of any one target resource item in the idle resource information is smaller than the corresponding preset threshold, it represents that the target resource item is already in a bottleneck state, and further determines that a target server to which the idle resource information belongs is in an overloaded state, and the overload of the target server may cause abnormal operation, which may affect interaction between the target server and other servers in the trunking network, and further reduce the overall operational reliability of the trunking network. The preset threshold value can be set in a fixed value mode according to the overall performance of the target server and the user requirements, preferably, the preset threshold value can also be an average value of the target resource items of the same type among the servers in the cluster network, and the accuracy of the preset threshold value can be relatively dynamically ensured by counting the average values of the target resource items of the same type among the servers in real time.
In addition, the first preset logic in step S12 is used to select a target virtual machine to be migrated from the target server, the second preset logic is used to select a target server to receive the target virtual machine from the cluster network, and the first preset logic and the second preset logic should be set according to the actual needs of the user, if the first preset logic is to select a virtual machine with the largest amount of resource occupied in each virtual machine of the target server as the target virtual machine, the second preset logic is to select a server with the largest amount of idle resources in the cluster network as the target server.
Step S13: and transmitting the target virtual machine to the destination server by taking the idle bandwidth as the constraint of the data transmission quantity.
It should be emphasized that, when migrating the target virtual machine, the idle bandwidth of the target server obtained in the previous step should be taken as the maximum value of the transmission data volume, that is, the idle bandwidth should be taken as the constraint of the data transmission volume, so as to avoid the occurrence of network congestion caused by the fact that the data transmission volume exceeds the idle bandwidth of the link, and ensure that the target virtual machine can be smoothly transmitted to the target server.
The method for optimizing the cluster network comprises the steps of firstly obtaining idle resource information of a target server in the cluster network, wherein the idle resource information at least comprises idle bandwidths of all network links of the target server, judging whether a virtual machine runs in the target server when the idle degree value of any resource in the idle resource information is smaller than a corresponding preset threshold value, if the virtual machine runs, selecting the target virtual machine from all the virtual machines according to a first preset logic, selecting a target server in the cluster network according to a second preset logic, and finally taking the idle bandwidth as a constraint condition for transmitting the target virtual machine to transmit the target virtual machine to the target server so as to finally realize optimization of the cluster network. Therefore, the method considers that the data volume of the virtual machine in the server is relatively large, and the problem of network congestion is easily caused in the process of migrating the virtual machine, so that the idle bandwidth of each network link in the target server is obtained in advance, and then after the target virtual machine and the target server are selected, the idle bandwidth is used as the restriction of transmitting the target virtual machine to the target server, so that the single data volume does not exceed the idle bandwidth of the network link when the target virtual machine is transmitted through a certain network link, the smooth work of the network link is ensured, the condition that the network congestion occurs in the cluster network in the process of migrating the virtual machine is avoided, and the overall availability and the service quality of the cluster network are ensured.
Example two
On the basis of the above examples, the present invention also provides a series of preferred embodiments as follows.
As a preferred embodiment, selecting a target virtual machine in a target server according to a first preset logic specifically includes:
acquiring the memory occupation amount of each virtual machine, and respectively counting the total occupation amount of each virtual machine on each specified resource item;
and respectively calculating the ratio of the total occupied amount of each virtual machine to the occupied amount of the memory, and selecting the virtual machine with the largest result value as a target virtual machine.
It should be noted that, in order to ensure normal operation of the target server, the target server needs to be selected to share the load of the target server after finding the bottleneck resource of the target server, because it is considered that when a certain resource or resources of the target server exceeds a preset threshold, the resources are the current bottleneck resource of the target server. Different from the traditional greedy algorithm that the target virtual machine occupying the most bottleneck resources is selected as the selection target of the dynamic optimization, the embodiment takes the overhead brought by the dynamic optimization between the servers into consideration when the target virtual machine is selected. Considering that the overhead is related to the size of the memory occupied by the virtual machines, the larger the memory is, the more the amount of data transmitted in the dynamic optimization and selection process is, and the more system resources are consumed, so in order to reduce the overload host load and simultaneously reduce the dynamic optimization overhead of the virtual machines and the physical host, the virtual machine with the highest load reduction degree should be selected as the target virtual machine after the transfer unit data amount is selected from each virtual machine.
In this embodiment, calculating the ratio of the total occupied amount of each virtual machine to the occupied amount of the memory is as follows: VS ═ Σ util (resource))/vMemory; wherein Σ util (resource) is the total occupied amount of the virtual machine, vMemory is the occupied amount of the memory of the virtual machine, and the larger the value of VS, the higher the load degree that can be reduced by transferring the unit data amount. Furthermore, the method and the system can relatively accurately position the target virtual machine to be transferred, and further relatively improve the overall effect and efficiency of reducing the load of the target server.
In addition, as a preferred embodiment, selecting a destination server according to a second preset logic specifically includes:
acquiring the resource occupation amount of the target virtual machine on each specified resource item, and acquiring the available resource amount of each server in the cluster network;
and selecting the server with the smallest proportion value between the resource occupation amount and the available resource amount from the servers as the target server.
In view of that, after the target virtual machine is migrated to the target server, the target virtual machine may also continue to occupy the relevant resources of the target server, so when selecting the target server, it is necessary to avoid bottleneck threats to the resources in the target server as much as possible on the basis of ensuring that the target virtual machine does not cause the target server to exceed the load threshold, and in this embodiment, a server with the smallest ratio value between the occupied amount of resources and the available amount of resources is selected from the servers as the target server.
Taking the case that the specified resource items are respectively CPU, memory and network bandwidth as an example, the formula for calculating the proportional value may specifically be:
Figure BDA0001764448320000071
wherein, PMrcpu, PMrmem and PMrnet respectively represent the residual CPU, memory and network bandwidth resources on the destination server; VMcpu, VMmem, VMnet respectively represent CPU, memory and network bandwidth resource required by target virtual machine operation, each residual resource of target serverThe dynamic optimization and selection conditions can be met only by the requirement of the virtual machine, and the smaller the hostcost value is, the more matching between the target virtual machine and the target server is. The method and the device relatively improve the accuracy of selecting the target server and further ensure the reliability of optimizing the whole cluster network.
In addition, as a preferred embodiment, the cluster network is specifically an SDN type cluster network.
In consideration of the fact that the SDN type network is characterized in that a control plane is separated from a data plane, the method can ensure that the acquisition of resource information such as network flow is more flexible on the basis of the SDN cluster network, and therefore the network optimization content of the method is achieved on the basis of the SDN type cluster network, and the overall optimization efficiency can be improved.
In addition, as a preferred embodiment, the transmitting the target virtual machine to the destination server specifically includes:
and transmitting the target virtual machine to the target server in a multilink parallel transmission mode.
In view of the fact that the idle bandwidth of each network link of the target server is recorded in the idle resource information, that is, the target server can transmit the target virtual machine to the target server through a plurality of network links, in this embodiment, the target virtual machine is transmitted to the target server in a multilink parallel transmission manner according to the idle bandwidth of each network link as a constraint of the data transmission amount corresponding to each link, so that the overall efficiency of migrating the target virtual machine to the target server can be relatively improved.
In addition, as a preferred embodiment, the acquiring of the idle resource information of the target server in the cluster network specifically includes:
and acquiring the idle resource information according to a preset time interval.
It should be noted that, the preset time interval in this embodiment may be determined according to the actual requirement of the user, for example, if the work content of the trunking network is relatively important, the preset time interval should be relatively short, so as to ensure the frequency of the optimization for the trunking network, and conversely, if the work content of the trunking network is generally important, the value of the preset time interval may be set to be relatively large, so as to avoid frequent generation of corresponding overhead due to the optimization for the trunking network. The method and the device can relatively improve the mobility of the cluster network optimization, and further improve the overall usability.
On the basis of the above embodiment, as a preferred embodiment, the free resource information further includes a CPU free resource of the target server and a memory free resource of the target server.
It can be understood that, considering that the CPU resource and the memory resource are resource types in which resource bottlenecks are likely to occur in the server, the idle resource information in the embodiment includes the CPU idle resource of the target server and the memory idle resource of the target server in addition to the idle bandwidths of the network links of the target server, and then the accuracy of determining whether the target server in the cluster network needs to be optimized is relatively higher by the idle resource information, so that it can be ensured that the cluster network optimization has a better overall effect.
EXAMPLE III
In the above, the embodiment of the cluster network optimization method is described in detail, and the present invention further provides a cluster network optimization apparatus corresponding to the method.
Fig. 2 is a structural diagram of a cluster network optimization apparatus according to an embodiment of the present invention. The cluster network optimization device provided by the embodiment of the invention comprises:
the information acquisition module 10 is configured to acquire idle resource information of a target server in a cluster network; the idle resource information at least comprises idle bandwidth of each network link of the target server.
And the threshold judgment module 11 is configured to, when the value of any target resource item in the idle resource information is smaller than a preset threshold corresponding to the target resource item, judge whether a virtual machine runs in the target server, and if so, invoke the selection module 12.
And the selection module 12 is configured to select a target virtual machine from the target servers according to a first preset logic, and select a target server according to a second preset logic.
And the transmission module 13 is configured to transmit the target virtual machine to the destination server with the idle bandwidth as a constraint on the data transmission amount.
The cluster network optimization device provided by the invention firstly obtains the idle resource information of a target server in a cluster network, and the idle resource information at least comprises the idle bandwidth of each network link of the target server, and further judges whether a virtual machine is operated in the target server when the idle degree value of any resource in the idle resource information is smaller than a corresponding preset threshold value, if the virtual machine is operated, the target virtual machine is selected from the virtual machines according to a first preset logic, the target server is selected in the cluster network according to a second preset logic, and finally the idle bandwidth is used as a constraint condition for transmitting the target virtual machine, and the target virtual machine is transmitted to the target server, so that the optimization of the cluster network is finally realized. Therefore, the device considers that the data volume of the virtual machine in the server is relatively large, and the problem of network congestion is easily caused in the process of migrating the virtual machine, so that the idle bandwidth of each network link in the target server is obtained in advance, and then after the target virtual machine and the target server are selected, the idle bandwidth is used as the restriction of transmitting the target virtual machine to the target server, so that the single data volume does not exceed the idle bandwidth of the network link when the target virtual machine is transmitted through a certain network link, the smooth work of the network link is ensured, the condition that the network congestion occurs in the cluster network in the process of migrating the virtual machine is further avoided, and the overall availability and the service quality of the cluster network are ensured.
Example four
The invention also provides a cluster network optimization device, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the cluster network optimization method as described above when executing the computer program.
The cluster network optimization equipment provided by the invention firstly obtains the idle resource information of a target server in a cluster network, and the idle resource information at least comprises the idle bandwidth of each network link of the target server, and further judges whether a virtual machine is operated in the target server when the idle degree value of any resource in the idle resource information is smaller than a corresponding preset threshold value, if the virtual machine is operated, the target virtual machine is selected from the virtual machines according to a first preset logic, the target server is selected in the cluster network according to a second preset logic, and finally the idle bandwidth is used as a constraint condition for transmitting the target virtual machine, and the target virtual machine is transmitted to the target server so as to finally realize the optimization of the cluster network. It can be seen that, in the device, in consideration of the problem that the data volume of the virtual machine is relatively large in the server and network congestion is easily caused in the process of migrating the virtual machine, the idle bandwidth of each network link in the target server is obtained in advance, and then after the target virtual machine and the target server are selected, the idle bandwidth is used as a restriction for transmitting the target virtual machine to the target server, so as to ensure that the single data volume does not exceed the idle bandwidth of the network link when the target virtual machine is transmitted through a certain network link, thereby ensuring the smooth work of the network link, further avoiding the occurrence of network congestion in the cluster network in the process of migrating the virtual machine, and ensuring the overall availability and service quality of the cluster network.
Furthermore, the present invention also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the cluster network optimization method as described above.
The computer readable storage medium provided by the invention firstly obtains idle resource information of a target server in a cluster network, and the idle resource information at least comprises idle bandwidth of each network link of the target server, and further when the idle degree value of any resource in the idle resource information is smaller than a corresponding preset threshold value, whether a virtual machine is operated in the target server is judged, if the virtual machine is operated, the target virtual machine is selected from the virtual machines according to a first preset logic, the target virtual machine is selected in the cluster network according to a second preset logic, and finally the idle bandwidth is used as a constraint condition for transmitting the target virtual machine, and the target virtual machine is transmitted to the target server, so as to finally realize optimization of the cluster network. Therefore, the computer-readable storage medium considers that in a server, the data volume of a virtual machine is relatively large, and network congestion is easily caused in the process of migrating the virtual machine, so that idle bandwidth of each network link in a target server is obtained in advance, and then after the target virtual machine and the target server are selected, the idle bandwidth is used as a restriction for transmitting the target virtual machine to the target server, so that when the target virtual machine is transmitted through a certain network link, the single data volume does not exceed the idle bandwidth of the network link, smooth work of the network link is ensured, the situation that network congestion occurs in a cluster network in the process of migrating the virtual machine is avoided, and the overall availability and the service quality of the cluster network are ensured.
The above detailed description describes a method, an apparatus, a device and a medium for optimizing a cluster network provided by the present invention. The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device, the equipment and the medium disclosed by the embodiment correspond to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (8)

1. A method for cluster network optimization, comprising:
acquiring idle resource information of a target server in a cluster network; wherein, the idle resource information at least includes idle bandwidth of each network link of the target server;
when the value of any target resource item in the idle resource information is smaller than a preset threshold corresponding to the target resource item, judging whether a virtual machine runs in the target server or not; the preset threshold value is the average value of the target resource items of the same type among all the servers in the cluster network;
if yes, selecting a target virtual machine in the target server according to a first preset logic, and selecting a target server according to a second preset logic;
transmitting the target virtual machine to the target server by taking the idle bandwidth as the constraint of data transmission quantity;
the selecting a target virtual machine in the target server according to a first preset logic specifically includes:
acquiring the memory occupation amount of each virtual machine, and respectively counting the sum of the occupation amount of each virtual machine on each specified resource item;
respectively calculating the proportion value of the total occupied amount of each virtual machine to the occupied amount of the memory, and selecting the virtual machine with the largest result value as the target virtual machine;
the selecting a destination server according to a second preset logic specifically includes:
acquiring the resource occupation amount of the target virtual machine on each specified resource item, and acquiring the available resource amount of each server in the cluster network;
and selecting the server with the smallest proportion value between the resource occupation amount and the available resource amount from the servers as the destination server.
2. Method according to claim 1, characterized in that said clustered network is in particular a clustered network of the SDN type.
3. The method according to claim 1, wherein the transmitting the target virtual machine to the destination server is specifically:
and transmitting the target virtual machine to the destination server in a multilink parallel transmission mode.
4. The method according to claim 1, wherein the acquiring of the idle resource information of the target server in the cluster network specifically includes:
and acquiring the idle resource information according to a preset time interval.
5. The method according to any of claims 1-4, wherein the free resource information further comprises CPU free resources of the target server and memory free resources of the target server.
6. A cluster network optimization apparatus, comprising:
the information acquisition module is used for acquiring the idle resource information of the target server in the cluster network; wherein, the idle resource information at least includes idle bandwidth of each network link of the target server;
the threshold value judging module is used for judging whether a virtual machine runs in the target server or not when the value of any target resource item in the idle resource information is smaller than a preset threshold value corresponding to the target resource item, and if so, the selecting module is called; the preset threshold value is the average value of the target resource items of the same type among all the servers in the cluster network;
the selection module is used for selecting a target virtual machine from the target server according to a first preset logic and selecting a target server according to a second preset logic;
the transmission module is used for transmitting the target virtual machine to the destination server by taking the idle bandwidth as the constraint of data transmission quantity;
wherein the selection module is specifically configured to:
acquiring the memory occupation amount of each virtual machine, and respectively counting the sum of the occupation amount of each virtual machine on each specified resource item;
respectively calculating the proportion value of the total occupied amount of each virtual machine to the occupied amount of the memory, and selecting the virtual machine with the largest result value as the target virtual machine;
acquiring the resource occupation amount of the target virtual machine on each specified resource item, and acquiring the available resource amount of each server in the cluster network;
and selecting the server with the smallest proportion value between the resource occupation amount and the available resource amount from the servers as the destination server.
7. A cluster network optimization device, comprising:
a memory for storing a computer program;
processor for implementing the steps of the cluster network optimization method according to any of claims 1 to 5 when executing said computer program.
8. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the cluster network optimization method according to any one of claims 1 to 5.
CN201810921913.5A 2018-08-14 2018-08-14 Cluster network optimization method, device, equipment and medium Active CN109039933B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810921913.5A CN109039933B (en) 2018-08-14 2018-08-14 Cluster network optimization method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810921913.5A CN109039933B (en) 2018-08-14 2018-08-14 Cluster network optimization method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN109039933A CN109039933A (en) 2018-12-18
CN109039933B true CN109039933B (en) 2022-07-08

Family

ID=64634038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810921913.5A Active CN109039933B (en) 2018-08-14 2018-08-14 Cluster network optimization method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN109039933B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110830525A (en) * 2018-08-07 2020-02-21 中兴通讯股份有限公司 Virtual machine resource sharing method and device, computer equipment and storage medium
CN111444008B (en) * 2018-12-29 2024-04-16 北京奇虎科技有限公司 Inter-cluster service migration method and device
CN110225033B (en) * 2019-06-11 2021-05-18 西安电子科技大学 Active migration system and method for heterogeneous controller cluster service based on abnormal perception
CN114363328B (en) * 2021-11-19 2024-02-20 三维通信股份有限公司 Task collaboration method and system for server cluster

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888501A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Virtual machine migration method and device
CN106528270A (en) * 2016-11-16 2017-03-22 航天信息股份有限公司 Automatic migration method and system of virtual machine based on OpenStack cloud platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060069761A1 (en) * 2004-09-14 2006-03-30 Dell Products L.P. System and method for load balancing virtual machines in a computer network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103888501A (en) * 2012-12-24 2014-06-25 华为技术有限公司 Virtual machine migration method and device
CN106528270A (en) * 2016-11-16 2017-03-22 航天信息股份有限公司 Automatic migration method and system of virtual machine based on OpenStack cloud platform

Also Published As

Publication number Publication date
CN109039933A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN109039933B (en) Cluster network optimization method, device, equipment and medium
CN109218355B (en) Load balancing engine, client, distributed computing system and load balancing method
US8725912B2 (en) Dynamic balancing of IO resources on NUMA platforms
US9229778B2 (en) Method and system for dynamic scaling in a cloud environment
US9276864B1 (en) Dynamic network traffic throttling
WO2018177012A1 (en) Method, apparatus and device for controlling bandwidth
CN112162865A (en) Server scheduling method and device and server
CN106133693B (en) Moving method, device and the equipment of virtual machine
CN110221920B (en) Deployment method, device, storage medium and system
CN109960575B (en) Computing capacity sharing method, system and related equipment
CN108809848A (en) Load-balancing method, device, electronic equipment and storage medium
CN112231098A (en) Task processing method, device, equipment and storage medium
KR20200080458A (en) Cloud multi-cluster apparatus
US10237148B2 (en) Providing a data set for tracking and diagnosing datacenter issues
KR101256918B1 (en) Method for enhancing scalability and availability of cloud services and the system thereby
CN111418187A (en) Scalable statistics and analysis mechanism in cloud networks
Abdullah et al. A reliable, TOPSIS-based multi-criteria, and hierarchical load balancing method for computational grid
CN115237595A (en) Data processing method, data processing device, distribution server, data processing system, and storage medium
CN114564313A (en) Load adjustment method and device, electronic equipment and storage medium
Zhou A trace-driven simulation study of dynamic load balancing
CN114567637A (en) Method and system for intelligently setting weight of load balancing back-end server
CN114675972A (en) Method and system for flexibly scheduling cloud network resources based on integral algorithm
JP2022166934A (en) Information processing device, overload control program, and overload control method
CN113377866A (en) Load balancing method and device for virtualized database proxy service
CN111831428A (en) Cloud data center resource utilization rate optimization method and system

Legal Events

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