CN104301404B - A kind of method and device of the adjustment operation system resource based on virtual machine - Google Patents
A kind of method and device of the adjustment operation system resource based on virtual machine Download PDFInfo
- Publication number
- CN104301404B CN104301404B CN201410515488.1A CN201410515488A CN104301404B CN 104301404 B CN104301404 B CN 104301404B CN 201410515488 A CN201410515488 A CN 201410515488A CN 104301404 B CN104301404 B CN 104301404B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- end virtual
- operation system
- performance parameter
- system resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer And Data Communications (AREA)
- Stored Programmes (AREA)
Abstract
The method and device for the adjustment operation system resource based on virtual machine that the embodiment of the invention discloses a kind of, it is related to electronic information technical field, front end virtual machine can be extenuated leads to the wasting of resources since actual loading ability is excessively high, and extenuates the problem of front end virtual machine causes business execution efficiency to decline since actual loading ability is too low.The method of the present invention includes:Detect the performance parameter of at least one front end virtual machine;According to the performance parameter of at least one front end virtual machine, the Adjusted Option for the front end virtual machine in operation system is executed, in order to which the operation system resource and the loading level of at least one front end virtual machine of distributing to the front end virtual machine in operation system match.The present invention process of service execution suitable for distributing business system resource.
Description
Technical field
The present invention relates to electronic information technical field more particularly to a kind of adjustment operation system resources based on virtual machine
Method and device.
Background technology
Currently, in order to improve the data-handling capacity of operation system, it will usually by the way that front-end server and rear number of units is arranged
According to library processes user data.Wherein, front-end server is for analyzing, calculating user data, and background data base is for storing user
Data, wherein user data at least may include:The data of user equipment upload or user equipment use are in line service
The data of generation.
In the practical application of the prior art, it often will appear the case where short time service amount sharply increases, this is just needed
Operation system has the ability of reply traffic peak, needs to add more front-end servers to meet for peak traffic
Processing, still, after the peak value past of portfolio, the portfolio in operation system can be restored to usual size again so that volume
The front-end server of outer setting cannot efficiently use, and can be chronically at idle running or idle state, actual loading ability is higher than flat
Normal loading level, leads to the wasting of resources.Such as:User by booking operation system, bought before and after festivals or holidays ticket or
The quantity of air ticket is considerably beyond quantity purchase on ordinary days, then the portfolio of booking operation system significantly increases before and after festivals or holidays
Add.
There is also the business that such as LB (Load Balancing, load balancing) technology etc. is used to optimize operation system at present
The technology of processing capacity, but be limited in the quantity of front-end server, optimize operation system anyway, still
The case where portfolio sharply increases can not be coped with, such as:The peak value of portfolio is more than the theoretical treatment energy of all front-end servers
The summation of power so that the actual loading ability of front-end server is too low to cause business execution efficiency to decline, or even pause.
Invention content
The present invention provides a kind of method and device of the adjustment operation system resource based on virtual machine, can extenuate front end void
Quasi- machine leads to the wasting of resources since actual loading ability is excessively high, and extenuates front end virtual machine and led since actual loading ability is too low
The problem of cause business execution efficiency declines.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that:
In a first aspect, the embodiment of the present invention provides a kind of method of the adjustment operation system resource based on virtual machine, institute
Method is stated for a kind of operation system, the operation system includes at least one front end virtual machine;At least one front end is empty
Quasi- machine occupies a part of operation system resource in the operation system, and for receiving and processing user equipment to the business
The data that system is sent, the operation system resource include at least required when supporting at least one front end virtual machine operation
Computing resource and storage resource, the method includes:
The performance parameter of at least one front end virtual machine is detected, the performance parameter is described at least one for reflecting
The loading level of front end virtual machine;
According to the performance parameter of at least one front end virtual machine, execute virtual for the front end in the operation system
The Adjusted Option of machine, the Adjusted Option are used to adjust the operation system for distributing to the virtual machine of the front end in operation system money
Source, in order to which the operation system resource and at least one front end of distributing to the front end virtual machine in the operation system are virtual
The loading level of machine matches.
With reference to first aspect, described according to described at least one in the first possible realization method of first aspect
The performance parameter of front end virtual machine executes the Adjusted Option for the front end virtual machine in the operation system, including:
When the performance parameter of at least one front end virtual machine is less than first threshold or is more than second threshold, needle is executed
To the Adjusted Option of the front end virtual machine in the operation system.
The possible realization method of with reference to first aspect the first, in second of possible realization method of first aspect
In, the Adjusted Option executed for the front end virtual machine in the operation system, including:
If the performance parameter of at least one front end virtual machine is less than first threshold, close what a part was currently running
Front end virtual machine, or the front end virtual machine that a part is currently running is deleted, and recycle the front end virtual machine for being closed or deleting
Operation system resource;
If the performance parameter of at least one front end virtual machine is more than second threshold, it is virtual to open pent front end
Machine, or establish the front end virtual machine of specified quantity.
The possible realization method of with reference to first aspect the first, in the third possible realization method of first aspect
In, the Adjusted Option executed for the front end virtual machine in the operation system, including:
If the performance parameter of at least one front end virtual machine is less than first threshold, it is empty to recycle the front end being currently running
A part of operation system resource of quasi- machine;
If the performance parameter of at least one front end virtual machine is more than second threshold, increases to distribute to and be currently running
The operation system resource of front end virtual machine, and using it is increased distribute to the front end virtual machine being currently running operation system provide
The specification for the front end virtual machine being currently running described in the raising of source, the specification of the front end virtual machine includes the front end virtual machine institute
The quantity and memory size of the CPU core of occupancy.
With reference to first aspect and first aspect first to the third possible realization method, the of first aspect
In four kinds of possible realization methods, the operation system further includes load balancing module, and the load balancing module is used for industry
Data distribution be engaged in at least one front end virtual machine;
After the Adjusted Option of the front end virtual machine in executing for the operation system, the method further includes:
The situation of change for obtaining the front end virtual machine quantity in the operation system, if occur increase newly front end virtual machine if
Business interface is established in the load balancing module, wherein the business interface is used for the load balancing module by business
Data distribution to the newly-increased front end virtual machine, the newly-increased front end virtual machine include:The quilt before executing the Adjusted Option
The front end virtual machine closed and be re-opened after executing the Adjusted Option, and established according to the Adjusted Option
The front end virtual machine of specified quantity;
If the front end virtual machine quantity is reduced, delete the front end virtual machine of reduction business interface, it is described to be subtracted
Few front end virtual machine includes:It is being opened before executing the Adjusted Option and is being closed after executing the Adjusted Option
Front end virtual machine, and the front end virtual machine deleted according to the Adjusted Option.
Second aspect, the embodiment of the present invention provide a kind of device of the adjustment operation system resource based on virtual machine, institute
Device is stated for a kind of operation system, the operation system includes at least one front end virtual machine;At least one front end is empty
Quasi- machine occupies a part of operation system resource in the operation system, and for receiving and processing user equipment to the business
The data that system is sent, the operation system resource include at least required when supporting at least one front end virtual machine operation
Computing resource and storage resource, described device include:
Detection unit, the performance parameter for detecting at least one front end virtual machine, the performance parameter is for anti-
Reflect the loading level of at least one front end virtual machine;
Processing unit executes for the performance parameter according at least one front end virtual machine and is directed to the business system
The Adjusted Option of front end virtual machine in system, the Adjusted Option are used to adjust the front end distributed in the operation system virtual
The operation system resource of machine, in order to distribute to the operation system resource of the front end virtual machine in the operation system with it is described extremely
The loading level of a few front end virtual machine matches.
In conjunction with second aspect, in the first possible realization method of second aspect, the processing unit, including:
First processing subelement, for the performance parameter when at least one front end virtual machine less than first threshold or greatly
When second threshold, the Adjusted Option for the front end virtual machine in the operation system is executed.
In conjunction with the first possible realization method of second aspect, in second of possible realization method of second aspect
In, the first processing subelement is specifically used for:
If the performance parameter of at least one front end virtual machine is less than first threshold, close what a part was currently running
Front end virtual machine, or the front end virtual machine that a part is currently running is deleted, and recycle the front end virtual machine for being closed or deleting
Operation system resource;
If the performance parameter of at least one front end virtual machine is more than second threshold, it is virtual to open pent front end
Machine, or establish the front end virtual machine of specified quantity.
In conjunction with the first possible realization method of second aspect, in the third possible realization method of second aspect
In, the processing unit further includes second processing subelement, and the second processing subelement is specifically used for:
If the performance parameter of at least one front end virtual machine is less than first threshold, it is empty to recycle the front end being currently running
A part of operation system resource of quasi- machine;
If the performance parameter of at least one front end virtual machine is more than second threshold, increases to distribute to and be currently running
The operation system resource of front end virtual machine, and using it is increased distribute to the front end virtual machine being currently running operation system provide
The specification for the front end virtual machine being currently running described in the raising of source, the specification of the front end virtual machine includes the front end virtual machine institute
The quantity and memory size of the CPU core of occupancy.
In conjunction with second aspect and second aspect first to the third possible realization method, the of second aspect
In four kinds of possible realization methods, the operation system further includes load balancing module, and the load balancing module is used for industry
Data distribution be engaged in at least one front end virtual machine;
Described device further includes:
Allocation unit, the situation of change for obtaining the front end virtual machine quantity in the operation system, if increasing newly
Front end virtual machine then establishes business interface in the load balancing module, wherein the business interface is used for the load
Business datum is branched to the newly-increased front end virtual machine by balance module, and the newly-increased front end virtual machine includes:Described in execution
The front end virtual machine for being closed before Adjusted Option and being re-opened after executing the Adjusted Option, and according to the tune
The front end virtual machine for the specified quantity that perfect square case is established;
If the front end virtual machine quantity is reduced, delete the front end virtual machine of reduction business interface, it is described to be subtracted
Few front end virtual machine includes:It is being opened before executing the Adjusted Option and is being closed after executing the Adjusted Option
Front end virtual machine, and the front end virtual machine deleted according to the Adjusted Option.
The method and device of a kind of adjustment operation system resource based on virtual machine provided in an embodiment of the present invention, by dividing
The performance parameter of the front end virtual machine in operation system is analysed, the business of the front end virtual machine in the operation system is distributed in adjustment
System resource, in order to which the operation system resource and at least one front end of distributing to the front end virtual machine in operation system are empty
The loading level of quasi- machine matches.It is compared to the prior art, the front end distributed in the operation system can be adjusted in real time
The operation system resource of virtual machine makes the load capacity of front end virtual machine match with current loading level.Therefore, before extenuating
End virtual machine leads to the wasting of resources since actual loading ability is excessively high, and extenuates front end virtual machine due to actual loading ability mistake
Low the problem of causing business execution efficiency to decline.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ability
For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of configuration diagram of concrete application scene provided in an embodiment of the present invention;
Fig. 1 a are a kind of flow of the method for the adjustment operation system resource based on virtual machine provided in an embodiment of the present invention
Figure;
Fig. 2 is the flow of the method for another adjustment operation system resource based on virtual machine provided in an embodiment of the present invention
Figure;
Fig. 3, Fig. 4 are a kind of tool of the method for the adjustment operation system resource based on virtual machine provided in an embodiment of the present invention
The flow chart of body realization method;
Fig. 5 is the specific of the method for another adjustment operation system resource based on virtual machine provided in an embodiment of the present invention
The flow chart of realization method;
Fig. 5 a are that a kind of method of adjustment operation system resource based on virtual machine provided in an embodiment of the present invention executes
The data interaction flow diagram specifically to link in concrete application scene;
Fig. 6 is that a kind of structure of the device of the adjustment operation system resource based on virtual machine provided in an embodiment of the present invention is shown
It is intended to;
Fig. 6 a, Fig. 6 b, Fig. 6 c are a kind of adjustment operation system resource based on virtual machine provided in an embodiment of the present invention
The structural schematic diagram of the specific implementation of device;
Fig. 7 is that a kind of structure of the equipment of the adjustment operation system resource based on virtual machine provided in an embodiment of the present invention is shown
It is intended to.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts all other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the present invention can be used for a kind of operation system, and the operation system includes at least one front end virtual machine;
At least one front end virtual machine occupies a part of operation system resource in the operation system, and for receiving and processing
The data that user equipment is sent to the operation system, the operation system resource, which includes at least, supports at least one front end
Virtual machine computing resource and storage resource required when running.Such as:One kind as shown in Figure 1 applies virtualization technology and bears
The operation system for carrying balancing technique, includes at least:Virtual platform (Virtualization Platform), management platform
(Management Platform), load balancing (Load Balancing) change platform.
Include application packet inside virtual platform, application packet be by multiple virtual robot arms at one answered for supporting
The virtual machine set run with program is used directly to support that the virtual machine that some application program is run can in the set
To be referred to as the front end virtual machine of the application program.Pass through the Network Performance Monitor in virtual platform, timing acquisition application packet
In be marked as the performance parameter of front end virtual machine, the performance parameter of acquisition is sent to the pipe of management platform by Network Performance Monitor
Module is managed, and analyzes the loading level of application program according to performance parameter by management module, further according to set resource pool
Management strategy determine the quantity of front end virtual machine for needing to increase and decrease for the loading level of front end virtual machine, and need to increase and decrease
Business interface quantity, wherein the management strategy of resource pool includes:Elastic telescopic group multiplexing parameters, resource contention detection, money
Resource reclaim and resource pool when the deficiency of source reserve the setting of resource, are increased and decreased by interface 1 by load balancing module load later
The business interface for equalizing respective numbers on platform increases and decreases respective numbers on virtual platform by virtual machine module by interface 2
Front end virtual machine, it is and increased front end virtual machine is corresponding with increased business interface, then will be answered by load balancing module
It is distributed on the front end virtual machine in virtual platform with the service request generated in program operation process, to complete load point
Send out function.
As shown in Figure 1a, the method flow of the embodiment of the present invention may include:
101, the performance parameter of at least one front end virtual machine is detected.
Wherein, the performance parameter is used to reflect the loading level of at least one front end virtual machine, the performance ginseng
Number can be the utilization rate of CPU, information exchange frequency or other specific parameters.
Such as:The Network Performance Monitor being present in virtual platform detects the utilization rate of the CPU of front end virtual machine A.If
The utilization rate of CPU is higher than preset threshold value, then illustrates that front end virtual machine A has run many programs on this time, bears
It carries larger;If the utilization rate of CPU is less than preset threshold value, illustrate that front end virtual machine A has been run very on this time
Few program, load are smaller.
Again for example:The Network Performance Monitor being present in virtual platform detects the information exchange frequency of front end virtual machine A.
If information exchange frequency is higher than preset threshold value, illustrate that front end virtual machine A has carried out multiple information on this time
Interaction, load are larger;If information exchange frequency is less than preset threshold value, illustrate front end virtual machine A on this time
Few information exchange is carried out, load is smaller.
Again for example:The Network Performance Monitor being present in virtual platform detect the CPU of front end virtual machine A utilization rate and
Information exchange frequency.If the utilization rate and information exchange frequency of CPU are all higher than preset threshold value, illustrate front end virtual machine
A has run many programs on this time, and has carried out multiple information exchange, and load is larger;If the utilization rate and letter of CPU
Breath frequency of interaction is below preset threshold value, then illustrates that front end virtual machine A has run seldom program on this time,
And few information exchange is carried out, load is smaller.
102, it according to the performance parameter of at least one front end virtual machine, executes for the front end in the operation system
The Adjusted Option of virtual machine.
Wherein, the Adjusted Option is used to adjust the operation system for distributing to the virtual machine of the front end in operation system money
Source, in order to which the operation system resource and at least one front end of distributing to the front end virtual machine in the operation system are virtual
The loading level of machine matches, such as:Adjusted Option may include:Adjust the quantity and adjustment front end virtual machine of front end virtual machine
Specification.When the performance parameter according at least one front end virtual machine, execute empty for the front end in the operation system
After the Adjusted Option of quasi- machine, front end virtual machine is made to be adapted to the loading level after Adjusted Option.
Such as:On weekdays, the portfolio of enterprises mailbox service system is in peak value, and mailbox service system can root
The quantity for increasing front end virtual machine according to self-demand extenuates front end virtual machine due to actual negative to spend the peak value of portfolio
Loading capability is too low to cause business execution efficiency to decline;In the legal festivals and holidays, the portfolio of enterprises mailbox service system is restored
To after average level, mailbox service system can reduce the quantity of front end virtual machine according to self-demand, to keep front end virtual
Machine need not be chronically at idle running or idle state, and extenuate front end virtual machine leads to the wasting of resources since actual loading ability is excessively high.
Again for example:Equal phase commuter rush hours before and after festivals or holidays, the portfolio for operation system of booking tickets are in peak value, business of booking tickets
System can be that front end virtual machine distributes more hardware resource according to self-demand, to improve business processing speed, spend
The peak value of portfolio, extenuate front end virtual machine causes business execution efficiency to decline since actual loading ability is too low;In non-passenger flow
Peak period, after the portfolio recovery for operation system of booking tickets, ticket booking operation system can be front end virtual machine point according to self-demand
With less hardware resource, lead to the wasting of resources since actual loading ability is excessively high to extenuate front end virtual machine.
The method of a kind of adjustment operation system resource based on virtual machine provided in an embodiment of the present invention, by analyzing business
The operation system money of the front end virtual machine in the operation system is distributed in the performance parameter of front end virtual machine in system, adjustment
Source, in order to the operation system resource for distributing to the front end virtual machine in operation system and at least one front end virtual machine
Loading level matches.It is compared to the prior art, the front end virtual machine distributed in the operation system can be adjusted in real time
Operation system resource, so that the load capacity of front end virtual machine is matched with current loading level.Therefore, it is virtual to extenuate front end
Machine leads to the wasting of resources since actual loading ability is excessively high, and extenuates front end virtual machine and cause since actual loading ability is too low
The problem of business execution efficiency declines.
In the present embodiment, it after the performance parameter for detecting at least one front end virtual machine, needs performance parameter
It is compared with threshold value, and executes the Adjusted Option for the front end virtual machine in the operation system.Therefore, in such as Fig. 1 a institutes
On the basis of the mode shown, step 102 can be implemented as 201-202 as shown in Figure 2:
201, judge whether the performance parameter of at least one front end virtual machine is less than first threshold or is more than the second threshold
Value.
Wherein, the first threshold and the second threshold be according to the fixed empirical value of specific business, can be from for surveying
The experience database of examination and record loading level obtains, or is set by technical staff.
If 202, the performance parameter of at least one front end virtual machine is less than first threshold or is more than second threshold, hold
Adjusted Option of the hand-manipulating of needle to the front end virtual machine in the operation system.
Wherein, if the performance parameter of at least one front end virtual machine is more than or equal to first threshold and is less than or equal to second
Threshold value is not dealt with then.
Such as:When the performance parameter of the front end virtual machine A detected is less than preset first threshold, or more than pre-
When the second threshold first set, operation system is according to the actuality stage adjustment scheme of interior forward end virtual machine A.If front end virtual machine A's
Performance parameter is less than first threshold, and loading level is smaller, then reduces the quantity of front end virtual machine A, or the hardware that distribution is less
In resource to front end virtual machine A;If the performance parameter of front end virtual machine A is more than second threshold, loading level is larger, then before increasing
The quantity of virtual machine A is held, or is distributed in more hardware resource to front end virtual machine A.
Again for example:Judge within a specified time, the rate of change of the performance parameter of at least one front end virtual machine
Whether absolute value is more than or equal to pre-determined threshold, if the rate of change of the performance parameter of at least one front end virtual machine is absolute
Value is more than or equal to pre-determined threshold, then executes the Adjusted Option for the front end virtual machine in the operation system;If it is described at least
The absolute value of the rate of change of the performance parameter of one front end virtual machine is less than pre-determined threshold, then does not deal with.
When the absolute value of the rate of change of the performance parameter of the front end virtual machine A detected is more than or equal to pre-determined threshold,
Operation system is according to the actuality stage adjustment scheme of interior forward end virtual machine A.If the rate of change of the performance parameter of front end virtual machine A is
Nonnegative value, and more than or equal to pre-determined threshold when or front end virtual machine A performance parameter rate of change be negative value and less than etc.
When the negative value of pre-determined threshold, load rapidly increases, then increases the quantity of front end virtual machine A, or the hardware money that distribution is more
In source to front end virtual machine A;If the rate of change of the performance parameter of front end virtual machine A is nonnegative value, and is less than or equal to pre- gating
When in limited time or the rate of change of the performance parameter of front end virtual machine A is negative value and is more than or equal to the negative value of pre-determined threshold, load
It rapidly reduces, then reduces the quantity of front end virtual machine A, or distribute in less hardware resource to front end virtual machine A.
A kind of method of adjustment operation system resource based on virtual machine provided in an embodiment of the present invention, at least according to judgement
Whether the performance parameter of one front end virtual machine is less than first threshold or is more than second threshold, executes before being directed in operation system
The Adjusted Option of virtual machine, adjustment is held to distribute to the operation system resource of the front end virtual machine in the operation system, in order to
Distribute to the loading level of the operation system resource and at least one front end virtual machine of the front end virtual machine in operation system
Match.It is compared to the prior art, performance parameter that can be according at least one front end virtual machine and first threshold and second
The magnitude relationship of threshold value adjusts the quantity and specification of front end virtual machine in real time, make the load capacity of front end virtual machine with it is current
Loading level matches.
By judging the magnitude relationship of the performance parameter and first threshold and second threshold of at least one front end virtual machine, hold
Adjusted Option of the hand-manipulating of needle to the front end virtual machine in operation system.Therefore, front end virtual machine is extenuated due to actual loading ability mistake
Height leads to the wasting of resources, and extenuate front end virtual machine cause since actual loading ability is too low business execution efficiency decline ask
Topic.
In the present embodiment, it after the performance parameter for detecting at least one front end virtual machine, needs performance parameter
It is compared with threshold value, the front end virtual machine being currently running by closing a part, and recycles pent front end virtual machine
Operation system resource alternatively, deleting the front end virtual machine that a part is currently running, and recycles the industry of deleted front end virtual machine
Business system resource;And pent front end virtual machine is opened, alternatively, the front end virtual machine of specified quantity is established, to execute
For the Adjusted Option of the front end virtual machine in the operation system.Therefore, on the basis of mode as shown in Figure 2, step
201-202 can be implemented as 301-306 as shown in Figure 3:
301, judge whether the performance parameter of at least one front end virtual machine is less than first threshold.
If 302, the performance parameter of at least one front end virtual machine is less than first threshold, closes a part and transporting
Capable front end virtual machine, and recycle the operation system resource of pent front end virtual machine.
Alternatively,
303, the front end virtual machine that a part is currently running is deleted, and recycles the operation system of deleted front end virtual machine
Resource.
Such as:When the performance parameter of the front end virtual machine A detected is less than first threshold, before operation system is according to inside
The present situation for holding virtual machine A, is adjusted the front end virtual machine inside operation system.Close the front end virtual machine B being currently running
With front end virtual machine C, or delete the front end virtual machine B that is currently running and front end virtual machine C, and recycle front end virtual machine B and
The operation system resource that front end virtual machine C is occupied.
Again for example:It is described default to judge whether the rate of change of the performance parameter within the specified time is less than or equal to
The negative value of thresholding, if the rate of change of the performance parameter is less than or equal to the negative of the pre-determined threshold within the specified time
Value then closes the front end virtual machine that a part is currently running, and recycles the operation system resource of pent front end virtual machine, or
Person deletes the front end virtual machine that a part is currently running, and recycles the operation system resource of deleted front end virtual machine.
When detecting that the rate of change of within a specified time performance parameter is less than or equal to the negative value of pre-determined threshold, business system
System is adjusted the front end virtual machine inside operation system according to the present situation of interior forward end virtual machine A.What closing was currently running
Front end virtual machine B and front end virtual machine C, or the front end virtual machine B being currently running and front end virtual machine C is deleted, and before recycling
The operation system resource that end virtual machine B and front end virtual machine C is occupied.
304, judge whether the performance parameter of at least one front end virtual machine is more than second threshold.
If 305, the performance parameter of at least one front end virtual machine is more than second threshold, pent front end is opened
Virtual machine.
Alternatively,
306, the front end virtual machine of specified quantity is established.
Such as:When the performance parameter of the front end virtual machine A detected is more than second threshold, before operation system is according to inside
The present situation for holding virtual machine A, is adjusted the front end virtual machine inside operation system.Open pent front end virtual machine B and
Front end virtual machine C, or establish the front end virtual machine of specified quantity.
Again for example:It is described default to judge whether the rate of change of the performance parameter within the specified time is less than or equal to
The negative value of thresholding is opened if the rate of change of the performance parameter is more than or equal to the pre-determined threshold within the specified time
Pent front end virtual machine is opened, alternatively, establishing the front end virtual machine of specified quantity.
When detecting that the rate of change of within a specified time performance parameter is less than or equal to the negative value of pre-determined threshold, business system
System is adjusted the front end virtual machine inside operation system according to the present situation of interior forward end virtual machine A.Open it is pent before
Virtual machine B and front end virtual machine C is held, or establishes the front end virtual machine of specified quantity.
It should be noted that 304-306 can be first carried out in figure 3,301-303 is executed afterwards.
A kind of method of adjustment operation system resource based on virtual machine provided in an embodiment of the present invention, at least according to judgement
Whether the performance parameter of one front end virtual machine is less than first threshold or is more than second threshold, executes before being directed in operation system
The Adjusted Option of virtual machine is held, the performance parameter of the front end virtual machine in operation system is analyzed, increase or reduces front end is virtual
The quantity of machine, the operation system resource of the front end virtual machine in the operation system is distributed in adjustment, in order to distribute to business
The operation system resource of front end virtual machine in system and the loading level of at least one front end virtual machine match.It compares
Compared with the prior art, can be closed with first threshold and the size of second threshold according to the performance parameter of at least one front end virtual machine
System adjusts the quantity of front end virtual machine, the load capacity of front end virtual machine is made to match with current loading level in real time.
By judging the magnitude relationship of the performance parameter and first threshold and second threshold of at least one front end virtual machine, close
The front end virtual machine that a part is currently running is closed, and recycles the operation system resource of pent front end virtual machine, alternatively, deleting
The front end virtual machine that a part is currently running, and recycle the operation system resource of deleted front end virtual machine;And open quilt
The front end virtual machine of closing, alternatively, the front end virtual machine of specified quantity is established, it is empty for the front end in operation system to execute
The Adjusted Option of quasi- machine.Therefore, extenuate front end virtual machine leads to the wasting of resources since actual loading ability is excessively high, and before extenuating
The problem of end virtual machine causes business execution efficiency to decline since actual loading ability is too low.
In the present embodiment, it after the performance parameter for detecting at least one front end virtual machine, needs performance parameter
It is compared with threshold value, and executes the Adjusted Option for the front end virtual machine in the operation system.Therefore, in such as Fig. 2 institutes
On the basis of the mode shown, step 201-202 can be implemented as 401-404 as shown in Figure 4:
401, judge whether the performance parameter of at least one front end virtual machine is less than first threshold.
If 402, the performance parameter of at least one front end virtual machine is less than first threshold, before recycling is currently running
Hold a part of operation system resource of virtual machine.
Such as:When the performance parameter of the front end virtual machine A detected is less than first threshold, before operation system is according to inside
The present situation for holding virtual machine A, is adjusted the front end virtual machine inside operation system, recycles the front end virtual machine B being currently running
With a part of operation system resource of front end virtual machine C.
Again for example:It is described default to judge whether the rate of change of the performance parameter within the specified time is less than or equal to
The negative value of thresholding, if the rate of change of the performance parameter is less than or equal to the negative of the pre-determined threshold within the specified time
Value, then recycle a part of operation system resource for the front end virtual machine being currently running.
When detecting that the rate of change of within a specified time performance parameter is less than or equal to the negative value of pre-determined threshold, business system
System is adjusted the front end virtual machine inside operation system according to the present situation of interior forward end virtual machine A, recycles and is currently running
A part of operation system resource of front end virtual machine B and front end virtual machine C.
403, judge whether the performance parameter of at least one front end virtual machine is more than second threshold.
If 404, the performance parameter of at least one front end virtual machine is more than second threshold, before increase is currently running
Hold the operation system resource of virtual machine.
Such as:When the performance parameter of the front end virtual machine A detected is more than second threshold, before operation system is according to inside
The present situation for holding virtual machine A, is adjusted the front end virtual machine inside operation system, increases the front end virtual machine B being currently running
With the operation system resource of front end virtual machine C.
Again for example:It is described default to judge whether the rate of change of the performance parameter within the specified time is less than or equal to
The negative value of thresholding increases just if the rate of change of the performance parameter is more than the pre-determined threshold within the specified time
In the operation system resource of the front end virtual machine of operation.
When detecting that the rate of change of within a specified time performance parameter is less than or equal to the negative value of pre-determined threshold, business system
System is adjusted the front end virtual machine inside operation system according to the present situation of interior forward end virtual machine A, increases and is currently running
The operation system resource of front end virtual machine B and front end virtual machine C.
It should be noted that 403-404 can be first carried out in Fig. 4,401-402 is executed afterwards.
A kind of method of adjustment operation system resource based on virtual machine provided in an embodiment of the present invention, at least according to judgement
Whether the performance parameter of one front end virtual machine is less than first threshold or is more than second threshold, executes before being directed in operation system
The Adjusted Option of virtual machine is held, the performance parameter of the front end virtual machine in operation system is analyzed, increase or reduces front end is virtual
The operation system resource of the front end virtual machine in the operation system is distributed in the quantity and/or specification of machine, adjustment, in order to divide
The loading level phase of the operation system resource of front end virtual machine in dispensing operation system and at least one front end virtual machine
Matching.It is compared to the prior art, it can be according to the performance parameter and first threshold and the second threshold of at least one front end virtual machine
The magnitude relationship of value adjusts the quantity and/or specification of front end virtual machine in real time, make the load capacity of front end virtual machine with it is current
Loading level matches.
By judging the magnitude relationship of the performance parameter and first threshold and second threshold of at least one front end virtual machine, return
Receive a part of operation system resource for the front end virtual machine being currently running;And increase the business for the front end virtual machine being currently running
System resource, to execute the Adjusted Option for the front end virtual machine in operation system.Therefore, extenuate front end virtual machine due to
Actual loading ability is excessively high to lead to the wasting of resources, and extenuate front end virtual machine causes business to be held since actual loading ability is too low
The problem of line efficiency declines.
In the present embodiment, the operation system further includes load balancing module, and the load balancing module is used for industry
Data distribution be engaged in at least one front end virtual machine;Such as:The property of front end virtual machine A in detecting ticket booking operation system
Energy parameter, and according to the performance parameter of front end virtual machine A, execute the adjustment side for the front end virtual machine in ticket booking operation system
After case, existing business load is averagely distributed on each front end virtual machine being currently running.
It, can also be according to operation system after the Adjusted Option of the front end virtual machine in executing for the operation system
In front end virtual machine quantity situation of change, establish or delete business interface.Therefore, in such as Fig. 1 a- implementations shown in Fig. 4
Can also include 501-503 as shown in Figure 5 on the basis of mode:
501, the situation of change of the front end virtual machine quantity in the operation system is obtained.
502, if occurring increasing front end virtual machine newly business interface is established in the load balancing module.
Wherein, the business interface is used for the load balancing module that business datum branched to the newly-increased front end is empty
Quasi- machine, the newly-increased front end virtual machine include:It is closed before executing the Adjusted Option and is executing the Adjusted Option
The front end virtual machine being re-opened later, and the front end virtual machine of specified quantity established according to the Adjusted Option.
Such as:In operation system, after executing Adjusted Option, reopen pent before executing Adjusted Option
Front end virtual machine A, the quantity that the front end virtual machine in operation system is got by 501 increase, then management module is equal to load
Weighing apparatus module sends the instruction for establishing business interface, is established in load balancing platform, is used for load balancing module by business number
According to the business interface A branched to corresponding to newly-increased front end virtual machine A.
Again for example:In operation system, after executing Adjusted Option, reopens and be closed before executing Adjusted Option
Front end virtual machine A, and according to the front end virtual machine B that Adjusted Option is established, the front end in operation system is got by 501
The quantity of virtual machine increases, then management module sends the instruction for establishing business interface to load balancing module, in load balancing
It is established in platform, business datum is branched into the business interface A corresponding to newly-increased front end virtual machine A for load balancing module,
And business datum is branched to business interface B corresponding to newly-increased front end virtual machine B for load balancing module.
If 503, the front end virtual machine quantity is reduced, delete the front end virtual machine of reduction business interface.
Wherein, the front end virtual machine of described the reduction includes:It is opened and is being executed before executing the Adjusted Option
Pent front end virtual machine after the Adjusted Option, and the front end virtual machine deleted according to the Adjusted Option.
Such as:In operation system, after executing Adjusted Option, the front end opened before executing Adjusted Option is closed
Virtual machine A, the quantity that the front end virtual machine in operation system is got by 501 are reduced, then management module is to load balancing mould
Block sends the instruction for deleting business interface, is deleted in load balancing platform, divides business datum for load balancing module
It flow to the business interface A corresponding to reduced front end virtual machine A.
Again for example:In operation system, after executing Adjusted Option, close before being opened before executing Adjusted Option
Virtual machine A is held, and the front end virtual machine B deleted according to Adjusted Option, the front end got by 501 in operation system are virtual
The quantity of machine is reduced, then management module sends the instruction for deleting business interface to load balancing module, in load balancing platform
Business datum is branched to the business interface A corresponding to reduced front end virtual machine A for load balancing module by middle deletion, with
And business datum is branched to business interface B corresponding to reduced front end virtual machine B for load balancing module.
It should be noted that after executing 501 in Figure 5,502 or 503 can be executed.
The present invention can apply in ticket booking operation system, and the mailbox service system of enterprises is first-class.In concrete application
The data interaction flow specifically to link in scene is as shown in Figure 5 a:
By the management module in management platform, before each in the virtual machine set periodically acquired according to Network Performance Monitor
The performance parameter of virtual machine is held, the comparison of the analysis result and elastic telescopic condition of application program loading level is carried out, judges
It needs to carry out elastic telescopic;
Management module notification payload balance module in management platform creates/deletes business interface or unlatching/closing business
Interface, and virtual machine module is notified to create/delete front end virtual machine or unlatching/closing front end virtual machine;
Load balancing module notification payload equalization platform in management platform creates/deletes business interface or unlatching/pass
Business interface is closed, and the virtual machine module notice virtual platform in management platform creates/delete front end virtual machine, or open/
Close front end virtual machine;
Load balancing platform creates/deletes business interface or unlatching/closing business interface, negative into management platform
The operating result that balance module returns to business interface is carried, and virtual platform creates/delete front end virtual machine or unlatching/closing
Front end virtual machine, the virtual machine module into management platform return to virtualization operations result.Wherein, the operating result of business interface
At least it is used to indicate that load balancing platform is created/deleted or the business interface of unlatching/closing and each business interface divide
Not corresponding front end virtual machine;Virtualization operations result is at least used to indicate that virtual platform is created/deleted or unlatching/closing
Front end virtual machine and the corresponding business interface of each front end virtual machine;
Load balancing module in management platform and virtual machine module, by business interface operating result and virtualization operations knot
Fruit returns to the management module in management platform, to complete elastic telescopic.
A kind of method of adjustment operation system resource based on virtual machine provided in an embodiment of the present invention, passes through management module
The case where according to front end virtual machine after adjustment, business interface quantity and business in real time modifying load balancing module connect
The correspondence of mouth and front end virtual machine, to the management strategy of link load-balancing mechanism and front end virtual machine, i.e., in business
Management module is arranged in system, and is correspondingly adjusted in load balancing module by the increase and decrease of management module foundation front end virtual machine
Business interface quantity so that business interface quantity in load balancing module and the front end run in current business system are virtual
Machine quantity matches, and is especially that newly-increased front end virtual machine establishes new business interface in load balancing module so that load
Balance module can branch to business datum in newly-increased front end virtual machine.
Business datum is shunted for front-end server by load balancing module in existing operation system, since front end takes
Business device is often all preset, and the distributing strategy of the front-end server preset is also only preserved in load balancing module, is being divided
The business interface for the front-end server preset is had recorded in Flow Policy, load balancing module is according to the shunting plan preserved
Business datum is slightly shunted to the front-end server preset by business interface, when the quantity of front-end server changes,
It needs operation maintenance personnel to manually adjust the distributing strategy of load balancing module, or works out new shunting plan for load balancing module
Slightly.
It is compared to the prior art, the quantity and specification of front end virtual machine can be adjusted in real time, and by establishing or deleting
Except business interface keeps front end virtual to averagely be distributed to business load on each front end virtual machine being currently running
The load capacity of machine matches with current loading level.Therefore, front end virtual machine is extenuated to lead since actual loading ability is excessively high
The wasting of resources is caused, and extenuates the problem of front end virtual machine causes business execution efficiency to decline since actual loading ability is too low.
The embodiment of the present invention also provides a kind of device 60 of the adjustment operation system resource based on virtual machine, described device 60
For a kind of operation system, the operation system includes at least one front end virtual machine;At least one front end virtual machine accounts for
It is sent out to the operation system with a part of operation system resource in the operation system, and for receiving and processing user equipment
The data sent, the operation system resource include at least calculating money required when supporting at least one front end virtual machine operation
Source and storage resource, as shown in fig. 6, described device 60 includes:
Detection unit 61, the performance parameter for detecting at least one front end virtual machine, the performance parameter are used for
Reflect the loading level of at least one front end virtual machine.
Processing unit 62 executes for the performance parameter according at least one front end virtual machine and is directed to the business
The Adjusted Option of front end virtual machine in system, it is empty that the Adjusted Option is used to adjust the front end distributed in the operation system
The operation system resource of quasi- machine, in order to distribute to the operation system resource of the front end virtual machine in the operation system with it is described
The loading level of at least one front end virtual machine matches.
Further, as shown in Figure 6 a, the processing unit 62 may include:
First processing subelement 621 is less than first threshold for the performance parameter when at least one front end virtual machine
Or when more than second threshold, the Adjusted Option for the front end virtual machine in the operation system is executed;
Alternatively,
For within a specified time, if the absolute value of the rate of change of the performance parameter of at least one front end virtual machine
More than or equal to pre-determined threshold, then the Adjusted Option for the front end virtual machine in the operation system is executed.
Further, the first processing subelement 621 is specifically used for:
If the performance parameter of at least one front end virtual machine is described less than first threshold, or within the specified time
The rate of change of performance parameter is less than or equal to the negative value of the pre-determined threshold, then it is virtual to close the front end that a part is currently running
Machine, or the front end virtual machine that a part is currently running is deleted, and recycle the operation system for the front end virtual machine for being closed or deleting
Resource;
If the performance parameter of at least one front end virtual machine is described more than second threshold, or within the specified time
The rate of change of performance parameter is more than or equal to the pre-determined threshold, then opens pent front end virtual machine, or establishes specified number
The front end virtual machine of amount.
Further, as shown in Figure 6 b, the processing unit 62 further includes second processing subelement 622, at described second
Reason subelement 622 is specifically used for:
If the performance parameter of at least one front end virtual machine is described less than first threshold, or within the specified time
The rate of change of performance parameter is less than or equal to the negative value of the pre-determined threshold, then recycle the front end virtual machine being currently running one
Separate service system resource;
If the performance parameter of at least one front end virtual machine is described more than second threshold, or within the specified time
The rate of change of performance parameter is more than or equal to the pre-determined threshold, then increases the business for distributing to the front end virtual machine being currently running
System resource, and using it is increased distribute to the front end virtual machine being currently running operation system resource improve described in transporting
The specification of capable front end virtual machine, the specification of the front end virtual machine include the number of the occupied CPU core of front end virtual machine
Amount and memory size.
Further, as fig. 6 c, described device 60 can also include:
Allocation unit 63, the situation of change for obtaining the front end virtual machine quantity in the operation system, if occurring new
Increase front end virtual machine and then establish business interface in the load balancing module, wherein the business interface is used for described negative
It carries balance module and business datum is branched into the newly-increased front end virtual machine, the newly-increased front end virtual machine includes:Executing institute
The front end virtual machine for being closed before stating Adjusted Option and being re-opened after executing the Adjusted Option, and according to described
The front end virtual machine for the specified quantity that Adjusted Option is established;
If the front end virtual machine quantity is reduced, delete the front end virtual machine of reduction business interface, it is described to be subtracted
Few front end virtual machine includes:It is being opened before executing the Adjusted Option and is being closed after executing the Adjusted Option
Front end virtual machine, and the front end virtual machine deleted according to the Adjusted Option.
The device of a kind of adjustment operation system resource based on virtual machine provided in an embodiment of the present invention, by analyzing business
The operation system money of the front end virtual machine in the operation system is distributed in the performance parameter of front end virtual machine in system, adjustment
Source, in order to the operation system resource for distributing to the front end virtual machine in operation system and at least one front end virtual machine
Loading level matches.It is compared to the prior art, the front end virtual machine distributed in the operation system can be adjusted in real time
Operation system resource, so that the load capacity of front end virtual machine is matched with current loading level.Therefore, it is virtual to extenuate front end
Machine leads to the wasting of resources since actual loading ability is excessively high, and extenuates front end virtual machine and cause since actual loading ability is too low
The problem of business execution efficiency declines.
The equipment 70 for the adjustment operation system resource based on virtual machine that an embodiment of the present invention provides a kind of, as shown in fig. 7,
It includes at least:Processor 701, network interface 702, memory 703 and communication bus 704;The communication bus 704 for realizing
Connection communication between the processor 701, the network interface 702 and the memory 703;The memory 703, is used for
Store the equipment 70 of the monitoring network load involved data in the process of running;Optionally, also include user interface
705, including display, keyboard or pointing device are (for example, mouse, trace ball (trackball), touch-sensitive plate or sense of touch are aobvious
Display screen).Memory 703 may include high-speed RAM memory, it is also possible to further include non-labile memory (non-
Volatile memory), a for example, at least magnetic disk storage.Memory 703 can include optionally at least one is located at far
Storage device from aforementioned processor 701;Wherein, it can be transported in the equipment 70 of the adjustment operation system resource based on virtual machine
Row has at least one front end virtual machine, at least one front end virtual machine to occupy a part of business system in the operation system
System resource, and for receiving and processing the data that user equipment is sent to the operation system, the operation system resource is at least
Required computing resource and storage resource when including supporting at least one front end virtual machine operation.
In some embodiments, memory 703 stores following element, executable modules or data structures, or
Their subset of person or their superset:
Wherein operating system 7031, including various businesses system program, for realizing various basic businesses and processing base
In the task of hardware;Application program 7032, including various application programs, for realizing various applied business.
Specifically, the processor 701, the performance parameter for detecting at least one front end virtual machine, the property
It can loading level of the parameter for reflecting at least one front end virtual machine.
The processor 701 is additionally operable to the performance parameter according at least one front end virtual machine, executes for described
The Adjusted Option of front end virtual machine in operation system, before the Adjusted Option is distributed to for adjustment in the operation system
The operation system resource for holding virtual machine, in order to distribute to the operation system resource of the front end virtual machine in the operation system with
The loading level of at least one front end virtual machine matches.
Wherein, the processor 701, is specifically used for:
When the performance parameter of at least one front end virtual machine is less than first threshold or is more than second threshold, needle is executed
To the Adjusted Option of the front end virtual machine in the operation system;
Alternatively, within a specified time, if the rate of change of the performance parameter of at least one front end virtual machine is absolute
Value is more than or equal to pre-determined threshold, then executes the Adjusted Option for the front end virtual machine in the operation system.
Wherein, the processor 701, is additionally operable to:
If the performance parameter of at least one front end virtual machine is described less than first threshold, or within the specified time
The rate of change of performance parameter is less than or equal to the negative value of the pre-determined threshold, then it is virtual to close the front end that a part is currently running
Machine, or the front end virtual machine that a part is currently running is deleted, and recycle the operation system for the front end virtual machine for being closed or deleting
Resource;
If the performance parameter of at least one front end virtual machine is described more than second threshold, or within the specified time
The rate of change of performance parameter is more than or equal to the pre-determined threshold, then opens pent front end virtual machine, or establishes specified number
The front end virtual machine of amount.
Wherein, the processor 701, is additionally operable to:
If the performance parameter of at least one front end virtual machine is described less than first threshold, or within the specified time
The rate of change of performance parameter is less than or equal to the negative value of the pre-determined threshold, then recycle the front end virtual machine being currently running one
Separate service system resource;
If the performance parameter of at least one front end virtual machine is described more than second threshold, or within the specified time
The rate of change of performance parameter is more than or equal to the pre-determined threshold, then increases the business for distributing to the front end virtual machine being currently running
System resource, and using it is increased distribute to the front end virtual machine being currently running operation system resource improve described in transporting
The specification of capable front end virtual machine, the specification of the front end virtual machine include the number of the occupied CPU core of front end virtual machine
Amount and memory size.
Wherein, the processor 701, is additionally operable to:
The situation of change for obtaining the front end virtual machine quantity in the operation system, if occur increase newly front end virtual machine if
Business interface is established in the load balancing module, wherein the business interface is used for the load balancing module by business
Data distribution to the newly-increased front end virtual machine, the newly-increased front end virtual machine include:The quilt before executing the Adjusted Option
The front end virtual machine closed and be re-opened after executing the Adjusted Option, and established according to the Adjusted Option
The front end virtual machine of specified quantity;
If the front end virtual machine quantity is reduced, delete the front end virtual machine of reduction business interface, it is described to be subtracted
Few front end virtual machine includes:It is being opened before executing the Adjusted Option and is being closed after executing the Adjusted Option
Front end virtual machine, and the front end virtual machine deleted according to the Adjusted Option.
The equipment of a kind of adjustment operation system resource based on virtual machine provided in an embodiment of the present invention, by analyzing business
The operation system money of the front end virtual machine in the operation system is distributed in the performance parameter of front end virtual machine in system, adjustment
Source, in order to the operation system resource for distributing to the front end virtual machine in operation system and at least one front end virtual machine
Loading level matches.It is compared to the prior art, it is empty that the front end that adjustment is distributed in the operation system can be adjusted in real time
The operation system resource of quasi- machine, makes the load capacity of front end virtual machine match with current loading level.Therefore, front end is extenuated
Virtual machine leads to the wasting of resources since actual loading ability is excessively high, and extenuates front end virtual machine since actual loading ability is too low
The problem of causing business execution efficiency to decline.
Each embodiment in this specification is described in a progressive manner, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for equipment reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium
In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any
Those familiar with the art in the technical scope disclosed by the present invention, all answer by the change or replacement that can be readily occurred in
It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.
Claims (8)
1. a kind of method of the adjustment operation system resource based on virtual machine, which is characterized in that the method is used for a kind of business
System, the operation system include at least one front end virtual machine;At least one front end virtual machine occupies the business system
A part of operation system resource in system, and for receiving and processing the data that user equipment is sent to the operation system, institute
Operation system resource is stated including at least computing resource required when at least one front end virtual machine being supported to run and storage money
Source, the method includes:
The performance parameter of at least one front end virtual machine is detected, the performance parameter is for reflecting at least one front end
The loading level of virtual machine;
If the absolute value of at least one front end virtual machine within a specified time rate of change of performance parameter is more than or equal to pre-
Gating limits, then executes the Adjusted Option at least one front end virtual machine in the operation system, the adjustment side
Case is used to adjust the specification of at least one front end virtual machine, the specification of at least one front end virtual machine with it is described at least
The loading level of one front end virtual machine matches.
2. the method for the adjustment operation system resource according to claim 1 based on virtual machine, which is characterized in that described to hold
The hand-manipulating of needle includes to the Adjusted Option of at least one front end virtual machine in the operation system:
If at least one front end virtual machine within a specified time performance parameter variations rate absolute value be less than first threshold,
The front end virtual machine that the part then closed at least one front end virtual machine is currently running, or delete described at least one
The front end virtual machine that a part in the virtual machine of front end is currently running, and recycle the business for the front end virtual machine for being closed or deleting
System resource;
If at least one front end virtual machine within a specified time performance parameter variations rate absolute value be more than second threshold,
Then open the pent front end virtual machine at least one front end virtual machine.
3. the method for the adjustment operation system resource according to claim 1 based on virtual machine, which is characterized in that described to hold
The hand-manipulating of needle includes to the Adjusted Option of at least one of described operation system front end virtual machine:
If at least one front end virtual machine within a specified time performance parameter variations rate absolute value be less than first threshold,
Then recycle a part of operation system resource at least one front end virtual machine being currently running;
If at least one front end virtual machine within a specified time performance parameter variations rate absolute value be more than second threshold,
Then increase the operation system resource for distributing at least one front end virtual machine being currently running, and utilizes the increased distribution of institute
At least one described in being currently running described in operation system resource raising at least one front end virtual machine being currently running
The specification of the specification of a front end virtual machine, at least one front end virtual machine includes the occupied CPU of front end virtual machine
The quantity and memory size of core.
4. the method for the adjustment operation system resource according to any one of claims 1-3 based on virtual machine,
It is characterized in that, the operation system further includes load balancing module, and the load balancing module is for branching to business datum
At least one front end virtual machine;
After the Adjusted Option of at least one front end virtual machine in executing for the operation system, the method is also
Including:
The situation of change for obtaining the front end virtual machine quantity in the operation system, described if occurring increasing front end virtual machine newly
Business interface is established in load balancing module, wherein the business interface is used for the load balancing module by business datum
The newly-increased front end virtual machine is branched to, the newly-increased front end virtual machine includes:It is closed before executing the Adjusted Option
And a part of front end at least one front end virtual machine being re-opened after executing the Adjusted Option is virtual
Machine;
If at least one front end virtual machine quantity is reduced, delete the front end virtual machine of reduction business interface, it is described
The front end virtual machine of reduction include:Is being opened before executing the Adjusted Option and the quilt after the execution Adjusted Option
A part of front end virtual machine at least one front end virtual machine closed, and the institute deleted according to the Adjusted Option
State a part of front end virtual machine at least one front end virtual machine.
5. a kind of device of the adjustment operation system resource based on virtual machine, which is characterized in that described device is used for a kind of business
System, the operation system include at least one front end virtual machine;At least one front end virtual machine occupies the business system
A part of operation system resource in system, and for receiving and processing the data that user equipment is sent to the operation system, institute
Operation system resource is stated including at least computing resource required when at least one front end virtual machine being supported to run and storage money
Source, described device include:
Detection unit, the performance parameter for detecting at least one front end virtual machine, the performance parameter is for reflecting institute
State the loading level of at least one front end virtual machine;
Processing unit, if for the absolute of at least one front end virtual machine within a specified time rate of change of performance parameter
Value is more than or equal to pre-determined threshold, then executes the adjustment side at least one front end virtual machine in the operation system
Case, the Adjusted Option are used to adjust the specification of at least one front end virtual machine, at least one front end virtual machine
Specification and the loading level of at least one front end virtual machine match.
6. the device of the adjustment operation system resource according to claim 5 based on virtual machine, which is characterized in that the place
It includes the first processing subelement to manage unit, and the first processing subelement is specifically used for:
If at least one front end virtual machine within a specified time performance parameter variations rate absolute value be less than first threshold,
The front end virtual machine that the part then closed at least one front end virtual machine is currently running, or delete described at least one
The front end virtual machine that a part in the virtual machine of front end is currently running, and recycle the business for the front end virtual machine for being closed or deleting
System resource;
If at least one front end virtual machine within a specified time performance parameter variations rate absolute value be more than second threshold,
Then open the pent front end virtual machine at least one front end virtual machine.
7. the device of the adjustment operation system resource according to claim 5 based on virtual machine, which is characterized in that the place
It further includes second processing subelement to manage unit, and the second processing subelement is specifically used for:
If at least one front end virtual machine within a specified time performance parameter variations rate absolute value be less than first threshold,
Then recycle a part of operation system resource at least one front end virtual machine being currently running;
If at least one front end virtual machine within a specified time performance parameter variations rate absolute value be more than second threshold,
Then increase the operation system resource for distributing at least one front end virtual machine being currently running, and utilizes the increased distribution of institute
The front end virtual machine being currently running described in operation system resource raising at least one front end virtual machine being currently running
Specification, the specification of the front end virtual machine includes the quantity and memory size of the occupied CPU core of front end virtual machine.
8. the device of the adjustment operation system resource based on virtual machine according to any one in claim 5-7,
It is characterized in that, the operation system further includes load balancing module, and the load balancing module is for branching to business datum
At least one front end virtual machine;
Described device further includes:
Allocation unit, the situation of change for obtaining the front end virtual machine quantity in the operation system, if occurring increasing front end newly
Virtual machine then establishes business interface in the load balancing module, wherein the business interface is used for the load balancing
Business datum is branched to the newly-increased front end virtual machine by module, and the newly-increased front end virtual machine includes:Executing the adjustment
It is closed before scheme and at least one front end virtual machine being re-opened after executing the Adjusted Option
A part of front end virtual machine;
If at least one front end virtual machine quantity is reduced, delete the front end virtual machine of reduction business interface, it is described
The front end virtual machine of reduction include:Is being opened before executing the Adjusted Option and the quilt after the execution Adjusted Option
A part of front end virtual machine at least one front end virtual machine closed, and the institute deleted according to the Adjusted Option
State a part of front end virtual machine at least one front end virtual machine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410515488.1A CN104301404B (en) | 2014-09-29 | 2014-09-29 | A kind of method and device of the adjustment operation system resource based on virtual machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410515488.1A CN104301404B (en) | 2014-09-29 | 2014-09-29 | A kind of method and device of the adjustment operation system resource based on virtual machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104301404A CN104301404A (en) | 2015-01-21 |
CN104301404B true CN104301404B (en) | 2018-08-17 |
Family
ID=52320967
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410515488.1A Active CN104301404B (en) | 2014-09-29 | 2014-09-29 | A kind of method and device of the adjustment operation system resource based on virtual machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104301404B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106161068B (en) * | 2015-04-15 | 2020-10-16 | 华为技术有限公司 | Recovery prompting and distributing method for network resources and controller |
CN105553721A (en) * | 2015-12-15 | 2016-05-04 | 浪潮电子信息产业股份有限公司 | Cloud application stretching method, application management side and system |
CN106953776A (en) * | 2016-01-07 | 2017-07-14 | 中兴通讯股份有限公司 | Performance threshold monitor processing method and device |
CN106997310A (en) * | 2016-01-26 | 2017-08-01 | 杭州华为数字技术有限公司 | The apparatus and method of load balancing |
CN105843688A (en) * | 2016-04-05 | 2016-08-10 | 浪潮电子信息产业股份有限公司 | Integrating method and device for enterprise portal system |
CN106201722A (en) * | 2016-07-12 | 2016-12-07 | 乐视控股(北京)有限公司 | The load regulation method of server and system |
CN108306908A (en) * | 2016-12-24 | 2018-07-20 | 深圳壹账通智能科技有限公司 | Management optimization method and device based on Docker |
CN108733450A (en) * | 2017-04-20 | 2018-11-02 | 中兴通讯股份有限公司 | Empty machine specification method of adjustment and device |
CN109032751B (en) | 2017-06-12 | 2022-02-11 | 华为技术有限公司 | Virtual machine deployment method and OMM virtual machine |
CN109960579B (en) * | 2017-12-22 | 2021-08-24 | 航天信息股份有限公司 | Method and device for adjusting service container |
CN108762928B (en) * | 2018-05-29 | 2022-03-22 | 郑州云海信息技术有限公司 | Processing method and system for elastic scaling service during execution operation |
CN109254832A (en) * | 2018-09-11 | 2019-01-22 | 郑州云海信息技术有限公司 | A kind of virtual machine starting method, apparatus, storage medium and computer equipment matter |
CN111221641A (en) * | 2020-01-15 | 2020-06-02 | 广州虎牙科技有限公司 | Task regulation and control method, system, storage medium and electronic equipment |
CN112395045A (en) * | 2020-11-13 | 2021-02-23 | 深圳力维智联技术有限公司 | Virtual machine recovery and resource adjustment method thereof |
CN112667999B (en) * | 2020-12-31 | 2024-06-07 | 中电长城网际安全技术研究院(北京)有限公司 | Method and device for adjusting execution time of virtual machine |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101969391A (en) * | 2010-10-27 | 2011-02-09 | 北京邮电大学 | Cloud platform supporting fusion network service and operating method thereof |
CN102439913A (en) * | 2009-02-27 | 2012-05-02 | 雅塔公司 | System and method for network traffic management and load balancing |
CN102646052A (en) * | 2011-02-16 | 2012-08-22 | ***通信集团公司 | Virtual machine deployment method, device and system |
CN103051564A (en) * | 2013-01-07 | 2013-04-17 | 杭州华三通信技术有限公司 | Dynamic resource allocation method and device |
-
2014
- 2014-09-29 CN CN201410515488.1A patent/CN104301404B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102439913A (en) * | 2009-02-27 | 2012-05-02 | 雅塔公司 | System and method for network traffic management and load balancing |
CN101969391A (en) * | 2010-10-27 | 2011-02-09 | 北京邮电大学 | Cloud platform supporting fusion network service and operating method thereof |
CN102646052A (en) * | 2011-02-16 | 2012-08-22 | ***通信集团公司 | Virtual machine deployment method, device and system |
CN103051564A (en) * | 2013-01-07 | 2013-04-17 | 杭州华三通信技术有限公司 | Dynamic resource allocation method and device |
Also Published As
Publication number | Publication date |
---|---|
CN104301404A (en) | 2015-01-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104301404B (en) | A kind of method and device of the adjustment operation system resource based on virtual machine | |
CN105281981B (en) | The data traffic monitoring method and device of network service | |
CN104966214B (en) | A kind of exchange method and device of electronic ticket | |
CN107391268A (en) | service request processing method and device | |
CN103426072B (en) | The order processing system of a kind of high concurrent competition stock and disposal route thereof | |
CN104410543B (en) | Automated testing method and system based on cloud resource | |
CN106506244A (en) | A kind of unified supervision device of mixed cloud | |
CN104219235B (en) | A kind of distributed transaction requesting method and device | |
CN107645410A (en) | A kind of virtual machine management system and method based on OpenStack cloud platforms | |
CN107621973A (en) | A kind of method for scheduling task and device across cluster | |
CN107943577A (en) | Method and apparatus for scheduler task | |
CN101963969B (en) | Method and database server for realizing load balancing in Oracle RAC (Real Application Cluster) system | |
CN108712296A (en) | One kind being based on distributed daily record monitoring device and method | |
CN109377355A (en) | Transaction data processing method and device | |
CN107864211A (en) | Cluster resource dispatching method and system | |
CN106227469A (en) | Data-erasure method and system for distributed storage cluster | |
CN106790482A (en) | Resource regulating method and resource scheduling system | |
CN107612984A (en) | A kind of big data platform based on internet | |
CN105631006B (en) | A kind of data dispatch acquisition device and method | |
CN108156225A (en) | It is micro- using monitoring system and method based on container cloud platform | |
CN108924202A (en) | A kind of the data disaster tolerance method and relevant apparatus of distributed type assemblies | |
CN107153643A (en) | Tables of data connection method and device | |
CN106846024A (en) | Reward voucher distribution method and system based on Redis | |
CN108459829A (en) | A kind of date storage method, device and computer storage media | |
CN106970827A (en) | Information processing method, information processor, electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |