CN108241521A - The choosing method and device of host - Google Patents
The choosing method and device of host Download PDFInfo
- Publication number
- CN108241521A CN108241521A CN201611218585.XA CN201611218585A CN108241521A CN 108241521 A CN108241521 A CN 108241521A CN 201611218585 A CN201611218585 A CN 201611218585A CN 108241521 A CN108241521 A CN 108241521A
- Authority
- CN
- China
- Prior art keywords
- host
- virtual machine
- business
- allocated
- module
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/4557—Distribution of virtual machine instances; Migration and load balancing
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention discloses the choosing methods and device of a kind of host.Wherein, this method includes:Business information corresponding with virtual machine to be allocated is obtained, wherein, the virtual machine to be allocated distributes the virtual machine of host for Request System, and the information of the business is used to represent the business handled by the virtual machine to be allocated;Obtain all hosts and the related information of business in the system;From the corresponding host of related information to conform to a predetermined condition, the host of the virtual machine to be allocated is chosen, solving a host failure leads to the technical issues of larger to some business impact.
Description
Technical field
The present invention relates to computer realm, in particular to the choosing method and device of a kind of host.
Background technology
Virtual machine be fictionalized on a host by virtualization technology on host come an operating system,
Automation operation platform can facilitate operation maintenance personnel to open a virtual machine for a product, and the one of function of the platform is certainly
Dynamic to pick out host of the physical server as virtual machine from lane database, alternative condition is:
1. with opening virtual machine in the same network segment;
2. the free memory of host, CPU, disk must satisfy the application condition of virtual machine.
If host breaks down, the virtual machine run on host will all be affected.Such as on a host
10 virtual machines opened contribute to business A, the machine if host is delayed, and business A can delay 10 virtual machines of machine simultaneously,
It is larger to service impact.
Lead to the problem of larger to some business impact for an above-mentioned host failure, not yet propose at present effective
Solution.
Invention content
An embodiment of the present invention provides the choosing method and device of a kind of host, at least to solve a host failure
Lead to the technical issues of larger to some business impact.
One side according to embodiments of the present invention provides a kind of choosing method of host, including:It obtains and treats point
With the corresponding business information of virtual machine, wherein, the virtual machine to be allocated distributes the virtual machine of host for Request System, described
The information of business is used to represent the business handled by the virtual machine to be allocated;Obtain all hosts and business in the system
Related information;From the corresponding host of related information to conform to a predetermined condition, the host of the virtual machine to be allocated is chosen
Machine.
Further, all hosts and the related information of business in the system is obtained to include:It is read from tables of data
Each host and business are associated with quantity in the system, wherein, the related information includes the association quantity, the pass
Connection quantity is used to represent the quantity of the virtual machine that various businesses are configured on the host.
Further, from the corresponding host of the related information to conform to a predetermined condition, selection is described to be allocated virtual
Before the host of machine, the method further includes:Judge the host and the business be associated with quantity whether be less than it is predetermined
Threshold value;If the host is associated with quantity less than predetermined threshold with the business, it is determined that the association quantity meets described
Predetermined condition;If the host is associated with quantity not less than predetermined threshold with the business, it is determined that the association quantity is not
Meet the predetermined condition.
Further, in the system is read from tables of data each host and business be associated with quantity before, institute
The method of stating further includes:Determine the virtual machine being configured in each host in the system;It is searched using the ID of each virtual machine each
Traffic ID handled by a virtual machine;The quantity of the corresponding each traffic ID of each host is counted, is obtained described
Host is associated with quantity with each business;The association quantity is preserved, generates the tables of data.
Further, the host for choosing the virtual machine to be allocated includes:It is less than the place of predetermined quantity from configuration quantity
In host, the host of the virtual machine to be allocated is chosen, wherein, it is that the business has been matched in host that the configuration quantity, which is,
The quantity for the virtual machine put.
Another aspect according to embodiments of the present invention additionally provides a kind of selecting device of host, including:First obtains
Module, for obtaining business information corresponding with virtual machine to be allocated, wherein, the virtual machine to be allocated is distributed for Request System
The virtual machine of host, the information of the business are used to represent the business handled by the virtual machine to be allocated;Second obtains mould
Block, for obtaining all hosts and the related information of business in the system;Module is chosen, for from conforming to a predetermined condition
In the corresponding host of related information, the host of the virtual machine to be allocated is chosen.
Further, the second acquisition module includes:Read module, for reading each place in the system from tables of data
Host is associated with quantity with business, wherein, the related information includes the association quantity, and the association quantity is used to represent institute
State the quantity of the virtual machine that various businesses are configured on host.
Further, described device further includes:Judgment module, for choosing the module selection virtual machine to be allocated
Before host, judge the host and the business is associated with whether quantity is less than predetermined threshold;First determining module is used
In being associated with quantity less than in the case of predetermined threshold, determining that the association quantity meets institute in the host and the business
State predetermined condition;Second determining module, for being not less than predetermined threshold with the quantity that is associated with of the business in the host
In the case of, determine that the association quantity does not meet the predetermined condition.
Further, described device further includes:Third determining module, described in being read from tables of data in read module
In system each host and business be associated with quantity before, determine the virtual machine being configured in each host in the system;
Searching module, for searching the traffic ID handled by each virtual machine using the ID of each virtual machine;Statistical module is used for
The quantity of the corresponding each traffic ID of each host is counted, obtains the incidence number of the host and each business
Amount;Preserving module for preserving the association quantity, generates the tables of data.
Further, module is chosen to include:Submodule is chosen, for being less than the host of predetermined quantity from configuration quantity
In, the host of the selection virtual machine to be allocated, wherein, number of the configuration quantity for virtual machine configured in host
Amount.
In embodiments of the present invention, virtual machine Request System distribute host in the case of, by reservations database into
Row inquiry, obtains the business information corresponding to the virtual machine.The virtual machine and industry that each host is configured in system are obtained again
The related information of business.According to the predetermined condition of setting, related information is screened, chooses the related information to conform to a predetermined condition
Corresponding host is host to be allocated.The program by the setting to predetermined condition, establishes virtual machine and chooses host
Rule, so as to limit selection of the virtual machine to host, and then virtual machine is assigned on multiple hosts, reached point
The effect of relieve heat danger, solving a host failure leads to the technical issues of larger to some business impact.
Description of the drawings
Attached drawing described herein is used to provide further understanding of the present invention, and forms the part of the application, this hair
Bright illustrative embodiments and their description do not constitute improper limitations of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is a kind of choosing method flow chart of host according to embodiments of the present invention;
Fig. 2 is a kind of choosing method flow chart of optional host according to embodiments of the present invention;
Fig. 3 is a kind of schematic diagram of the selecting device of optional host according to embodiments of the present invention.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the present invention program, below in conjunction in the embodiment of the present invention
The technical solution in the embodiment of the present invention is clearly and completely described in attached drawing, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
Member's all other embodiments obtained without making creative work should all belong to the model that the present invention protects
It encloses.
It should be noted that term " first " in description and claims of this specification and above-mentioned attached drawing, "
Two " etc. be the object for distinguishing similar, and specific sequence or precedence are described without being used for.It should be appreciated that it uses in this way
Data can be interchanged in the appropriate case, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment
Those steps or unit clearly listed, but may include not listing clearly or for these processes, method, product
Or the intrinsic other steps of equipment or unit.
According to embodiments of the present invention, a kind of method and device embodiment of the selection of host is provided, needs what is illustrated
It is that step shown in the flowchart of the accompanying drawings can perform in the computer system of such as a group of computer-executable instructions,
Also, although logical order is shown in flow charts, in some cases, it can be performed with the sequence being different from herein
Shown or described step.
Fig. 1 is a kind of choosing method flow chart of host according to embodiments of the present invention, as shown in Figure 1, this method packet
Include following steps:
Step S102 obtains business information corresponding with virtual machine to be allocated, wherein, virtual machine to be allocated is Request System
The virtual machine of host is distributed, the information of business is used to represent the business handled by virtual machine to be allocated;
Step S104, all hosts and the related information of business in acquisition system;
Step S106 from the corresponding host of related information to conform to a predetermined condition, chooses the place of virtual machine to be allocated
Host.
According to the above embodiment of the present invention, when need to be some business configuration virtual machine, background system determines to treat point
With the business handled by virtual machine, and after all hosts in system is got and the related information of business, symbol is obtained
The related information of predetermined condition is closed, and from the corresponding host of related information to conform to a predetermined condition, chosen to be allocated virtual
The host of machine.The program chooses host rather than by an industry from the virtual machine of the related information to conform to a predetermined condition
The virtual machine configuration of business is on same host, if machine or failure that is, a host is delayed, will not lead to this industry
The operation of all virtual machines of business is all affected, that is, can multiple virtual machines of same business be assigned to multiple places
On host, achieve the effect that diversify risks, solving a host failure leads to the technology larger to some business impact
Problem.
Optionally, background system is a kind of virtual machine operating system, which is used for as virtual machine to be allocated
Distribute corresponding host.The virtual machine of multiple business can be configured on every host.
Optionally, it can determine to handle the virtual machine number of same business on host by way of setting threshold value comparison
Amount is to conform to a predetermined condition less than the situation of threshold value, chooses the host to conform to a predetermined condition, that is, the processing for choosing configuration is same
The virtual machine quantity of business is less than the host of predetermined threshold.And then it can realize the same industry of the processing being configured on host
The virtual machine quantity of business handle the virtual machine configuration of this business in the case of being less than predetermined threshold, otherwise will be without matching
It puts.The program just limits the virtual machine that same business is handled in host in virtual machine configuration, same so as to handle
The virtual machine of one business is distributed in multiple hosts, and the virtual machine quantity that same business is handled in each host is both less than
Defined threshold causes greater impact after avoiding a host failure to the virtual machine that a certain item business is handled on the host,
Achieve the effect that diversify risks, solving a host failure leads to the technical issues of larger to some business impact.
According to the above embodiment of the present invention, all hosts and the related information of business include in acquisition system:From data
Each host and business are associated with quantity in reading system in table, wherein, related information includes association quantity, association quantity is used
In the quantity for representing the virtual machine of various businesses configuration on host.
Optionally, it is previously provided with a tables of data in background system, record has host and business in the tables of data
Quantity is associated with, which is intended to indicate that the quantity of the virtual machine that various businesses are configured on each host.In background system
It needs in acquisition system in the case of all hosts and the related information of business, can be directly read from above-mentioned tables of data and be
Each host and business is associated with quantity in system.The program, by way of directly reading preset data table, obtaining record has
Each host is associated with quantity with business, can quickly and easily all hosts and business are associated with letter in acquisition system
Breath.
According to the above embodiment of the present invention, from the corresponding host of the related information to conform to a predetermined condition, selection is treated
It distributes before the host of virtual machine, the choosing method of host further includes:Judge host and the business is associated with quantity
Whether predetermined threshold is less than, if host is less than predetermined threshold with the quantity that is associated with of business, it is determined that association quantity meets predetermined
Condition;If host is associated with quantity not less than predetermined threshold with business, it is determined that association quantity does not meet predetermined condition.
Optionally, background system is before the host for choosing virtual machine to be allocated, it can be determined that whether related information accords with
Predetermined condition is closed, and obtains one of the related information to conform to a predetermined condition and the related information for being determined for compliance with predetermined condition
Or multiple hosts.By choosing host from the one or more hosts determined, void to be allocated is chosen to realize
The host of plan machine.
Wherein, judge whether related information conforms to a predetermined condition, it can be by setting predetermined threshold, and judge to be associated with quantity
Whether realize less than predetermined threshold.Optionally, a predetermined threshold is pre-set, for limiting being associated with for host and business
Quantity, and set conform to a predetermined condition including:Host is associated with quantity less than the predetermined threshold with business.
In above-described embodiment in a manner that threshold value is set, by judge host and business whether be associated with quantity small
In predetermined threshold, judge whether related information conforms to a predetermined condition to realize, this determines that method is simple, accurate, and convenient for calculating
The realization of machine.
According to the above embodiment of the present invention, each host and business is associated with quantity in the reading system from tables of data
Before, method further includes:Determine the virtual machine being configured in each host in system;It is searched using the ID of each virtual machine each
Traffic ID handled by virtual machine;The quantity of the corresponding each traffic ID of each host is counted, obtains host and each industry
The association quantity of business;Association quantity is preserved, generates tables of data.Specifically, it is determined that the void being configured in each host in system
Plan machine recycles the traffic ID handled by each virtual machine of ID lookups of each virtual machine, and it is corresponding to count each host
The quantity of each traffic ID, obtain host and each business is associated with quantity.Association quantity according to obtaining is preserved, and
Generation association quantity tables of data.The program, by the incidence number of the traffic ID handled by the ID of each virtual machine and each virtual machine
Amount statistics is associated with quantity into tables of data, so as to quickly find each host and each business according to the tables of data.
According to the above embodiment of the present invention, the host for choosing the virtual machine to be allocated includes:It is less than from configuration quantity
In the host of predetermined quantity, the host of the virtual machine to be allocated is chosen, wherein, the configuration quantity is to be in host
The quantity of the configured virtual machine of the business.
Optionally, the virtual machine being configured on each host has the limitation of quantity, by presetting a predetermined number
It measures for limiting on host the quantity for being the business configuration virtual machine, is less than in advance in the preliminary installation virtual machine quantity that filtering out
After the host for determining threshold value, and then it is place of the configured virtual machine quantity of the business less than predetermined quantity to choose on host
Host is the host of virtual machine to be allocated, in addition to realizing the preferable traffic balancing of host, can also be shared equally due to host event
Business paralysis risk caused by barrier utmostly ensures the normal operation of business.The program, by setting predetermined quantity, to select
It is host of the configured virtual machine quantity of the business less than predetermined quantity to take on host, and selection mode can use place
It is that the configured virtual machine quantity of the business compares judgement with predetermined quantity on host, manner of comparison is easy, can pass through meter
Calculation machine is realized.
Fig. 2 is a kind of choosing method flow chart of optional host according to embodiments of the present invention, as shown in Fig. 2, should
Method includes the following steps:
Step S202 obtains the incidence relation of host and virtual machine.
Optionally, in host recommending module when operation starts, the first ergodic data library of system meeting, according to virtual machine in data
' host_machine ' field (id of host) in library, establishes a host and virtual machine in Servers-all resource
Network of personal connections dictionary, storage in memory be used for step S204 calculating.
A kind of optional method for establishing dictionary:
It is C that ' host_machine ' field that virtual machine id is A records is found in database;
It is C that ' host_machine ' field that virtual machine id is B records is found in database;
It is F that ' host_machine ' field that virtual machine id is E records is found in database;
…
Using all host_machine fields as key (host), the inventory list of the id compositions of multiple virtual machines
(host) forms dictionary { C as valuel (target component):[A,B],F:[E],…..}.
Step S204, the product distribution calculated on host count.
Optionally, the network of personal connections dictionary generated in traversal step S202, by the valuel (targets of each key (host)
Parameter) list is taken out, then is traversed target component list and obtained the id of virtual machine, and it is corresponding to find out its in the database with the id
ProductName, as soon as and obtain a ProductName, the quantity of key (host) associated ProductName of this link is added into 1 presence
In memory, whole network of personal connections dictionaries have so been traversed, it is possible to which obtain all hosts and product is associated with quantity, by the quantity
Information stores in memory, is screened for step S206.
Step S206 increases screening conditions.
Optionally, it reads and quantity information is associated with product by the step S204 hosts obtained, further according to requirement product
It is screened, the host for requirement product name incidence relation not being met screening conditions all filters out.
Optionally, screening conditions can be set as two, i.e., the virtual machine of same product, it is impossible on same host
It opens more than two.During virtual machine configuration, added a set of screening rule, allow the recommending module of host according to
The virtual machine product opened on current host is counted, and only virtual machine is recommended to match the host for meeting counting rule
It puts.
Fig. 3 is a kind of schematic diagram of the selecting device of optional host according to embodiments of the present invention, as shown in figure 3,
Including:First acquisition module 31, for obtaining business information corresponding with virtual machine to be allocated, wherein, it is described to be allocated virtual
Machine distributes the virtual machine of host for Request System, and the information of the business is used to represent handled by the virtual machine to be allocated
Business;Second acquisition module 33, for obtaining all hosts and the related information of business in the system;Module 35 is chosen,
For from the corresponding host of related information to conform to a predetermined condition, choosing the host of the virtual machine to be allocated.
According to the above embodiment of the present invention, in the case where virtual machine Request System distributes host, background system passes through
First acquisition module obtains the corresponding business information of virtual machine to be allocated, can be learnt according to the business information of acquisition to be matched
Business handled by virtual machine, then by the second acquisition module, whole hosts and the related information of business in acquisition system,
And pass through selection module, related information is defined according to predetermined condition, from the host of virtual machine to be allocated, chooses symbol
Close the correspondence host of predetermined condition.The program by the setting to predetermined condition, establishes the rule that virtual machine chooses host
Then, so as to limit selection of the virtual machine to host, and then virtual machine is assigned on multiple hosts, has reached dispersion wind
The effect of danger, solving a host failure leads to the technical issues of larger to some business impact.
Optionally, it can choose in module, preset the virtual machine number of the same business of processing being configured on host
The threshold value of amount chooses the host to conform to a predetermined condition, that is, chooses the virtual machine that configuration handles same business as predetermined condition
Quantity is less than the host of predetermined threshold.And then it can realize the virtual machine number of the same business of processing being configured on host
Amount handle the virtual machine configuration of this business in the case of being less than predetermined threshold, otherwise will be without configuration.The program,
Just the virtual machine that same business is handled in host is limited during virtual machine configuration, so as to which the virtual of same business will be handled
Machine is distributed in multiple hosts, and the virtual machine quantity that same business is handled in each host is both less than defined threshold, keeps away
Greater impact is caused to the virtual machine that a certain item business is handled on the host after exempting from a host failure, has reached dispersion wind
The effect of danger, solving a host failure leads to the technical issues of larger to some business impact.
According to the above embodiment of the present invention, the second acquisition module includes:Read module, described in being read from tables of data
Each host and business are associated with quantity in system, wherein, the related information includes the association quantity, the incidence number
Measure the quantity for representing the virtual machine that various businesses are configured on the host.
Optionally, it is previously provided with a tables of data in background system, record has host and business in the tables of data
Quantity is associated with, which is intended to indicate that the quantity of the virtual machine that various businesses are configured on each host.In background system
It needs in acquisition system in the case of all hosts and the related information of business, by read module, from above-mentioned tables of data
Directly read each host and business in system is associated with quantity, which is the related information acquired in background system
One of.The program, by read module, obtain that record has each host and a business is associated with quantity, can be quickly and easily
All hosts and the related information of business in acquisition system.
According to the above embodiment of the present invention, described device further includes:Judgment module, it is described for being chosen in selection module 35
Before the host of virtual machine to be allocated, judge the host and the business is associated with whether quantity is less than predetermined threshold;
First determining module, if being less than predetermined threshold with the quantity that is associated with of the business for the host, it is determined that the association
Quantity meets the predetermined condition;Second determining module, if being not less than for the host with the quantity that is associated with of the business
Predetermined threshold, it is determined that the association quantity does not meet the predetermined condition.
Optionally, background system needs to judge whether related information accords with before the host for choosing virtual machine to be allocated
Predetermined condition is closed, wherein, judge whether related information conforms to a predetermined condition, it can be by the way that predetermined threshold be set to be judged.In advance
A threshold value is first set, for limiting be associated with quantity of the host with business, and according to the first determining module, determines host
It is less than the situation of the threshold value to conform to a predetermined condition with the quantity that is associated with of business;And second determining module, determine host with
The association quantity of business is not meet predetermined condition not less than the situation of threshold value.The program passes through the first determining module and second
Host is defined by determining module with the quantity that is associated with of business, determines whether host conforms to a predetermined condition, and determines side
Formula is simple, accurate, and convenient for the realization of computer.
According to the above embodiment of the present invention, described device further includes:Third determining module, in read module from data
Read in table each host and business in the system be associated with quantity before, determine in each host to match in the system
The virtual machine put;Searching module, for searching the traffic ID handled by each virtual machine using the ID of each virtual machine;System
Count module, for counting the quantity of the corresponding each traffic ID of each host, obtain the host with it is each described
The association quantity of business;Preserving module for preserving the association quantity, generates the tables of data.
Optionally, by third determining module, the virtual machine being configured in each host in system is determined, further according to looking into
Module is looked for, searches the traffic ID handled by each virtual machine, and pass through statistical module using the ID of each virtual machine, statistics is each
The quantity of the corresponding each traffic ID of host, obtain host and each business is associated with quantity.According to the incidence number obtained
Amount by preserving module, preserves association quantity, and generates association quantity tables of data.The program, by each virtual machine
ID is associated with quantity statistics into tables of data with the traffic ID handled by each virtual machine, so as to be checked quickly soon according to the tables of data
That finds each host and each business is associated with quantity.
According to the above embodiment of the present invention, choose module and include:Submodule is chosen, for being less than predetermined number from configuration quantity
In the host of amount, the host of virtual machine is chosen, wherein, it is configured virtual of the business in host that configuration quantity, which is,
The quantity of machine.
Optionally, the virtual machine being configured on each host has the limitation of quantity, by choosing submodule, pre-sets
One predetermined quantity be used for limiting on host be the business configuration virtual machine quantity, tentatively filtering out installation virtual machine
After quantity is less than the host of predetermined threshold, and then it is that the configured virtual machine quantity of the business is less than in advance to choose on host
The host of fixed number amount be virtual machine to be allocated host, in addition to realize the preferable traffic balancing of host, can also share equally by
The business paralysis risk caused by host failure utmostly ensures the normal operation of business.The program, by choosing submodule
Block is that the configured virtual machine quantity of the business is less than predetermined quantity to choose on host according to setting predetermined quantity
Host, selection mode can be with being that the configured virtual machine quantity of the business is compared with predetermined quantity and sentenced on host
Disconnected, manner of comparison is easy, can be realized by computer.The embodiments of the present invention are for illustration only, do not represent implementation
The quality of example.
In the above embodiment of the present invention, all emphasize particularly on different fields to the description of each embodiment, do not have in some embodiment
The part of detailed description may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of division of logic function, can there is an other dividing mode in actual implementation, for example, multiple units or component can combine or
Person is desirably integrated into another system or some features can be ignored or does not perform.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
It connects, can be electrical or other forms.
The unit illustrated as separating component may or may not be physically separate, be shown as unit
The component shown may or may not be physical unit, you can be located at a place or can also be distributed to multiple
On unit.Some or all of unit therein can be selected according to the actual needs to realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also
That each unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is independent product sale or uses
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme of the present invention is substantially
The part to contribute in other words to the prior art or all or part of the technical solution can be in the form of software products
It embodies, which is stored in a storage medium, is used including some instructions so that a computer
Equipment (can be personal computer, server or network equipment etc.) perform each embodiment the method for the present invention whole or
Part steps.And aforementioned storage medium includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can to store program code
Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (10)
1. a kind of choosing method of host, which is characterized in that including:
The information of business corresponding with virtual machine to be allocated is obtained, wherein, the virtual machine to be allocated distributes place for Request System
The virtual machine of host, the information of the business are used to represent the business handled by the virtual machine to be allocated;
Obtain all hosts and the related information of business in the system;
From the corresponding host of related information to conform to a predetermined condition, the host of the virtual machine to be allocated is chosen.
2. according to the method described in claim 1, it is characterized in that, obtain being associated with for all hosts and business in the system
Information includes:
That each host and business in the system are read from tables of data is associated with quantity, wherein, the related information includes
The association quantity, the association quantity are used to represent the quantity of the virtual machine that various businesses are configured on the host.
3. according to the method described in claim 2, it is characterized in that, from the corresponding host of related information to conform to a predetermined condition
In machine, before the host for choosing the virtual machine to be allocated, the method further includes:
Judge the host and the business is associated with whether quantity is less than predetermined threshold;
If the host is associated with quantity less than predetermined threshold with the business, it is determined that the association quantity meets described pre-
Fixed condition;
If the host is associated with quantity not less than predetermined threshold with the business, it is determined that the association quantity does not meet institute
State predetermined condition.
4. according to the method described in claim 2, it is characterized in that, in the system is read from tables of data each host
With business be associated with quantity before, the method further includes:
Determine the virtual machine being configured in each host in the system;
The traffic ID handled by each virtual machine is searched using the ID of each virtual machine;
The quantity of the corresponding each traffic ID of each host is counted, obtains the incidence number of the host and each business
Amount;
The association quantity is preserved, generates the tables of data.
5. according to the method described in claim 3, it is characterized in that, the host for choosing the virtual machine to be allocated includes:
It is less than in the host of predetermined quantity from configuration quantity, chooses the host of the virtual machine to be allocated, wherein, it is described to match
Put quantity to be the quantity for being the configured virtual machine of the business in host.
6. a kind of selecting device of host, which is characterized in that including:
First acquisition module, for obtaining business information corresponding with virtual machine to be allocated, wherein, the virtual machine to be allocated is
Request System distributes the virtual machine of host, and the information of the business is used to represent the industry handled by the virtual machine to be allocated
Business;
Second acquisition module, for obtaining all hosts and the related information of business in the system;
Module is chosen, for from the corresponding host of related information to conform to a predetermined condition, choosing the virtual machine to be allocated
Host.
7. device according to claim 6, which is characterized in that the second acquisition module includes:
Read module is associated with quantity for read each host and business in the system from tables of data, wherein, it is described
Related information includes the association quantity, and the association quantity is used to represent the virtual machine that various businesses are configured on the host
Quantity.
8. device according to claim 7, which is characterized in that described device further includes:
Judgment module, for before the selection module chooses the host of the virtual machine to be allocated, judging the host
Machine is associated with whether quantity is less than predetermined threshold with the business;
First determining module, for being associated with quantity less than in the case of predetermined threshold in the host and the business, really
The fixed association quantity meets the predetermined condition;
Second determining module, for being associated with quantity not less than in the case of predetermined threshold in the host and the business,
Determine that the association quantity does not meet the predetermined condition.
9. device according to claim 7, which is characterized in that described device further includes:
Third determining module, for each host during the system is read from tables of data in the read module and business
It is associated with before quantity, determines the virtual machine being configured in each host in the system;
Searching module, for searching the traffic ID handled by each virtual machine using the ID of each virtual machine;
Statistical module, for counting the quantity of the corresponding each traffic ID of each host, obtain the host with it is each
The association quantity of a business;
Preserving module for preserving the association quantity, generates the tables of data.
10. device according to claim 8, which is characterized in that the selection module includes:
Submodule is chosen, for being less than in the host of predetermined quantity from configuration quantity, chooses the place of the virtual machine to be allocated
Host, wherein, the quantity that it is the configured virtual machine of the business in host that the configuration quantity, which is,.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611218585.XA CN108241521B (en) | 2016-12-26 | 2016-12-26 | Host machine selection method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611218585.XA CN108241521B (en) | 2016-12-26 | 2016-12-26 | Host machine selection method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108241521A true CN108241521A (en) | 2018-07-03 |
CN108241521B CN108241521B (en) | 2020-11-06 |
Family
ID=62701620
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611218585.XA Active CN108241521B (en) | 2016-12-26 | 2016-12-26 | Host machine selection method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108241521B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109460287A (en) * | 2018-11-14 | 2019-03-12 | 携程旅游信息技术(上海)有限公司 | The control method and system of resource mixed scheduling |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096606A (en) * | 2011-02-21 | 2011-06-15 | 浪潮(北京)电子信息产业有限公司 | Virtual machine migration method, device and system |
CN103701934A (en) * | 2014-01-13 | 2014-04-02 | 浪潮(北京)电子信息产业有限公司 | Resource optimal scheduling method and virtual machine host machine optimal selection method |
CN103729254A (en) * | 2013-12-31 | 2014-04-16 | 国网山东省电力公司 | Virtual server Virtual CPU resource monitoring and dynamic allocation method |
US20140282540A1 (en) * | 2013-03-13 | 2014-09-18 | Arnaud Bonnet | Performant host selection for virtualization centers |
CN104536804A (en) * | 2014-12-23 | 2015-04-22 | 西安电子科技大学 | Virtual resource dispatching system for related task requests and dispatching and distributing method for related task requests |
-
2016
- 2016-12-26 CN CN201611218585.XA patent/CN108241521B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102096606A (en) * | 2011-02-21 | 2011-06-15 | 浪潮(北京)电子信息产业有限公司 | Virtual machine migration method, device and system |
US20140282540A1 (en) * | 2013-03-13 | 2014-09-18 | Arnaud Bonnet | Performant host selection for virtualization centers |
CN103729254A (en) * | 2013-12-31 | 2014-04-16 | 国网山东省电力公司 | Virtual server Virtual CPU resource monitoring and dynamic allocation method |
CN103701934A (en) * | 2014-01-13 | 2014-04-02 | 浪潮(北京)电子信息产业有限公司 | Resource optimal scheduling method and virtual machine host machine optimal selection method |
CN104536804A (en) * | 2014-12-23 | 2015-04-22 | 西安电子科技大学 | Virtual resource dispatching system for related task requests and dispatching and distributing method for related task requests |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109460287A (en) * | 2018-11-14 | 2019-03-12 | 携程旅游信息技术(上海)有限公司 | The control method and system of resource mixed scheduling |
Also Published As
Publication number | Publication date |
---|---|
CN108241521B (en) | 2020-11-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107423613B (en) | Method and device for determining device fingerprint according to similarity and server | |
CN102110122A (en) | Method and device for establishing sample picture index table, method and device for filtering pictures and method and device for searching pictures | |
CN106844132A (en) | The fault repairing method and device of cluster server | |
CN109858919B (en) | Abnormal account number determining method and device, and online ordering method and device | |
CN107291672A (en) | The treating method and apparatus of tables of data | |
CN106301980A (en) | A kind of brush amount tool detection method and apparatus | |
CN106933914A (en) | The data processing method and device of many tables of data | |
CN105550175A (en) | Malicious account identification method and apparatus | |
CN106372977B (en) | A kind of processing method and equipment of virtual account | |
CN106407768B (en) | A kind of determination of device-fingerprint, the method and apparatus that target device is identified | |
CN106485529A (en) | The sort method of advertisement position and device | |
CN108718298A (en) | Connect flow rate testing methods and device outside a kind of malice | |
CN107483381A (en) | The monitoring method and device of interlock account | |
CN106815261A (en) | Judgement document's treating method and apparatus | |
CN108028807A (en) | Method and system for on-line automatic identification Model of network traffic | |
CN107733774A (en) | The correlating method and device of account | |
CN108153781A (en) | The method and apparatus for extracting the keyword of business scope | |
CN108241521A (en) | The choosing method and device of host | |
CN106844389A (en) | The treating method and apparatus of network resources address URL | |
CN106302236A (en) | A kind of method of data distribution and access device | |
CN108270753A (en) | The method and device of logging off users account | |
CN107172033B (en) | WAF misjudgment identification method and device | |
CN106933918A (en) | The querying method and device of tables of data | |
CN106612338A (en) | Processing method and device of equipment identification information | |
US9521164B1 (en) | Computerized system and method for detecting fraudulent or malicious enterprises |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |