CN109840135A - A kind of load-balancing method, device and electronic equipment - Google Patents

A kind of load-balancing method, device and electronic equipment Download PDF

Info

Publication number
CN109840135A
CN109840135A CN201910094168.6A CN201910094168A CN109840135A CN 109840135 A CN109840135 A CN 109840135A CN 201910094168 A CN201910094168 A CN 201910094168A CN 109840135 A CN109840135 A CN 109840135A
Authority
CN
China
Prior art keywords
processor
load
virtual machine
group
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.)
Granted
Application number
CN201910094168.6A
Other languages
Chinese (zh)
Other versions
CN109840135B (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 CN201910094168.6A priority Critical patent/CN109840135B/en
Publication of CN109840135A publication Critical patent/CN109840135A/en
Application granted granted Critical
Publication of CN109840135B publication Critical patent/CN109840135B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present invention provides a kind of load-balancing method, device and electronic equipment, when belonging to the load of first processor of first processor group higher than threshold value, traverses all second processors of second processor group;When exist with it is first processor same physical kernel, idle, or when with first processor same host, idle second processor, second processor is moved to first processor group;When there is no second processor with first processor same physical kernel, with first processor same host, idle, the third processor with first processor difference host is selected from first processor group, and target virtual machine of the configuration on first processor is moved into the third processor.Processor group has been carried out grouping management by the present invention, and the flexibility of load balancing is effectively increased by the adjustment of the dynamic of grouping, realizes the good result of load balancing.

Description

A kind of load-balancing method, device and electronic equipment
Technical field
The present invention relates to field of computer technology, more particularly to a kind of load-balancing method, device and electronic equipment.
Background technique
Virtualization is a kind of resource management techniques, is widely used in data center, and the resources such as calculating, network, storage are taken out As conversion, break the obstacle between different computational entities, make user more rationally, adequately using these resources.I/O is virtualized One core of virtualization technology, the technology make virtual machine can be with the I/O resource in shared data center.
However, inventors discovered through research that, there are still some problems for the method optimized for I/O virtualizing performance, In one example, virtual machine usually carries out load balancing with the mode of virtual machine (vm) migration when competing cpu resource, but frequently Virtual cpu migrate the overheads such as introduced caching pollution, context switching and can largely offset load balancing Brought benefit, in this way since the unicity of load balancing configuration leads to that the due effect of load balancing is not achieved.
Therefore, the flexibility of load balancing how is improved, and then improving load balancing effect is those skilled in the art The technical issues of member's urgent need to resolve.
Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide a kind of load-balancing methods, device And electronic equipment, for solving the problems, such as that load balancing flexibility is poor in the prior art, effect is poor.
In order to achieve the above objects and other related objects, according to the first aspect of the invention, the embodiment of the present invention provides one Kind load-balancing method, method includes the following steps:
When belonging to the load of first processor of first processor group higher than threshold value, traversal second processor group owns Second processor;
When presence and first processor same physical kernel, idle second processor, alternatively, being handled in the presence of with first When device same host, idle second processor, the second processor is moved to first processor group, so that configuration exists Virtual machine on first processor is able to use the processor resource of new first processor group;
When there is no with first processor same physical kernel, idle second processor, and there is no with first at When managing device same host, idle second processor, selected from first processor group and first processor difference host Target virtual machine of the configuration on first processor is moved to the third processor by third processor.
Optionally, all processors of the first processor group are configured as first time piece, the second processor All processors of group are configured as the second timeslice, and the first time piece is different from second timeslice;
First kind virtual machine is configured on all processors of the first processor group, the second processor group Second Type virtual machine is configured on all processors, the first kind virtual machine and the Second Type virtual machine have not Same type of service.
Optionally, the third processor with first processor difference host is selected from first processor group, comprising:
Third processor is arranged according to the sequence of load from small to large;
Successively calculate target virtual machine load and third processor load and, as reference load;
When highest load of the reference load lower than third processor, the corresponding third processor of the reference load is selected.
Optionally, the third processor with first processor difference host is selected from first processor group, and configuration is existed Target virtual machine on first processor moves to before the third processor, further includes:
From configuration in the virtual machine on first processor, select the maximum virtual machine of load as target virtual machine.
According to the second aspect of the invention, the embodiment of the present invention also provides a kind of load balancing apparatus, comprising:
Spider module, for traversing second when belonging to the load of first processor of first processor group higher than threshold value All second processors of processor group;
Grouping module, for when exist with first processor same physical kernel, idle second processor, alternatively, When in the presence of with first processor same host, idle second processor, the second processor is moved to the first processing Device group, so that virtual machine of the configuration on first processor is able to use the processor resource of new first processor group;
Transferring module, for when there is no with first processor same physical kernel, idle second processor, and not When in the presence of with first processor same host, idle second processor, selection and the first processing from first processor group Target virtual machine of the configuration on first processor is moved to the third processor by the third processor of device difference host.
It optionally, further include configuration module, when for configuring first for all processors of the first processor group Between piece, configure the second timeslice for all processors of the second processor group, and the first time piece and described the Two timeslices are different;First kind virtual machine is configured on all processors of the first processor group, at described second It manages and configures Second Type virtual machine, the first kind virtual machine and the Second Type virtual machine on all processors of device group With different types of service.
Optionally, the transferring module is also used to, and arranges third processor according to the sequence of load from small to large;
Successively calculate target virtual machine load and third processor load and, as reference load;
When highest load of the reference load lower than third processor, the corresponding third processor of the reference load is selected.
Optionally, the transferring module is also used to, and from configuration in the virtual machine on first processor, selection load is maximum Virtual machine as target virtual machine.
According to the third aspect of the invention we, the embodiment of the present invention also provides a kind of electronic equipment, and the electronic equipment includes Processor;And
The memory being connect with the processor communication;Wherein,
The memory is stored with the instruction that can be executed by the processor, and described instruction is executed by the processor, with Enable the processor:
When belonging to the load of first processor of first processor group higher than threshold value, traversal second processor group owns Second processor;
When presence and first processor same physical kernel, idle second processor, alternatively, being handled in the presence of with first When device same host, idle second processor, the second processor is moved to first processor group, so that configuration exists Virtual machine on first processor is able to use the processor resource of new first processor group;
When there is no with first processor same physical kernel, idle second processor, and there is no with first at When managing device same host, idle second processor, selected from first processor group and first processor difference host Target virtual machine of the configuration on first processor is moved to the third processor by third processor.
As described above, a kind of load-balancing method, device and electronic equipment provided in an embodiment of the present invention, have with following Beneficial effect: when belonging to the load of first processor of first processor group higher than threshold value, traversal second processor group owns Second processor;When existing and first processor same physical kernel, idle second processor, alternatively, in the presence of with first When processor same host, idle second processor, the second processor is moved to first processor group, so as to match Set the processor resource that the virtual machine on first processor is able to use new first processor group;When there is no at first Device same physical kernel, idle second processor is managed, and is not present and first processor same host, idle second When processor, the third processor with first processor difference host is selected from first processor group, will be configured at first Target virtual machine on reason device moves to the third processor.Processor group has been carried out grouping management by the present invention, and by The dynamic adjustment of grouping effectively increases the flexibility of load balancing, realizes the good result of load balancing.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention Example, and be used to explain the principle of the present invention together with specification.
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, for those of ordinary skill in the art Speech, without any creative labor, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of load-balancing method provided in an embodiment of the present invention;
Fig. 2 is a kind of flow diagram of physical processor selection method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of load balancing apparatus provided in an embodiment of the present invention;
Fig. 4 is the hardware structural diagram of the electronic equipment provided in an embodiment of the present invention for executing load-balancing method.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention Range.
It please refers to Fig.1 to Fig.4.It should be noted that diagram provided in the present embodiment only illustrates this in a schematic way The basic conception of invention, only shown in diagram then with related component in the present invention rather than package count when according to actual implementation Mesh, shape and size are drawn, when actual implementation kenel, quantity and the ratio of each component can arbitrarily change for one kind, and its Assembly layout kenel may also be increasingly complex.
It is a kind of flow diagram of load-balancing method provided in an embodiment of the present invention referring to Fig. 1, as shown in Figure 1, this Inventive embodiments show the process for executing load balancing:
Step S101: when belonging to the load of first processor of first processor group higher than threshold value, second processing is traversed All second processors of device group.
In invention is implemented, classify to virtual machine, and processing is grouped to physical processor, to improve load Balanced flexibility and effect.
In one exemplary embodiment, virtual machine is classified, and judges type of virtual machine in virtual machine creating, the virtual machine class Type can classify according to the difference for running business on virtual machine, specifically, virtual machine can be divided into I/O load and calculated Load two types.Wherein, I/O loadtype has compared with short time-delay and compared with the demand of scheduling frequency physical processor, needs Guarantee that physical processor can satisfy the requirement of the type virtual machine;Computational load type can processing with higher when It is long, to meet the needs of long-time numerical behavior, similarly guarantee that physical processor can satisfy wanting for the type virtual machine in this way It asks.
Moreover, in the specific implementation, when not can determine that type of virtual machine, which can also temporarily be marked and be Classification type includes the calling time delay and calling acquired to processor by the operating condition of monitoring virtual machine CPU for a period of time The parameters such as frequency determine that the virtual, specific implementation process are implemented in the present invention when parameter meets corresponding numberical range It is repeated no more in example.
Further, it is grouped for physical cpu, multiple physical processors in data center or server cluster is divided into Multiple groups, each processor group may include any number of physical processors.In one exemplary embodiment, according to virtual machine class Type can configure corresponding physical processor grouping, can configure first processor group and second processor group, first processor All physical processors of group can have short time piece, it is therefore an objective to and the scheduling delay for reducing I/O promotes the frequency of scheduling, from And meeting the process demand of I/O loadtype virtual machine, all physical processors of second processor group can be set for a long time Piece guarantees higher handling duration.
In this way, the virtual machine of I/O loadtype can be only fitted on the physical processor of first processor group, computational load The virtual machine of type can be only fitted in second processor group, realize different physical processor groups to of different type virtual machine With configuration.
Based on foregoing description, the embodiment of the present invention has higher load with the first processor in first processor group, needs It executes and is described in detail for load balancing, wherein first processor group can have multiple first processors, at second Reason device group can have multiple second processors.When belonging to the load of first processor of first processor group higher than threshold value, Traverse all second processors of second processor group.
Step S102: when presence and first processor same physical kernel, idle second processor, alternatively, in the presence of When with first processor same host, idle second processor, the second processor is moved to first processor group, So that virtual machine of the configuration on first processor is able to use the processor resource of new first processor group.
All second processors in second processor group are traversed, can first be judged whether there is identical as first processor Physics kernel or with first processor configuration in the second processor of same host, and the load of the second processor is low It in a threshold value, is in idle condition, then second processor group is adjusted, realization is grouped again.Specifically, will meet above-mentioned The second processor of condition is deleted from second processor group, and is added in first processor group, so that the first processing Virtual machine on device is able to use the physical processor resource of new first processor group.
Step S103: when there is no with first processor same physical kernel, idle second processor, and be not present When with first processor same host, idle second processor, selected with first processor not from first processor group With the third processor of host, target virtual machine of the configuration on first processor is moved into the third processor.
When there is no with first processor same physical kernel, idle second processor, and be not present and the first processing When the identical host of device, idle second processor, characterization current hosts processor resource is not able to satisfy virtual machine demand, then It needs to carry out virtual machine (vm) migration.
It is a kind of physical processor selection provided in an embodiment of the present invention referring to fig. 2 when needing to carry out virtual machine (vm) migration The flow diagram of method, as shown in Fig. 2, this method comprises:
Step S1031: third processor is arranged according to the sequence of load from small to large.
It can be to the physical processor of other hosts of host where being different from first processor, according to present load from small It is ranked up to big sequence.It in one exemplary embodiment, being averaged by the set time of Statistical Physics processor Thread description load can determine that the present load of third processor A is 1.2, and the present load of third processor B is 2.5, the The present load of three processor C is 4.1.
Step S1032: successively calculate target virtual machine load and third processor load and, as with reference to bear It carries.
Virtual machine to be migrated is 6 as target virtual machine, the load of the target virtual machine at present, then is successively calculated Each reference load.The reference load of target virtual machine and third processor A are 7.2, and target virtual machine is with third processor B's Reference load is 8.5, and the reference load of target virtual machine and third processor C are 10.1.
Step S1033: when highest load of the reference load lower than third processor, the reference load corresponding the is selected Three processors.
When the load of the highest of third processor is 10, i.e., third processor highest supports 10 lines within the set time Whether journey then reaches the processor performance limit when virtual machine is transferred to the third processor by reference to load judgment.It is based on Above-described embodiment, it can be seen that the reference load of target virtual machine and third processor A are 7.2, at target virtual machine and third The reference load of reason device B is below highest load for 8.5, then can choose any in third processor A and third processor B One, it may be preferable that can choose reference load and the maximum third processor of highest load difference, i.e. third processor A.
Moreover, the embodiment of the present invention has also advanced optimized virtual machine selection mode when carrying out virtual machine (vm) migration.Due to Multiple virtual machines may be configured on first processor simultaneously, can be from configuration in the virtual machine on first processor, selection is negative Maximum virtual machine is carried as target virtual machine, which is moved to the physical processor of other hosts.
By the above-mentioned means, further target virtual machine can be moved on the third processor chosen, thus Realize load balancing.
By the description of above-described embodiment as it can be seen that a kind of load-balancing method provided in an embodiment of the present invention, when belonging to first When the load of the first processor of processor group is higher than threshold value, all second processors of second processor group are traversed;Work as presence With first processor same physical kernel, idle second processor, alternatively, in the presence of with first processor same host, When the second processor of free time, the second processor is moved to first processor group, so that configuration is on first processor Virtual machine be able to use the processor resource of new first processor group;When be not present and first processor same physical kernel , idle second processor, and when there is no with first processor same host, idle second processor, from first The third processor with first processor difference host is selected in processor group, by destination virtual of the configuration on first processor Machine moves to the third processor.Processor group has been carried out grouping management by the present invention, and is had by the adjustment of the dynamic of grouping Effect improves the flexibility of load balancing, realizes the good result of load balancing.
By the description of above embodiment of the method, it is apparent to those skilled in the art that the present invention can Realize by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases the former It is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially makes tribute to the prior art in other words The part offered can be embodied in the form of software products, which is stored in a storage medium, packet Some instructions are included to use so that a computer equipment (can be personal computer, server or the network equipment etc.) executes All or part of the steps of the method according to each embodiment of the present invention.And storage medium above-mentioned includes: read-only memory (ROM), the various media that can store program code such as random access memory (RAM), magnetic or disk.
Corresponding with load-balancing method embodiment provided by the invention, the present invention also provides a kind of load balancing dresses It sets.
It is a kind of structural schematic diagram of load balancing apparatus provided in an embodiment of the present invention referring to Fig. 3, as shown in figure 3, should Load balancing apparatus includes:
Spider module 11, for when belonging to the load of first processor of first processor group higher than threshold value, traversal the All second processors of two processor groups;
Grouping module 12, for when exist with first processor same physical kernel, idle second processor, or The second processor is moved at first by person when there is with first processor same host, idle second processor Device group is managed, so that virtual machine of the configuration on first processor is able to use the processor resource of new first processor group;
Transferring module 13, for when there is no with first processor same physical kernel, idle second processor, and When there is no with first processor same host, idle second processor, from selection and first in first processor group Target virtual machine of the configuration on first processor is moved to the third and handled by the third processor for managing device difference host Device.
In one exemplary embodiment, which can further include configuration module, the configuration module All processors for the first processor group are configured to first time piece, by all processing of the second processor group Device is configured to the second timeslice, and the first time piece is different from second timeslice;In the first processor group First kind virtual machine is configured on all processors, and it is empty that Second Type is configured on all processors of the second processor group Quasi- machine, the first kind virtual machine and the Second Type virtual machine have different types of service.
In order to realize effective progress of virtual machine (vm) migration, which be can be also used for according to load from small to large Sequence arrange third processor;
Successively calculate target virtual machine load and third processor load and, as reference load;
When highest load of the reference load lower than third processor, the corresponding third processor of the reference load is selected.
In order to determine target virtual machine, so that virtual machine (vm) migration efficiency is improved, in embodiments of the present invention, the transferring module 13 can be also used for, and from configuration in the virtual machine on first processor, select the maximum virtual machine of load as destination virtual Machine.
The embodiment of the invention provides a kind of nonvolatile computer storage media, the computer storage medium is stored with The load-balancing method in above-mentioned any means embodiment can be performed in computer executable instructions, the computer executable instructions.
Fig. 4 is the hardware structural diagram of the electronic equipment provided in an embodiment of the present invention for executing load-balancing method, such as Shown in Fig. 4, which includes:
One or more processors 410 and memory 420, in Fig. 4 by taking a processor 410 as an example.
The equipment for executing load-balancing method can also include: input unit 430 and output device 440.
Processor 410, memory 420, input unit 430 and output device 440 can pass through bus or other modes It connects, in Fig. 4 for being connected by bus.
Memory 420 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software journey Sequence, non-volatile computer executable program and module, such as the corresponding program of load-balancing method in the embodiment of the present invention Instruction/module (for example, attached spider module shown in Fig. 3 11, grouping module 12 and transferring module 13).Processor 410 passes through fortune Non-volatile software program, instruction and the module that row is stored in memory 420, are answered thereby executing the various functions of server With and data processing, i.e., realization above method embodiment load-balancing method.
Memory 420 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;Storage data area can be stored to be created according to using for load balancing apparatus Data etc..In addition, memory 420 may include high-speed random access memory, it can also include nonvolatile memory, example Such as at least one disk memory, flush memory device or other non-volatile solid state memory parts.In some embodiments, it deposits Optional reservoir 420 includes the memory remotely located relative to processor 410, these remote memories can pass through network connection To load balancing apparatus.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication And combinations thereof.
Input unit 430 can receive the number or character information of input, and generates and set with the user of load balancing apparatus It sets and the related key signals of function control inputs.Output device 440 may include that display screen etc. shows equipment.
One or more of modules are stored in the memory 420, when by one or more of processors When 410 execution, the load-balancing method in above-mentioned any means embodiment is executed.
Method provided by the embodiment of the present invention can be performed in the said goods, has the corresponding functional module of execution method and has Beneficial effect.The not technical detail of detailed description in the present embodiment, reference can be made to method provided by the embodiment of the present invention.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic devices with data interaction function.
The apparatus embodiments described above are merely exemplary, wherein described, unit can as illustrated by the separation member It is physically separated with being or may not be, component shown as a unit may or may not be physics list Member, it can it is in one place, or may be distributed over multiple network units.It can be selected according to the actual needs In some or all of the modules achieve the purpose of the solution of this embodiment
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device or For system embodiment, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to method The part of embodiment illustrates.Apparatus and system embodiment described above is only schematical, wherein the conduct The unit of separate part description may or may not be physically separated, component shown as a unit can be or Person may not be physical unit, it can and it is in one place, or may be distributed over multiple network units.It can root According to actual need that some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.Ordinary skill Personnel can understand and implement without creative efforts.
It should be noted that, in this document, the relational terms of such as " first " and " second " or the like are used merely to one A entity or operation with another entity or operate distinguish, without necessarily requiring or implying these entities or operation it Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to Cover non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or setting Standby intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in the process, method, article or apparatus that includes the element.
The above is only a specific embodiment of the invention, is made skilled artisans appreciate that or realizing this hair It is bright.Various modifications to these embodiments will be apparent to one skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of load-balancing method, which comprises the following steps:
When belonging to the load of first processor of first processor group higher than threshold value, all the second of traversal second processor group Processor;
When exist and first processor same physical kernel, idle second processor, alternatively, in the presence of with first processor phase When with host, idle second processor, the second processor is moved to first processor group, so that configuration is first Virtual machine on processor is able to use the processor resource of new first processor group;
When there is no with first processor same physical kernel, idle second processor, and be not present and first processor When same host, idle second processor, the third with first processor difference host is selected from first processor group Target virtual machine of the configuration on first processor is moved to the third processor by processor.
2. load-balancing method according to claim 1, which is characterized in that all processors of the first processor group It is configured as first time piece, all processors of the second processor group are configured as the second timeslice, and described first Timeslice is different from second timeslice;
First kind virtual machine is configured on all processors of the first processor group, the second processor group owns Second Type virtual machine is configured on processor, the first kind virtual machine and the Second Type virtual machine have different Type of service.
3. load-balancing method according to claim 1, which is characterized in that from selection and first in first processor group Manage the third processor of device difference host, comprising:
Third processor is arranged according to the sequence of load from small to large;
Successively calculate target virtual machine load and third processor load and, as reference load;
When highest load of the reference load lower than third processor, the corresponding third processor of the reference load is selected.
4. load-balancing method according to claim 1, which is characterized in that from selection and first in first processor group Target virtual machine of the configuration on first processor is moved to the third processor by the third processor for managing device difference host Before, further includes:
From configuration in the virtual machine on first processor, select the maximum virtual machine of load as target virtual machine.
5. a kind of load balancing apparatus characterized by comprising
Spider module, for traversing second processing when belonging to the load of first processor of first processor group higher than threshold value All second processors of device group;
Grouping module, for when exist with first processor same physical kernel, idle second processor, alternatively, in the presence of When with first processor same host, idle second processor, the second processor is moved to first processor group, So that virtual machine of the configuration on first processor is able to use the processor resource of new first processor group;
Transferring module, for when there is no with first processor same physical kernel, idle second processor, and be not present When with first processor same host, idle second processor, selected with first processor not from first processor group With the third processor of host, target virtual machine of the configuration on first processor is moved into the third processor.
6. load balancing apparatus according to claim 5, which is characterized in that further include configuration module, for by described the All processors of one processor group are configured to first time piece, configure for all processors of the second processor group Two timeslices, and the first time piece is different from second timeslice;In all processors of the first processor group Upper configuration first kind virtual machine configures Second Type virtual machine on all processors of the second processor group, described First kind virtual machine and the Second Type virtual machine have different types of service.
7. load balancing apparatus according to claim 5, which is characterized in that the transferring module is also used to, according to load Sequence from small to large arranges third processor;
Successively calculate target virtual machine load and third processor load and, as reference load;
When highest load of the reference load lower than third processor, the corresponding third processor of the reference load is selected.
8. load balancing apparatus according to claim 5, which is characterized in that the transferring module is also used to, and is existed from configuration In virtual machine on first processor, select the maximum virtual machine of load as target virtual machine.
9. a kind of electronic equipment, which is characterized in that the electronic equipment includes processor;And
The memory being connect with the processor communication;Wherein,
The memory is stored with the instruction that can be executed by the processor, and described instruction is executed by the processor, so that institute State processor can:
When belonging to the load of first processor of first processor group higher than threshold value, all the second of traversal second processor group Processor;
When exist and first processor same physical kernel, idle second processor, alternatively, in the presence of with first processor phase When with host, idle second processor, the second processor is moved to first processor group, so that configuration is first Virtual machine on processor is able to use the processor resource of new first processor group;
When there is no with first processor same physical kernel, idle second processor, and be not present and first processor When same host, idle second processor, the third with first processor difference host is selected from first processor group Target virtual machine of the configuration on first processor is moved to the third processor by processor.
10. a kind of electronic equipment, which is characterized in that including the load balancing apparatus as described in claim 5 to 8 any one.
CN201910094168.6A 2019-01-30 2019-01-30 Load balancing method and device and electronic equipment Active CN109840135B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910094168.6A CN109840135B (en) 2019-01-30 2019-01-30 Load balancing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910094168.6A CN109840135B (en) 2019-01-30 2019-01-30 Load balancing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN109840135A true CN109840135A (en) 2019-06-04
CN109840135B CN109840135B (en) 2022-02-18

Family

ID=66884270

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910094168.6A Active CN109840135B (en) 2019-01-30 2019-01-30 Load balancing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN109840135B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427673A (en) * 2020-03-16 2020-07-17 杭州迪普科技股份有限公司 Load balancing method, device and equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799772A (en) * 2010-02-26 2010-08-11 上海华为技术有限公司 Kernel dispatching method, kernel backup method and multi-core processor
CN102394903A (en) * 2011-07-14 2012-03-28 上海红神信息技术有限公司 Active reconstruction calculating system constructing system
CN102402462A (en) * 2010-09-30 2012-04-04 微软公司 Techniques for load balancing GPU enabled virtual machines
US20120102189A1 (en) * 2010-10-25 2012-04-26 Stephany Burge Dynamic heterogeneous computer network management tool
CN103377089A (en) * 2012-04-16 2013-10-30 国际商业机器公司 Programmatic load-based management method and system of processor population
CN103778017A (en) * 2012-10-19 2014-05-07 国际商业机器公司 Affinity of virtual processor dispatching
US20140173623A1 (en) * 2012-12-17 2014-06-19 Mediatek Inc. Method for controlling task migration of task in heterogeneous multi-core system based on dynamic migration threshold and related computer readable medium
CN104503838A (en) * 2014-11-23 2015-04-08 华中科技大学 Method for scheduling virtual CPU (Central Processing Unit)
CN104850461A (en) * 2015-05-12 2015-08-19 华中科技大学 NUMA-oriented virtual cpu (central processing unit) scheduling and optimizing method
CN107918557A (en) * 2016-10-05 2018-04-17 联发科技股份有限公司 A kind of apparatus and method and multiple nucleus system for running multiple nucleus system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799772A (en) * 2010-02-26 2010-08-11 上海华为技术有限公司 Kernel dispatching method, kernel backup method and multi-core processor
CN102402462A (en) * 2010-09-30 2012-04-04 微软公司 Techniques for load balancing GPU enabled virtual machines
US20120102189A1 (en) * 2010-10-25 2012-04-26 Stephany Burge Dynamic heterogeneous computer network management tool
CN102394903A (en) * 2011-07-14 2012-03-28 上海红神信息技术有限公司 Active reconstruction calculating system constructing system
CN103377089A (en) * 2012-04-16 2013-10-30 国际商业机器公司 Programmatic load-based management method and system of processor population
CN103778017A (en) * 2012-10-19 2014-05-07 国际商业机器公司 Affinity of virtual processor dispatching
US20140173623A1 (en) * 2012-12-17 2014-06-19 Mediatek Inc. Method for controlling task migration of task in heterogeneous multi-core system based on dynamic migration threshold and related computer readable medium
CN104503838A (en) * 2014-11-23 2015-04-08 华中科技大学 Method for scheduling virtual CPU (Central Processing Unit)
CN104850461A (en) * 2015-05-12 2015-08-19 华中科技大学 NUMA-oriented virtual cpu (central processing unit) scheduling and optimizing method
CN107918557A (en) * 2016-10-05 2018-04-17 联发科技股份有限公司 A kind of apparatus and method and multiple nucleus system for running multiple nucleus system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
TOQEER ALI SYED,SHAHRULNIZA MUSA,ABDUR RAHMAN,SALMAN JAN: "Towards Secure Instance Migration in the Cloud", 《IEEE》 *
马汝辉: "基于多核的虚拟化技术研究", 《万方》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111427673A (en) * 2020-03-16 2020-07-17 杭州迪普科技股份有限公司 Load balancing method, device and equipment
CN111427673B (en) * 2020-03-16 2023-04-07 杭州迪普科技股份有限公司 Load balancing method, device and equipment

Also Published As

Publication number Publication date
CN109840135B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
US11204793B2 (en) Determining an optimal computing environment for running an image
Zheng et al. An approach for cloud resource scheduling based on Parallel Genetic Algorithm
CN105103506B (en) For the method and system for the non-homogeneous bandwidth request allocation bandwidth in system for cloud computing
US10382267B2 (en) Managing servers with quality of service assurances
US10506024B2 (en) System and method for equitable processing of asynchronous messages in a multi-tenant platform
CN106506670B (en) A kind of cloud platform virtual resource high speed dispatching method and system
CN103885831B (en) The system of selection of virtual machine host machine and device
US9880885B2 (en) Method and system to rebalance constrained services in a cloud using a genetic algorithm
US20160134557A1 (en) Automatic Scaling of at Least One User Application to External Clouds
US10033659B2 (en) Reputation-based mediation of virtual control planes
US9483503B2 (en) Placing a database
US9882773B2 (en) Virtual resource provider with virtual control planes
CN106233276A (en) The coordination access control of network-accessible block storage device
CN107295090A (en) A kind of method and apparatus of scheduling of resource
CN108549583A (en) Big data processing method, device, server and readable storage medium storing program for executing
CN109783472A (en) Moving method, device, computer equipment and the storage medium of table data
US9553774B2 (en) Cost tracking for virtual control planes
Fan et al. Agent-based service migration framework in hybrid cloud
US20140201371A1 (en) Balancing the allocation of virtual machines in cloud systems
CN109840139A (en) Method, apparatus, electronic equipment and the storage medium of resource management
CN114911598A (en) Task scheduling method, device, equipment and storage medium
CN109840135A (en) A kind of load-balancing method, device and electronic equipment
CN109697105A (en) A kind of container cloud environment physical machine selection method and its system, virtual resource configuration method and moving method
CN105653347A (en) Server, resource management method and virtual machine manager
Hu et al. Research of scheduling strategy on OpenStack

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