CN106874116A - A kind of server selection method and device for placing newly-built virtual machine - Google Patents

A kind of server selection method and device for placing newly-built virtual machine Download PDF

Info

Publication number
CN106874116A
CN106874116A CN201710078210.6A CN201710078210A CN106874116A CN 106874116 A CN106874116 A CN 106874116A CN 201710078210 A CN201710078210 A CN 201710078210A CN 106874116 A CN106874116 A CN 106874116A
Authority
CN
China
Prior art keywords
server
vector
resource
resource requirement
available resources
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710078210.6A
Other languages
Chinese (zh)
Inventor
孙佳
杨岳川
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710078210.6A priority Critical patent/CN106874116A/en
Publication of CN106874116A publication Critical patent/CN106874116A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5015Service provider selection

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a kind of server selection method for placing newly-built virtual machine, including:Obtain the available resources and resource needed for newly-built virtual machine of physical node in cluster, the resource reservation threshold value of physical node is set, screening meets resources of virtual machine demand and is pre-assigned to after newly-built resources of virtual machine the physical node composition set that meets resource reservation threshold value from cluster, calculate the weighted value of resource needed for newly-built virtual machine, the preference value that each physical node places the newly-built virtual machine is calculated according to weighted value, the maximum newly-built virtual machine of conduct of selection preference value places node, so as to the operation loading condition of each physical node can be being taken into full account, on the premise of meeting resource reservation threshold value, selection can most meet the physical node of virtual machine demand as placing newly-built virtual machine.The invention also discloses a kind of server selection device for placing newly-built virtual machine, above-mentioned technique effect can be equally realized.

Description

A kind of server selection method and device for placing newly-built virtual machine
Technical field
The present invention relates to virtualize calculating field, more specifically to a kind of server choosing for placing newly-built virtual machine Selection method and device.
Background technology
In recent years, under business and driving of the scientific application to capability requirement, Intel Virtualization Technology is by large-scale application To industry-by-industry.However, virtualization is while be evolving, the overall performance of server cluster and the resource utilization of node Problem is also more and more noticeable.Under virtualized environment during newly-built virtual machine, due to physical node in user's selection cluster The otherness of uncertain and physical node causes the load imbalance of cluster, causes the overload resource of a part of node inadequate With, and other nodes then underload be in idle condition.
Therefore, how to select server to place virtual machine, realize the load balancing of server cluster, improve the utilization of resources Rate and systematic function, are the problems of those skilled in the art's needs solution.
The content of the invention
It is an object of the invention to provide a kind of server selection method and device for placing newly-built virtual machine, with by choosing Select suitable server to place virtual machine, realize the load balancing of server cluster, improve resource utilization and system Performance.
To achieve the above object, the embodiment of the invention provides following technical scheme:
A kind of server selection method for placing newly-built virtual machine, including:
Obtain the resource requirement vector of newly-built virtual machine;
The available resources vector set of server cluster is obtained, the available resources vector set includes the server The available resources of each server in cluster;
Using available resources vector set described in the resource requirement vector sum, determine to meet money in the server cluster The first server set of source demand;
The available resources vector of each server in the first server set is entered using resource requirement vector Row predistribution, filters out the available resources vector in the first server set after the predistribution of each server not less than reserved The second server set of threshold vector;
Available resources according to each server in the second server set are vectorial, the resource requirement vector sum institute The weighted value of every resource of resource requirement vector is stated, the preference value of each server in the second server set is calculated, Using the maximum server of preference value as the server for placing newly-built virtual machine.
Wherein, it is described using available resources vector set described in the resource requirement vector sum, determine the server set The first server set of resource requirement is met in group, including:
The server for meeting the first screening conditions is filtered out from available resources vector set, as the described first clothes Business device set;
First screening conditions are:Each of the available resources vector of each server in first server set can With resource, each demand resource corresponding with resource requirement vector is all higher than.
Wherein, using resource requirement vector to the available resources of each server in the first server set to Amount is pre-allocated, and is filtered out the available resources vector in the first server set after the predistribution of each server and is not less than The second server set of reserved threshold vector, including:
Resource requirement vector described in the available resources vector sum of each server in the first server set, Calculate the surplus resources vector of each server in the first server set;
By every surplus resources of the surplus resources of the server in first server vector, not less than with it is predetermined The server of the corresponding every reserved threshold value of threshold vector is added to the second server set.
Wherein, the available resources vector filtered out in the first server set after the predistribution of each server is not After less than the second server set of reserved threshold vector, also include:
Judge whether the second server set is empty;
If so, then sending the prompt message for placing virtual machine failure;
If it is not, then continue executing with it is described according in the second server set each server available resources vector, Described in the resource requirement vector sum the step of weighted value of every resource of resource requirement vector.
Wherein, available resources according to each server in the second server set are vectorial, the resource requirement to The weighted value of every resource of amount and resource requirement vector, each server is inclined in the calculating second server set Good value, including:
According to each resource requirement in the resource requirement total value of resource requirement vector, with resource requirement vector Requirements, calculate the weighted value of each resource;
Using each server in the second server set available resources vector sum described in resource requirement vector, meter Calculate the surplus resources vector of each server in the second server set;
Using the residual vector resource and the weighted value of each resource of each server in the second server set, meter Calculate the preference value of each server in the second server set.
A kind of server selection device for placing newly-built virtual machine, including:
First acquisition module, the resource requirement vector for obtaining newly-built virtual machine;
Second acquisition module, the available resources vector set for obtaining server cluster, the available resources vector set Conjunction includes the available resources of each server in the server cluster;
Determining module, for using available resources vector set described in the resource requirement vector sum, determining the service The first server set of resource requirement is met in device cluster;
Screening module, for using the resource requirement vector in the first server set each server can Pre-allocated with resource vector, filter out available resources in the first server set after the predistribution of each server to Second server set of the amount not less than reserved threshold vector;
Preference value computing module, for according in the second server set each server available resources vector, The weighted value of every resource of resource requirement vector described in the resource requirement vector sum, in the calculating second server set The preference value of each server;
Server determining module, for using the maximum server of preference value as the server for placing newly-built virtual machine.
Wherein, the determining module filters out the service for meeting the first screening conditions from available resources vector set Device, as the first server set;First screening conditions are:Each server in first server set can With each available resources of resource vector, each demand resource corresponding with resource requirement vector is all higher than.
Wherein, the screening module includes:
First surplus resources vector calculation unit, for each server in the first server set can With resource vector and resource requirement vector, calculate the surplus resources of each server in the first server set to Amount;
Second server set determining unit, for by the surplus resources of the server in first server vector Every surplus resources, the server of every reserved threshold value corresponding not less than with predetermined threshold vector takes added to described second Business device set.
Wherein, also include:
Judge module, for judging whether the second server set is empty;If so, then triggering reminding module;If it is not, Then trigger the preference value computing module;
The reminding module, for being not space-time in the second server set, sends and places carrying for virtual machine failure Show information.
Wherein, the preference value computing module includes:
Weighted value computing unit, for the resource requirement total value according to resource requirement vector, with the resource requirement The requirements of each resource requirement in vector, calculate the weighted value of each resource;
Second surplus resources vector calculation unit, for using in the second server set each server it is available Resource vector and resource requirement vector, calculate the surplus resources vector of each server in the second server set;
Preference value computing unit, for the residual vector resource using each server in the second server set and The weighted value of each resource, calculates the preference value of each server in the second server set.
By above scheme, a kind of server selecting party for placing newly-built virtual machine provided in an embodiment of the present invention Method, including:Obtain the resource requirement vector of newly-built virtual machine;Obtain server cluster available resources vector set, it is described can Include the available resources of each server in the server cluster with resource vector set;Using resource requirement vector Gather with available resources vector, determine to meet the first server set of resource requirement in the server cluster;Utilize The resource requirement vector is pre-allocated to the available resources vector of each server in the first server set, is screened The of the available resources vector gone out after the predistribution of each server in the first server set not less than reserved threshold vector Two server sets;Available resources according to each server in the second server set are vectorial, the resource requirement to The weighted value of every resource of amount and resource requirement vector, each server is inclined in the calculating second server set Good value, using the maximum server of preference value as the server for placing newly-built virtual machine.
It can be seen that, in this programme, by obtaining the available resources and resource needed for newly-built virtual machine of physical node in cluster, The resource reservation threshold value of physical node is set, by the setting of resource reservation threshold value, the performance of node is fully ensured, can filled Point consider the operation loading condition of each physical node, and on the premise of meeting resource reservation threshold value, can select can most meet The physical node of virtual machine demand is used as placing newly-built virtual machine;The invention also discloses a kind of clothes for placing newly-built virtual machine Business device selection device, can equally realize above-mentioned technique effect.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of server selection method schematic flow sheet for placing newly-built virtual machine disclosed in the embodiment of the present invention;
Fig. 2 is that server cluster disclosed in the embodiment of the present invention places newly-built virtual machine schematic diagram;
Fig. 3 is a kind of server selection device structural representation for placing newly-built virtual machine disclosed in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of server selection method and device for placing newly-built virtual machine, with by selection Suitable server places virtual machine, realizes the load balancing of server cluster, improves resource utilization and systematicness Energy.
Referring to Fig. 1, a kind of server selection method for placing newly-built virtual machine provided in an embodiment of the present invention, including:
S101, the resource requirement vector for obtaining newly-built virtual machine;
Specifically, the every resource required when being newly-built virtual machine of the resource requirement vector in the present embodiment, in this reality Apply and can be expressed as in example:VM<cpu,mem,bandwidth>, represent each available cpu resource of physical node in cluster, Free memory resource and available bandwidth resources.
S102, the available resources vector set for obtaining server cluster, the available resources vector set includes described The available resources of each server in server cluster;
Specifically, the available resources vector representation of each node in the present embodiment is PM-i<cpu,mem,bandwidth >, wherein i is physical node numbering.All physical nodes available resources vector composition one set, as available resources to Amount:D0=(PM-0, PM-1 ..., PM-n), n are physical node number in cluster.
S103, using available resources vector set described in the resource requirement vector sum, in determining the server cluster Meet the first server set of resource requirement;
Wherein, it is described using available resources vector set described in the resource requirement vector sum, determine the server set The first server set of resource requirement is met in group, including:
The server for meeting the first screening conditions is filtered out from available resources vector set, as the described first clothes Business device set;
First screening conditions are:Each of the available resources vector of each server in first server set can With resource, each demand resource corresponding with resource requirement vector is all higher than.
Specifically, in the present embodiment, need to be selected from available resources vector set D0 and all meet money needed for virtual machine The physical node set of source demand, as first server set: VM≤PM-K), wherein VM≤ PM-K represents that the available cpu of physical node PM-K, internal memory, bandwidth resources can meet the demand of virtual machine VM, i.e. VMcpu≤ PM-Kcpu、VMmem≤PM-Kmem、VMbandwidth≤PM-Kbandwidth。
S104, using resource requirement vector to the available resources of each server in the first server set to Amount is pre-allocated, and is filtered out the available resources vector in the first server set after the predistribution of each server and is not less than The second server set of reserved threshold vector;
Wherein, using resource requirement vector to the available resources of each server in the first server set to Amount is pre-allocated, and is filtered out the available resources vector in the first server set after the predistribution of each server and is not less than The second server set of reserved threshold vector, including:
Resource requirement vector described in the available resources vector sum of each server in the first server set, Calculate the surplus resources vector of each server in the first server set;
By every surplus resources of the surplus resources of the server in first server vector, not less than with it is predetermined The server of the corresponding every reserved threshold value of threshold vector is added to the second server set.
Specifically, for the node in first server set D1, resource needed for virtual machine is pre-allocated from physical node, The resource reservation threshold value H whether now physical node surplus resources meet user's setting is calculated again.Arbitrary physics in correspondence D1 Node, if meeting threshold value H requirements after predistribution, that is, remaining resource value is all higher than corresponding resource reservation threshold after being pre-allocated Value H, then retain, and added in second server set D2;If threshold value H requirements can not be met after predistribution, without extremely Second server set D2.
Wherein, the available resources vector filtered out in the first server set after the predistribution of each server is not After less than the second server set of reserved threshold vector, also include:
Judge whether the second server set is empty;
If so, then sending the prompt message for placing virtual machine failure;
If it is not, then continue executing with it is described according in the second server set each server available resources vector, Described in the resource requirement vector sum the step of weighted value of every resource of resource requirement vector.
It should be noted that if empty, prompting the user with placement empty, it is necessary to judge whether D2 is empty after performing S104 Plan machine fails;If D2 is not sky, S105 is continued executing with.
S105, according to the available resources of each server in the second server set are vectorial, the resource requirement to The weighted value of every resource of amount and resource requirement vector, each server is inclined in the calculating second server set Good value, using the maximum server of preference value as the server for placing newly-built virtual machine.
Wherein, available resources according to each server in the second server set are vectorial, the resource requirement to The weighted value of every resource of amount and resource requirement vector, each server is inclined in the calculating second server set Good value, including:
According to each resource requirement in the resource requirement total value of resource requirement vector, with resource requirement vector Requirements, calculate the weighted value of each resource;
Using each server in the second server set available resources vector sum described in resource requirement vector, meter Calculate the surplus resources vector of each server in the second server set;
Using the residual vector resource and the weighted value of each resource of each server in the second server set, meter Calculate the preference value of each server in the second server set.
Specifically, in the present embodiment firstly the need of computational resource requirements vector resource requirement total value, i.e.,:VMcpu+ VMmem+Vmbandwidth;Then the weighted value of each resource is calculated, i.e.,:
The weighted value of CPU resources of virtual machine demand:
W1=VMcpu/ (VMcpu+VMmem+VMbandwidth);
The weighted value of virutal machine memory resource demand:
W2=VMmen/ (VMcpu+VMmem+VMbandwidth);
The weighted value of virtual machine bandwidth resources demand:
W3=VMbandwidth/ (VMcpu+VMmem+VMbandwidth);
Then according to needed for virtual machine various resources weighted value, calculating is placed into the preference value of each physical node, i.e., For:
Pk-i=(PM-icpu-VMcpu) × W1+ (PM-imem-VMmem) × W2+ (PM-ibandwidth- VMbandwidth)×W3;Wherein i is numbered for physical node, and the maximum physical node of selection preference value is put as newly-built virtual machine The node put, referring to Fig. 2, if having two physical nodes simultaneously with maximum preference value, chooses the less node of numbering, comprehensive Upper visible, this programme can take into full account the operation loading condition of each physical node, on the premise of meeting resource reservation threshold value, Selection can most meet the physical node of virtual machine demand as placing newly-built virtual machine.
Server selection device provided in an embodiment of the present invention is introduced below, server selection dress described below Putting can be with cross-referenced with above-described server selection method.
Referring to Fig. 3, a kind of server selection device for placing newly-built virtual machine provided in an embodiment of the present invention, including:
First acquisition module 100, the resource requirement vector for obtaining newly-built virtual machine;
Second acquisition module 200, the available resources vector set for obtaining server cluster, the available resources vector Set includes the available resources of each server in the server cluster;
Determining module 300, for using available resources vector set described in the resource requirement vector sum, determining the clothes The first server set of resource requirement is met in business device cluster;
Screening module 400, for vectorial to each server in the first server set using the resource requirement Available resources vector pre-allocated, filter out the available money after the predistribution of each server in the first server set Source vector is not less than the second server set of reserved threshold vector;
Preference value computing module 500, for the available resources according to each server in the second server set to The weighted value of amount, every resource of resource requirement vector described in the resource requirement vector sum, calculates the second server collection The preference value of each server in conjunction;
Server determining module 600, for using the maximum server of preference value as the server for placing newly-built virtual machine.
Based on above-described embodiment, the determining module filters out satisfaction first and screens from available resources vector set The server of condition, as the first server set;First screening conditions are:Each in first server set Each available resources of the available resources vector of server, are all higher than each demand corresponding with resource requirement vector and provide Source.
Based on above-described embodiment, the screening module includes:
First surplus resources vector calculation unit, for each server in the first server set can With resource vector and resource requirement vector, calculate the surplus resources of each server in the first server set to Amount;
Second server set determining unit, for by the surplus resources of the server in first server vector Every surplus resources, the server of every reserved threshold value corresponding not less than with predetermined threshold vector takes added to described second Business device set.
Based on above-described embodiment, also include:
Judge module, for judging whether the second server set is empty;If so, then triggering reminding module;If it is not, Then trigger the preference value computing module;
The reminding module, for being not space-time in the second server set, sends and places carrying for virtual machine failure Show information.
Based on above-described embodiment, the preference value computing module includes:
Weighted value computing unit, for the resource requirement total value according to resource requirement vector, with the resource requirement The requirements of each resource requirement in vector, calculate the weighted value of each resource;
Second surplus resources vector calculation unit, for using in the second server set each server it is available Resource vector and resource requirement vector, calculate the surplus resources vector of each server in the second server set;
Preference value computing unit, for the residual vector resource using each server in the second server set and The weighted value of each resource, calculates the preference value of each server in the second server set.
It can be seen that, in this programme, by obtaining the available resources and resource needed for newly-built virtual machine of physical node in cluster, The resource reservation threshold value of physical node is set, by the setting of resource reservation threshold value, the performance of node is fully ensured.Then from collection Screening meets resources of virtual machine demand and is pre-assigned to after newly-built resources of virtual machine the physics section that meets resource reservation threshold value in group Point composition set, calculates the weighted value of resource needed for newly-built virtual machine, that is, take into full account the various power of virtual machine demand resource Weight, to ensure the satisfaction of the demand of different characteristics virtual machine.Calculate each physical node again according to weighted value and place the newly-built void The preference value of plan machine, the maximum newly-built virtual machine of conduct of selection preference value places node, can take into full account each physical node Operation loading condition, on the premise of meeting resource reservation threshold value, selection can most meet the physical node conduct of virtual machine demand To place newly-built virtual machine.
Each embodiment is described by the way of progressive in this specification, and what each embodiment was stressed is and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, enables professional and technical personnel in the field to realize or uses the present invention. Various modifications to these embodiments will be apparent for those 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, the present invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The scope most wide for causing.

