CN105760230A - Method and device for automatically adjusting operation of cloud host - Google Patents

Method and device for automatically adjusting operation of cloud host Download PDF

Info

Publication number
CN105760230A
CN105760230A CN201610091663.8A CN201610091663A CN105760230A CN 105760230 A CN105760230 A CN 105760230A CN 201610091663 A CN201610091663 A CN 201610091663A CN 105760230 A CN105760230 A CN 105760230A
Authority
CN
China
Prior art keywords
main frame
cpu
cloud main
operation information
service data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201610091663.8A
Other languages
Chinese (zh)
Other versions
CN105760230B (en
Inventor
麦剑
张浚
黄衍博
黄劲聪
黎志雄
杨波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Ruijiang Cloud Computing Co Ltd
Original Assignee
Guangdong Ruijiang Cloud Computing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Ruijiang Cloud Computing Co Ltd filed Critical Guangdong Ruijiang Cloud Computing Co Ltd
Priority to CN201610091663.8A priority Critical patent/CN105760230B/en
Publication of CN105760230A publication Critical patent/CN105760230A/en
Application granted granted Critical
Publication of CN105760230B publication Critical patent/CN105760230B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a method for automatically adjusting operation of a cloud host.The method comprises the steps of obtaining operation information of the cloud host, wherein the operation information comprises the memory utilization rate and/or the CPU utilization rate; if the operation information exceeds preset maximum operating data, receiving a new memory and/or a new CPU distributed by a physical host; if the current operation information is less than the preset minimum operating data, adjusting current memories and/or CPUs of the cloud host as the preset initial value.The embodiment of the invention further discloses a device for automatically adjusting operation of the cloud host.By means of the method and device for automatically adjusting operation of the cloud host, when the utilization rate of the CPUs of the cloud host is detected to be high, the number of CPUs is increased properly within the effective CPU number range, when the utilization rate of the CPUs of the cloud host is detected to be lowered, the number of CPUs is adjusted back to the original number, and a customer can make through burst service volume smoothly.

Description

The method of a kind of automatic adjustment cloud main frame operation and device
Technical field
The present embodiments relate to cloud field, particularly relate to method and device that a kind of automatic adjustment cloud main frame runs.
Background technology
Development and popularization along with cloud, operating system may operate on cloud main frame from running directly in the past till now physical machine, Internet data center (InternetDataCenter, IDC) trust server traditional in the past is slowly converted to Cloud Server trustship.
Development along with cloud platform technology, it was that client operating system runs directly on physics bare machine in the past, to under the Intel Virtualization Technology of present cloud platform, client operating system is then operate in another one to support, on virtualized operating system, directly not dock with physical logic.Because have employed Intel Virtualization Technology, on a physical host, the cloud main frame that client can configure according to the demand assignment difference memory size of oneself.
The cloud host memory size that current client buys can customize according to self-demand and run, when client's cloud main frame in running due to a variety of causes, such as client traffic rising etc., cause that cloud main unit load is higher, generally show that CPU processes not in time and/or low memory, and cause that customer service quality is impacted.Run into such problem, client can select again to buy that CPU number is more and/or the cloud main frame of internal memory higher configured, and then again the cloud main frame that existing services migrating is new in the past, so not only the time is longer, easily make mistakes, also affect the Consumer's Experience of customer service.
Summary of the invention
The embodiment of the present invention proposes method and the device that a kind of automatic adjustment cloud main frame runs, it is intended to solve how automatically to adjust, according to the current operating situation of cloud main frame, the problem that cloud main frame runs.
First aspect, a kind of method that automatic adjustment cloud main frame runs, described method includes:
Obtaining the operation information of cloud main frame, described operation information includes memory usage and/or CPU usage;
Determine whether to exceed default maximum service data according to described operation information;
If described operation information exceedes default maximum service data, then receive the new internal memory of physical host distribution and/or new CPU;
The current operational information of described cloud main frame is detected, it is determined that whether described current operational information is lower than default minimum service data every Preset Time;
If described current operational information is lower than default minimum service data, then adjusts the current internal memory of described cloud main frame and/or CPU is preset initial value.
Preferably, described method also includes:
If described operation information is less than default maximum service data, then return the step performing to obtain the operation information of cloud main frame.
Preferably, described method also includes:
If described current operational information is not less than default minimum service data, then return the step performing the current operational information every the Preset Time described cloud main frame of detection.
Preferably, described method also includes:
After adjusting the current internal memory of described cloud main frame and/or CPU is preset initial value, return the step performing to obtain the operation information of cloud main frame.
Preferably, before the new internal memory of described reception physical host distribution and/or new CPU, also include:
Detect the whether available free internal memory of physical host at described cloud main frame place and/or idle CPU.
Preferably, described reception physical host distribution new internal memory and/or new CPU, including:
If the available free internal memory of physical host at described cloud main frame place and/or idle CPU, then obtain described free memory size and/or idle CPU number;
Minimum value is selected from described free memory size and the default memory size increased, and/or, from described idle CPU number and the default CPU number increased, select minimum value.
Second aspect, the device that a kind of automatic adjustment cloud main frame runs, described device includes:
Acquisition module, for obtaining the operation information of cloud main frame, described operation information includes memory usage and/or CPU usage;
First determines module, for determining whether to exceed default maximum service data according to described operation information;
Receiver module, if exceeding default maximum service data for described operation information, then receives the new internal memory of physical host distribution and/or new CPU;
Second determines module, for detecting the current operational information of described cloud main frame every Preset Time, it is determined that whether described current operational information is lower than default minimum service data;
Adjusting module, if for described current operational information lower than default minimum service data, then adjusting the current internal memory of described cloud main frame and/or CPU be preset initial value.
Preferably, described device also includes:
First returns module, if for described operation information less than default maximum service data, then returning the function of acquisition module;
Second returns module, if being not less than default minimum service data for described current operational information, then returns and performs the second function determining module;
3rd returns module, for, after adjusting the current internal memory of described cloud main frame and/or CPU is preset initial value, returning the function performing acquisition module.
Preferably, described device also includes:
Detection module, for detecting the whether available free internal memory of physical host at described cloud main frame place and/or idle CPU.
Preferably, described receiver module, including:
Acquiring unit, if being used for the available free internal memory of physical host at described cloud main frame place and/or idle CPU, then obtains described free memory size and/or idle CPU number;
Select unit, for selecting minimum value from described free memory size and the default memory size increased, and/or, from described idle CPU number and the default CPU number increased, select minimum value.
nullThe embodiment of the present invention provides method and the device of a kind of automatic adjustment cloud main frame operation,If the current operational information of cloud main frame exceedes default maximum service data,It is then the internal memory and/or new CPU that described cloud host assignment is new by physical host,And the current operational information of described cloud main frame is detected at interval of Preset Time,If lower than default minimum service data,Then internal memory current for described cloud main frame or CPU are adjusted to preset initial value,Thus cloud main frame can be distributed to CPU according to physical machine in Intel Virtualization Technology run the feature used,In the process that cloud main frame runs,When CPU usage cloud main frame being detected is higher time,CPU number is suitably increased inside effective CPU number scope,When checking that cloud host CPU utilization rate declines,Then initial number is returned in CPU number adjustment,Make client can spend the portfolio of burst smoothly,The Consumer's Experience of hommization is brought for cloud client.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention one provides runs;
Fig. 2 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention two provides runs;
Fig. 3 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention three provides runs;
Fig. 4 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention four provides runs;
Fig. 5 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention five provides runs;
Fig. 6 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention six provides runs;
Fig. 7 is the high-level schematic functional block diagram of the device that a kind of automatic adjustment cloud main frame that the embodiment of the present invention seven provides runs.
Detailed description of the invention
Technical scheme is further illustrated below in conjunction with accompanying drawing and by detailed description of the invention.It is understood that specific embodiment described herein is used only for explaining the present invention, but not limitation of the invention.It also should be noted that, for the ease of describing, accompanying drawing illustrate only part related to the present invention but not entire infrastructure.
It should be mentioned that, some exemplary embodiments are described as the process as flow chart description or method before being discussed in greater detail exemplary embodiment.Although every step is described as the process of order by flow chart, but many steps therein can be implemented concurrently, concomitantly or simultaneously.Additionally, the order of every step can be rearranged.When its step completes, described process can be terminated, it is also possible to have the additional step being not included in accompanying drawing.Described process can correspond to method, function, code, subroutine, subprogram etc..
Embodiment one
Fig. 1 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention one provides runs.The method can be performed by automatically adjusting what cloud main frame ran device, and wherein this device can be realized by software and/or hardware.As it is shown in figure 1, the method includes:
Step 101, obtains the operation information of cloud main frame, and described operation information includes memory usage and/or CPU usage;
Concrete, the operation information of detection cloud main frame, this operation information can be memory usage, or CPU usage.
Step 102, determines whether to exceed default maximum service data according to described operation information;
Concrete, maximum service data is set, this maximum service data can be the maximum utilization rate of internal memory of cloud main frame, or the maximum utilization rate of the CPU of cloud main frame.Memory usage and the maximum utilization rate of internal memory preset of cloud main frame detection obtained contrast, it is determined that whether the memory usage of the cloud main frame that detection obtains exceedes the maximum utilization rate of default internal memory;Or, CPU usage and the maximum utilization rate of CPU preset of cloud main frame detection obtained contrast, it is determined that whether the CPU usage of the cloud main frame that detection obtains exceedes the maximum utilization rate of default CPU.
Step 103, if described operation information exceedes default maximum service data, then receives the new internal memory of physical host distribution and/or new CPU;
Concrete, however, it is determined that the memory usage of cloud main frame exceedes the maximum utilization rate of default internal memory, then by physical host to the new internal memory of described cloud host assignment;If it is determined that the utilization rate of the CPU of cloud main frame exceedes the maximum utilization rate of default CPU, then by physical host to the new CPU of described cloud host assignment.
Step 104, detects the current operational information of described cloud main frame, it is determined that whether described current operational information is lower than default minimum service data every Preset Time;
Concrete, after distributing new internal memory or new CPU, continue the utilization rate of the monitoring currently running CPU of cloud main frame whether utilization rate lower than default minimum CPU, or, after distributing new CPU, continue the utilization rate of the monitoring currently running internal memory of cloud main frame whether lower than the utilization rate of default minimum internal memory.
Step 105, if described current operational information is lower than default minimum service data, then adjusts the current internal memory of described cloud main frame and/or CPU is preset initial value.
Concrete, if continuing the current memory utilization rate monitoring the cloud main frame obtained lower than default minimum memory usage, then the memory usage of cloud main frame is adjusted to initial value;If continuing the current CPU usage of the cloud main frame that monitoring obtains lower than default minimum CPU usage, then the CPU usage of cloud main frame is adjusted to initial value.
nullThe embodiment of the present invention provides a kind of method that automatic adjustment cloud main frame runs,If the current operational information of cloud main frame exceedes default maximum service data,It is then the internal memory and/or new CPU that described cloud host assignment is new by physical host,And the current operational information of described cloud main frame is detected at interval of Preset Time,If lower than default minimum service data,Then internal memory current for described cloud main frame or CPU are adjusted to preset initial value,Thus cloud main frame can be distributed to CPU according to physical machine in Intel Virtualization Technology run the feature used,In the process that cloud main frame runs,When CPU usage cloud main frame being detected is higher time,CPU number is suitably increased inside effective CPU number scope,When checking that cloud host CPU utilization rate declines,Then initial number is returned in CPU number adjustment,Make client can spend the portfolio of burst smoothly,The Consumer's Experience of hommization is brought for cloud client.
Embodiment two
Fig. 2 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention two provides runs.As in figure 2 it is shown, the method includes:
Step 201, obtains the operation information of cloud main frame, and described operation information includes memory usage and/or CPU usage;
Step 202, determines whether to exceed default maximum service data according to described operation information;
Step 203, if described operation information exceedes default maximum service data, then receives the new internal memory of physical host distribution and/or new CPU;
Step 204, if described operation information is less than default maximum service data, then returns the step performing to obtain the operation information of cloud main frame;
Concrete, if the cloud main frame current memory utilization rate that detection obtains is less than the memory usage presetting maximum operation, then return the step continuing executing with the operation information obtaining cloud main frame;If the current CPU usage of cloud main frame that detection obtains is less than the CPU usage presetting maximum operation, then return the step continuing executing with the operation information obtaining cloud main frame.
Step 205, detects the current operational information of described cloud main frame, it is determined that whether described current operational information is lower than default minimum service data every Preset Time;
Step 206, if described current operational information is lower than default minimum service data, then adjusts the current internal memory of described cloud main frame and/or CPU is preset initial value.
The embodiment of the present invention provides a kind of method that automatic adjustment cloud main frame runs, if described operation information is less than default maximum service data, then return the step performing to obtain the operation information of cloud main frame, such that it is able to the purpose of property performance period detection cloud main frame operation information.
Embodiment three
Fig. 3 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention three provides runs.As it is shown on figure 3, the method includes:
Step 301, obtains the operation information of cloud main frame, and described operation information includes memory usage and/or CPU usage;
Step 302, determines whether to exceed default maximum service data according to described operation information;
Step 303, if described operation information exceedes default maximum service data, then receives the new internal memory of physical host distribution and/or new CPU;
Step 304, detects the current operational information of described cloud main frame, it is determined that whether described current operational information is lower than default minimum service data every Preset Time;
Step 305, if described current operational information is lower than default minimum service data, then adjusts the current internal memory of described cloud main frame and/or CPU is preset initial value;
Step 306, if described current operational information is not less than default minimum service data, then returns the step performing the current operational information every the Preset Time described cloud main frame of detection.
Concrete, the ruuning situation of the cloud main frame after detection adjustment, if the current memory utilization rate of the cloud main frame after adjusting is not less than default minimum memory usage, then continues the current memory utilization rate of the cloud main frame after detection adjusts.If the current CPU usage of the cloud main frame after adjusting is not less than default minimum CPU usage, then continue the current CPU usage of the cloud main frame after detection adjusts.
The embodiment of the present invention provides a kind of method that automatic adjustment cloud main frame runs, if described current operational information is not less than default minimum service data, then return the step performing the current operational information every the Preset Time described cloud main frame of detection, thus the detection of property performance period adjust after cloud main frame ruuning situation, the CPU caused when can avoid CPU or the internal memory that the ruuning situation of cloud main frame after adjusting need not increase timely and effectively or the waste of internal memory.
Embodiment four
Fig. 4 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention four provides runs.As shown in Figure 4, the method includes:
Step 401, obtains the operation information of cloud main frame, and described operation information includes memory usage and/or CPU usage;
Step 402, determines whether to exceed default maximum service data according to described operation information;
Step 403, if described operation information exceedes default maximum service data, then receives the new internal memory of physical host distribution and/or new CPU;
Step 404, detects the current operational information of described cloud main frame, it is determined that whether described current operational information is lower than default minimum service data every Preset Time;
Step 405, if described current operational information is lower than default minimum service data, then adjusts the current internal memory of described cloud main frame and/or CPU is preset initial value.
Step 406, after adjusting the current internal memory of described cloud main frame and/or CPU is preset initial value, returns the step performing to obtain the operation information of cloud main frame.
Concrete, after current internal memory or CPU are adjusted to preset initial value by cloud main frame, then return the current operational information continuing detection cloud main frame.
The embodiment of the present invention provides a kind of method that automatic adjustment cloud main frame runs, after adjusting the current internal memory of described cloud main frame and/or CPU is preset initial value, return the step performing to obtain the operation information of cloud main frame, thus the operation information of property performance period detection cloud main frame, in order to the internal memory of cloud main frame or the purpose of CPU is adjusted in time according to the operation information of cloud main frame.
Embodiment five
Fig. 5 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention five provides runs.As it is shown in figure 5, the method includes:
Step 501, detects the whether available free internal memory of physical host at described cloud main frame place and/or idle CPU;
Step 502, obtains the operation information of cloud main frame, and described operation information includes memory usage and/or CPU usage;
Step 503, determines whether to exceed default maximum service data according to described operation information;
Step 504, if described operation information exceedes default maximum service data, then receives the new internal memory of physical host distribution and/or new CPU;
Concrete, the present invention can distribute to cloud main frame with CPU according to physical machine in Intel Virtualization Technology to run the feature used, and is the internal memory and/or new CPU that cloud host assignment is new by physical host.
Preferably, described reception physical host distribution new internal memory and/or new CPU, including:
If the available free internal memory of physical host at described cloud main frame place and/or idle CPU, then obtain described free memory size and/or idle CPU number;
Minimum value is selected from described free memory size and the default memory size increased, and/or, from described idle CPU number and the default CPU number increased, select minimum value.
Concrete, the first size of the size of the free memory on detection physical host and idle CPU number, from the size of free memory and the default memory size increased, select minimum data, if free memory is less than the memory size of default increase, be then cloud host assignment free memory;If free memory is more than the memory size of default increase, then preset the memory size of increase for cloud host assignment.
Step 505, detects the current operational information of described cloud main frame, it is determined that whether described current operational information is lower than default minimum service data every Preset Time;
Step 506, if described current operational information is lower than default minimum service data, then adjusts the current internal memory of described cloud main frame and/or CPU is preset initial value.
The embodiment of the present invention provides a kind of method that automatic adjustment cloud main frame runs, if described operation information exceedes default maximum service data, then receive the new internal memory of physical host distribution and/or new CPU, if the available free internal memory of physical host at described cloud main frame place and/or idle CPU, then obtain described free memory size and/or idle CPU number;Minimum value is selected from described free memory size and the default memory size increased, and/or, from described idle CPU number and the default CPU number increased, selecting minimum value, thus being embodied as the described effective internal memory of cloud host assignment or CPU, improving the utilization rate of internal memory or CPU.
Embodiment six
Fig. 6 is the schematic flow sheet of the method that a kind of automatic adjustment cloud main frame that the embodiment of the present invention six provides runs.As shown in Figure 6, the method includes:
Cloud main frame can raise CPU number VMCPUMax, such as VMCPUMax=2 core, and the CPU that representative can be cloud main frame increases maximum 2 cores;
Cloud host CPU utilization rate threshold values VMCPUMaxUsed, being used for judging whether meeting increases CPU said conditions, such as VMCPUMaxUsed=80%, then represent as cloud host CPU utilization rate VMCPUUsed >=80% time meet the condition of increase CPU number;
Cloud host CPU utilization rate threshold values VMCPUMinUsed, for judging whether to meet, initial number is returned in CPU number adjustment, such as VMCPUMinUsed=50%, then represent when cloud host CPU utilization rate VMCPUUsed≤50% time, it is possible to CPU number is arranged can initial number.
Step 601, detects cloud main frame current CPU usage VMCPUUsed >=VMCPUMaxUsed (80%), meets and enters step 602, is unsatisfactory for, and continues detection;
Step 602, detects current cloud main frame place physical machine CPU free time number HostFreeCPU > 0, satisfied then enter step 603, is unsatisfactory for then entrance step 601;
Step 603, selects minimum numerical value min (HostFreeCPU, VMCPUMax) from HostFreeCPU and VMCPUMax, and this numerical value for increasing the CPU number of cloud main frame, enters step 604;
Step 604, detects whether the current CPU usage of cloud main frame meets and arranges back CPU initial number condition VMCPUUsed≤VMCPUMinUsed, meet and enter step 605, be unsatisfactory for, continue detection;
Step 605, arranges back initial number VMCPU by cloud host CPU number, reenters step 601 and continues detection.
The embodiment of the present invention provides a kind of method that automatic adjustment cloud main frame runs, utilize Intel Virtualization Technology, when detecting that client's cloud host CPU load is higher, automatically CPU number is suitably increased for client, to ensure customer service quality, make client can spend the portfolio of burst smoothly or make client have the comparatively sufficient time to go to adjust expansion service ability, bring the Consumer's Experience of hommization for cloud client.
Embodiment seven
Fig. 7 is the high-level schematic functional block diagram of the device that a kind of automatic adjustment cloud main frame that the embodiment of the present invention seven provides runs.This device can be realized by software and/or hardware, and the method can run by performing automatically to adjust cloud main frame realizes.As it is shown in fig. 7, this device includes:
Acquisition module 701, for obtaining the operation information of cloud main frame, described operation information includes memory usage and/or CPU usage;
First determines module 702, for determining whether to exceed default maximum service data according to described operation information;
Receiver module 703, if exceeding default maximum service data for described operation information, then receives the new internal memory of physical host distribution and/or new CPU;
Second determines module 704, for detecting the current operational information of described cloud main frame every Preset Time, it is determined that whether described current operational information is lower than default minimum service data;
Adjusting module 705, if for described current operational information lower than default minimum service data, then adjusting the current internal memory of described cloud main frame and/or CPU be preset initial value.
Preferably, described device also includes:
First returns module, if for described operation information less than default maximum service data, then returning the function of acquisition module;
Second returns module, if being not less than default minimum service data for described current operational information, then returns and performs the second function determining module;
3rd returns module, for, after adjusting the current internal memory of described cloud main frame and/or CPU is preset initial value, returning the function performing acquisition module.
Preferably, described device also includes:
Detection module, for detecting the whether available free internal memory of physical host at described cloud main frame place and/or idle CPU.
Preferably, described receiver module, including:
Acquiring unit, if being used for the available free internal memory of physical host at described cloud main frame place and/or idle CPU, then obtains described free memory size and/or idle CPU number;
Select unit, for selecting minimum value from described free memory size and the default memory size increased, and/or, from described idle CPU number and the default CPU number increased, select minimum value.
nullThe embodiment of the present invention provides the device that a kind of automatic adjustment cloud main frame runs,If the current operational information of cloud main frame exceedes default maximum service data,It is then the internal memory and/or new CPU that described cloud host assignment is new by physical host,And the current operational information of described cloud main frame is detected at interval of Preset Time,If lower than default minimum service data,Then internal memory current for described cloud main frame or CPU are adjusted to preset initial value,Thus cloud main frame can be distributed to CPU according to physical machine in Intel Virtualization Technology run the feature used,In the process that cloud main frame runs,When CPU usage cloud main frame being detected is higher time,CPU number is suitably increased inside effective CPU number scope,When checking that cloud host CPU utilization rate declines,Then initial number is returned in CPU number adjustment,Make client can spend the portfolio of burst smoothly,The Consumer's Experience of hommization is brought for cloud client.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention being described in further detail by above example, but the present invention is not limited only to above example, when without departing from present inventive concept, other Equivalent embodiments more can also be included, and the scope of the present invention is determined by appended right.

Claims (10)

1. the method that an automatic adjustment cloud main frame runs, it is characterised in that described method includes:
Obtaining the operation information of cloud main frame, described operation information includes memory usage and/or CPU usage;
Determine whether to exceed default maximum service data according to described operation information;
If described operation information exceedes default maximum service data, then receive the new internal memory of physical host distribution and/or new CPU;
The current operational information of described cloud main frame is detected, it is determined that whether described current operational information is lower than default minimum service data every Preset Time;
If described current operational information is lower than default minimum service data, then adjusts the current internal memory of described cloud main frame and/or CPU is preset initial value.
2. method according to claim 1, it is characterised in that described method also includes:
If described operation information is less than default maximum service data, then return the step performing to obtain the operation information of cloud main frame.
3. method according to claim 1, it is characterised in that described method also includes:
If described current operational information is not less than default minimum service data, then return the step performing the current operational information every the Preset Time described cloud main frame of detection.
4. method according to claim 1, it is characterised in that described method also includes:
After adjusting the current internal memory of described cloud main frame and/or CPU is preset initial value, return the step performing to obtain the operation information of cloud main frame.
5. the method according to Claims 1-4 any one, it is characterised in that before the new internal memory of described reception physical host distribution and/or new CPU, also include:
Detect the whether available free internal memory of physical host at described cloud main frame place and/or idle CPU.
6. method according to claim 5, it is characterised in that the new internal memory of described reception physical host distribution and/or new CPU, including:
If the available free internal memory of physical host at described cloud main frame place and/or idle CPU, then obtain described free memory size and/or idle CPU number;
Minimum value is selected from described free memory size and the default memory size increased, and/or, from described idle CPU number and the default CPU number increased, select minimum value.
7. the device that an automatic adjustment cloud main frame runs, it is characterised in that described device includes:
Acquisition module, for obtaining the operation information of cloud main frame, described operation information includes memory usage and/or CPU usage;
First determines module, for determining whether to exceed default maximum service data according to described operation information;
Receiver module, if exceeding default maximum service data for described operation information, then receives the new internal memory of physical host distribution and/or new CPU;
Second determines module, for detecting the current operational information of described cloud main frame every Preset Time, it is determined that whether described current operational information is lower than default minimum service data;
Adjusting module, if for described current operational information lower than default minimum service data, then adjusting the current internal memory of described cloud main frame and/or CPU be preset initial value.
8. device according to claim 7, it is characterised in that described device also includes:
First returns module, if for described operation information less than default maximum service data, then returning the function of acquisition module;
Second returns module, if being not less than default minimum service data for described current operational information, then returns and performs the second function determining module;
3rd returns module, for, after adjusting the current internal memory of described cloud main frame and/or CPU is preset initial value, returning the function performing acquisition module.
9. the device according to claim 7 or 8, it is characterised in that described device also includes:
Detection module, for detecting the whether available free internal memory of physical host at described cloud main frame place and/or idle CPU.
10. device according to claim 9, it is characterised in that described receiver module, including:
Acquiring unit, if being used for the available free internal memory of physical host at described cloud main frame place and/or idle CPU, then obtains described free memory size and/or idle CPU number;
Select unit, for selecting minimum value from described free memory size and the default memory size increased, and/or, from described idle CPU number and the default CPU number increased, select minimum value.
CN201610091663.8A 2016-02-18 2016-02-18 A kind of method and device of adjust automatically cloud host operation Active CN105760230B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610091663.8A CN105760230B (en) 2016-02-18 2016-02-18 A kind of method and device of adjust automatically cloud host operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610091663.8A CN105760230B (en) 2016-02-18 2016-02-18 A kind of method and device of adjust automatically cloud host operation

Publications (2)

Publication Number Publication Date
CN105760230A true CN105760230A (en) 2016-07-13
CN105760230B CN105760230B (en) 2019-06-07

Family

ID=56330970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610091663.8A Active CN105760230B (en) 2016-02-18 2016-02-18 A kind of method and device of adjust automatically cloud host operation

Country Status (1)

Country Link
CN (1) CN105760230B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844372A (en) * 2017-10-17 2018-03-27 广东睿江云计算股份有限公司 A kind of method of Memory Allocation, system
CN108512673A (en) * 2017-02-24 2018-09-07 腾讯科技(深圳)有限公司 A kind of cloud service quality control method, device and server
CN109684074A (en) * 2018-11-12 2019-04-26 平安科技(深圳)有限公司 Physical machine resource allocation methods and terminal device
CN110597639A (en) * 2019-09-23 2019-12-20 腾讯科技(深圳)有限公司 CPU distribution control method, device, server and storage medium
CN112702365A (en) * 2021-03-24 2021-04-23 北京安信天行科技有限公司 Data security situation monitoring method, system and equipment based on virtual cloud
CN112765107A (en) * 2019-10-21 2021-05-07 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for adjusting memory space
CN112764933A (en) * 2021-01-27 2021-05-07 惠州Tcl移动通信有限公司 CPU configuration method, device, terminal and computer readable storage medium
CN113569137A (en) * 2021-07-06 2021-10-29 北京汇钧科技有限公司 Recommendation method and device for cloud host specification, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200943A (en) * 2010-03-25 2011-09-28 腾讯科技(深圳)有限公司 Method and equipment for automatically detecting CPU utilization rate based on background
CN102868763A (en) * 2012-10-08 2013-01-09 山东省计算中心 Energy-saving dynamic adjustment method of virtual web application cluster in cloud computing environment
CN105094997A (en) * 2015-09-10 2015-11-25 重庆邮电大学 Method and system for sharing physical memory among cloud computing host nodes
CN105162623A (en) * 2015-08-12 2015-12-16 深圳市瑞驰信息技术有限公司 Cloud processing method and cloud server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102200943A (en) * 2010-03-25 2011-09-28 腾讯科技(深圳)有限公司 Method and equipment for automatically detecting CPU utilization rate based on background
CN102868763A (en) * 2012-10-08 2013-01-09 山东省计算中心 Energy-saving dynamic adjustment method of virtual web application cluster in cloud computing environment
CN105162623A (en) * 2015-08-12 2015-12-16 深圳市瑞驰信息技术有限公司 Cloud processing method and cloud server
CN105094997A (en) * 2015-09-10 2015-11-25 重庆邮电大学 Method and system for sharing physical memory among cloud computing host nodes

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512673A (en) * 2017-02-24 2018-09-07 腾讯科技(深圳)有限公司 A kind of cloud service quality control method, device and server
CN108512673B (en) * 2017-02-24 2021-08-03 腾讯科技(深圳)有限公司 Cloud service quality monitoring method and device and server
CN107844372A (en) * 2017-10-17 2018-03-27 广东睿江云计算股份有限公司 A kind of method of Memory Allocation, system
CN107844372B (en) * 2017-10-17 2021-09-07 广东睿江云计算股份有限公司 Memory allocation method and system
CN109684074A (en) * 2018-11-12 2019-04-26 平安科技(深圳)有限公司 Physical machine resource allocation methods and terminal device
CN110597639A (en) * 2019-09-23 2019-12-20 腾讯科技(深圳)有限公司 CPU distribution control method, device, server and storage medium
CN112765107A (en) * 2019-10-21 2021-05-07 伊姆西Ip控股有限责任公司 Method, apparatus and computer program product for adjusting memory space
CN112764933A (en) * 2021-01-27 2021-05-07 惠州Tcl移动通信有限公司 CPU configuration method, device, terminal and computer readable storage medium
CN112702365A (en) * 2021-03-24 2021-04-23 北京安信天行科技有限公司 Data security situation monitoring method, system and equipment based on virtual cloud
CN113569137A (en) * 2021-07-06 2021-10-29 北京汇钧科技有限公司 Recommendation method and device for cloud host specification, storage medium and electronic device

Also Published As

Publication number Publication date
CN105760230B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN105760230A (en) Method and device for automatically adjusting operation of cloud host
CN109586952B (en) Server capacity expansion method and device
US9161064B2 (en) Auto-scaling management of web content
CN108306874B (en) Service interface access current limiting method and device
CN105139641A (en) WiFi relay station-based vehicle scheduling method and system
CN105791254B (en) Network request processing method and device and terminal
EP3518166A1 (en) Mobile terminal-based payment method and mobile terminal
CN109684008A (en) Card rendering method, device, terminal and computer readable storage medium
WO2014194704A1 (en) A grouping processing method and system
CN104793982A (en) Method and device for establishing virtual machine
CN110290024A (en) The online preceding test method of strategy, device and equipment
CN112954040A (en) Method, system, device and storage medium for embedding application release server
RU2020100915A (en) DIGITAL WALLET APP FOR MOBILE PAYMENT
CN103607731B (en) A kind of processing method and processing device of measurement report
CN109783221B (en) Virtual machine resource allocation method and device and resource server
CN112596985B (en) IT asset detection method, device, equipment and medium
CN116382892A (en) Load balancing method and device based on multi-cloud fusion and cloud service
CN110337112A (en) Terminal access method and device
CN110597682B (en) Application deployment method and device, computer equipment and storage medium
CN112948013B (en) Application probe configuration method and device, terminal equipment and storage medium
CN105591980B (en) A kind of bandwidth consumption management method and device
CN107087300A (en) Application processing method and device
CN109542726B (en) Power consumption detection method and device
CN113434152A (en) Software development method, system and readable storage medium
US20140359104A1 (en) Grouping processing method and system

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