Claims (10)

1. a kind of server selection method for placing newly-built virtual machine, it is characterised in that including:
Obtain the resource requirement vector of newly-built virtual machine;
The available resources vector set of server cluster is obtained, the available resources vector set includes the server cluster In each server available resources;
Using available resources vector set described in the resource requirement vector sum, determine to meet resource need in the server cluster The first server set asked;
The available resources vector of each server in the first server set is carried out using resource requirement vector pre- Distribution, filters out the available resources vector in the first server set after the predistribution of each server not less than reserved threshold value The second server set of vector;
Available resources according to each server in the second server set are vectorial, provide described in the resource requirement vector sum The weighted value of every resource of source requirement vector, calculates the preference value of each server in the second server set, will be inclined The maximum server of good value is used as the server for placing newly-built virtual machine.
2. server selection method according to claim 1, it is characterised in that described to utilize the resource requirement vector sum Available resources vector set, determines to meet the first server set of resource requirement in the server cluster, including:
The server for meeting the first screening conditions is filtered out from available resources vector set, as the first server Set;
First screening conditions are:Each available money of the available resources vector of each server in first server set Source, is all higher than each demand resource corresponding with resource requirement vector.
3. server selection method according to claim 2, it is characterised in that using resource requirement vector to described The available resources vector of each server is pre-allocated in first server set, in filtering out the first server set Second server set of the available resources vector not less than reserved threshold vector after the predistribution of each server, including:
Resource requirement vector described in the available resources vector sum of each server in the first server set, calculates The surplus resources vector of each server in the first server set;
By every surplus resources of the surplus resources of the server in first server vector, not less than with predetermined threshold The server of the corresponding every reserved threshold value of vector is added to the second server set.
4. server selection method according to claim 1, it is characterised in that described to filter out the first server collection After second server set of the available resources vector not less than reserved threshold vector in conjunction after the predistribution of each server, also Including:
Judge whether the second server set is empty;
If so, then sending the prompt message for placing virtual machine failure;
If it is not, it is vectorial, described then to continue executing with the available resources according to each server in the second server set Described in resource requirement vector sum the step of the weighted value of every resource of resource requirement vector.
5. the server selection method according to any one in claim 1-4, it is characterised in that according to the described second clothes Every money that the available resources of each server are vectorial in business device set, resource requirement described in the resource requirement vector sum is vectorial The weighted value in source, calculates the preference value of each server in the second server set, including:
According to the demand of each resource requirement in the resource requirement total value of resource requirement vector, with resource requirement vector Value, calculates the weighted value of each resource;
Using each server in the second server set available resources vector sum described in resource requirement vector, calculate institute State the surplus resources vector of each server in second server set;
Using the residual vector resource and the weighted value of each resource of each server in the second server set, institute is calculated State the preference value of each server in second server set.
6. a kind of server selection device for placing newly-built virtual machine, it is characterised in that including:
First acquisition module, the resource requirement vector for obtaining newly-built virtual machine;
Second acquisition module, the available resources vector set for obtaining server cluster, in the available resources vector set Available resources including each server in the server cluster;
Determining module, for using available resources vector set described in the resource requirement vector sum, determining the server set The first server set of resource requirement is met in group;
Screening module, for using the vectorial available money to each server in the first server set of the resource requirement Source vector is pre-allocated, and filters out available resources vector in the first server set after the predistribution of each server not Less than the second server set of reserved threshold vector;
Preference value computing module, it is vectorial, described for the available resources according to each server in the second server set The weighted value of every resource of resource requirement vector described in resource requirement vector sum, calculates each in the second server set The preference value of server;
Server determining module, for using the maximum server of preference value as the server for placing newly-built virtual machine.
7. server selection device according to claim 6, it is characterised in that
The determining module filters out the server for meeting the first screening conditions from available resources vector set, used as institute State first server set;First screening conditions are:The available resources of each server in first server set to Each available resources of amount, are all higher than each demand resource corresponding with resource requirement vector.
8. server selection device according to claim 7, it is characterised in that the screening module includes:
First surplus resources vector calculation unit, for the available money of each server in the first server set Source vector and resource requirement vector, calculate the surplus resources vector of each server in the first server set;
Second server set determining unit, for by the items of the surplus resources of the server in first server vector Surplus resources, the server of every reserved threshold value corresponding not less than with predetermined threshold vector is added to the second server Set.
9. server selection device according to claim 6, it is characterised in that also include:
Judge module, for judging whether the second server set is empty;If so, then triggering reminding module;If it is not, then touching Send out preference value computing module described;
The reminding module, for being not space-time in the second server set, sends the prompting letter for placing virtual machine failure Breath.
10. the server selection device according to any one in claim 6-9, it is characterised in that the preference value meter Calculating module includes:
Weighted value computing unit, for the resource requirement total value according to resource requirement vector, with resource requirement vector In each resource requirement requirements, calculate the weighted value of each resource;
Second surplus resources vector calculation unit, for the available resources using each server in the second server set Resource requirement vector described in vector sum, calculates the surplus resources vector of each server in the second server set;
Preference value computing unit, for the residual vector resource using each server in the second server set and each The weighted value of resource, calculates the preference value of each server in the second server set.
CN201710078210.6A 2017-02-14 2017-02-14 A kind of server selection method and device for placing newly-built virtual machine Pending CN106874116A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710078210.6A CN106874116A (en) 2017-02-14 2017-02-14 A kind of server selection method and device for placing newly-built virtual machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710078210.6A CN106874116A (en) 2017-02-14 2017-02-14 A kind of server selection method and device for placing newly-built virtual machine

Publications (1)

Publication Number Publication Date
CN106874116A true CN106874116A (en) 2017-06-20

Family

ID=59167049

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710078210.6A Pending CN106874116A (en) 2017-02-14 2017-02-14 A kind of server selection method and device for placing newly-built virtual machine

Country Status (1)

Country Link
CN (1) CN106874116A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107749805A (en) * 2017-10-30 2018-03-02 山东浪潮云服务信息科技有限公司 A kind of virtual machine deployment method and device
CN108572868A (en) * 2017-09-25 2018-09-25 北京金山云网络技术有限公司 A kind of physical host selection method, device, equipment and readable storage medium storing program for executing
CN110474966A (en) * 2019-07-22 2019-11-19 腾讯科技(深圳)有限公司 Handle the method and relevant device of cloud platform resource fragmentation
CN110784335A (en) * 2019-09-19 2020-02-11 烽火通信科技股份有限公司 Network element resource reservation system under cloud scene
CN111225050A (en) * 2020-01-02 2020-06-02 中国神华能源股份有限公司神朔铁路分公司 Cloud computing resource allocation method and device
CN112084020A (en) * 2020-08-13 2020-12-15 河北工程大学 Virtual machine layout method based on bilateral matching in multi-access virtual edge calculation
CN112527490A (en) * 2019-09-17 2021-03-19 广州虎牙科技有限公司 Node resource control method and device, electronic equipment and storage medium
CN112799789A (en) * 2021-03-22 2021-05-14 腾讯科技(深圳)有限公司 Node cluster management method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017801A1 (en) * 2008-07-18 2010-01-21 Vmware, Inc. Profile based creation of virtual machines in a virtualization environment
CN102790793A (en) * 2012-05-08 2012-11-21 北京邮电大学 Decision method and control module facing to cloud computing virtual machine migration
CN103577271A (en) * 2013-11-14 2014-02-12 浪潮(北京)电子信息产业有限公司 Cloud management platform, host machines and virtual machine resource deploying method and system
CN104010028A (en) * 2014-05-04 2014-08-27 华南理工大学 Dynamic virtual resource management strategy method for performance weighting under cloud platform

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100017801A1 (en) * 2008-07-18 2010-01-21 Vmware, Inc. Profile based creation of virtual machines in a virtualization environment
CN102790793A (en) * 2012-05-08 2012-11-21 北京邮电大学 Decision method and control module facing to cloud computing virtual machine migration
CN103577271A (en) * 2013-11-14 2014-02-12 浪潮(北京)电子信息产业有限公司 Cloud management platform, host machines and virtual machine resource deploying method and system
CN104010028A (en) * 2014-05-04 2014-08-27 华南理工大学 Dynamic virtual resource management strategy method for performance weighting under cloud platform

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108572868A (en) * 2017-09-25 2018-09-25 北京金山云网络技术有限公司 A kind of physical host selection method, device, equipment and readable storage medium storing program for executing
CN107749805A (en) * 2017-10-30 2018-03-02 山东浪潮云服务信息科技有限公司 A kind of virtual machine deployment method and device
CN110474966B (en) * 2019-07-22 2022-04-19 腾讯科技(深圳)有限公司 Method for processing cloud platform resource fragments and related equipment
CN110474966A (en) * 2019-07-22 2019-11-19 腾讯科技(深圳)有限公司 Handle the method and relevant device of cloud platform resource fragmentation
US11966792B2 (en) 2019-07-22 2024-04-23 Tencent Technology (Shenzhen) Company Limited Resource processing method of cloud platform, related device, and storage medium
CN112527490B (en) * 2019-09-17 2024-02-09 广州虎牙科技有限公司 Node resource management and control method and device, electronic equipment and storage medium
CN112527490A (en) * 2019-09-17 2021-03-19 广州虎牙科技有限公司 Node resource control method and device, electronic equipment and storage medium
CN110784335A (en) * 2019-09-19 2020-02-11 烽火通信科技股份有限公司 Network element resource reservation system under cloud scene
CN110784335B (en) * 2019-09-19 2022-09-02 烽火通信科技股份有限公司 Network element resource reservation system under cloud scene
CN111225050B (en) * 2020-01-02 2022-10-18 中国神华能源股份有限公司神朔铁路分公司 Cloud computing resource allocation method and device
CN111225050A (en) * 2020-01-02 2020-06-02 中国神华能源股份有限公司神朔铁路分公司 Cloud computing resource allocation method and device
CN112084020B (en) * 2020-08-13 2022-04-26 河北工程大学 Virtual machine layout method based on bilateral matching in multi-access virtual edge calculation
CN112084020A (en) * 2020-08-13 2020-12-15 河北工程大学 Virtual machine layout method based on bilateral matching in multi-access virtual edge calculation
CN112799789A (en) * 2021-03-22 2021-05-14 腾讯科技(深圳)有限公司 Node cluster management method, device, equipment and storage medium
CN112799789B (en) * 2021-03-22 2023-08-11 腾讯科技(深圳)有限公司 Node cluster management method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106874116A (en) A kind of server selection method and device for placing newly-built virtual machine
CN105279027B (en) A kind of virtual machine deployment method and device
CN104067260B (en) Dynamic construction is for undertaking the methods, devices and systems of one group of calculating node of amount of user effort
CN104902001B (en) Web request load-balancing method based on operating system virtualization
CN104881325A (en) Resource scheduling method and resource scheduling system
CN105843670A (en) Cloud platform based virtual cluster deployment and integration method
CN103823709B (en) System of virtual cluster, resource allocation methods and management node
CN105279023B (en) A kind of virtual machine migration method and device
CN106603618A (en) Cloud platform-based application auto scaling method
CN104102543A (en) Load regulation method and load regulation device in cloud computing environment
CN104426694B (en) A kind of method and apparatus of adjustment resources of virtual machine
RU2011119226A (en) METHOD AND SYSTEM FOR PLANNING THE DATA SELECTION FOR TRANSFER TO THE DATA TRANSFER NETWORK
CN106209402A (en) The telescopic method of a kind of virtual network function and equipment
CN104021040A (en) Cloud computing associated task scheduling method and device based on time constraint
CN103729236B (en) A kind of method for limiting cloud computing user resources using amount
CN106506670A (en) A kind of cloud platform virtual resource high speed dispatching method and system
CN106528270A (en) Automatic migration method and system of virtual machine based on OpenStack cloud platform
CN107479947A (en) A kind of energy consumption of virtual machine optimization method and system
CN109766172A (en) A kind of asynchronous task scheduling method and device
CN106325976A (en) Rendering task scheduling processing method and server
CN112395075A (en) Resource processing method and device and resource scheduling system
CN103997515B (en) Center system of selection and its application are calculated in a kind of distributed cloud
CN106059940A (en) Flow control method and device
CN105045667A (en) Resource pool management method for vCPU scheduling of virtual machines
CN107749805A (en) A kind of virtual machine deployment method and device

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20170620

RJ01 Rejection of invention patent application after publication