CN105760230B - A kind of method and device of adjust automatically cloud host operation - Google Patents

A kind of method and device of adjust automatically cloud host operation Download PDF

Info

Publication number
CN105760230B
CN105760230B CN201610091663.8A CN201610091663A CN105760230B CN 105760230 B CN105760230 B CN 105760230B CN 201610091663 A CN201610091663 A CN 201610091663A CN 105760230 B CN105760230 B CN 105760230B
Authority
CN
China
Prior art keywords
cpu
cloud host
memory
host
operation 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.)
Active
Application number
CN201610091663.8A
Other languages
Chinese (zh)
Other versions
CN105760230A (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 kind of methods of adjust automatically cloud host operation, wherein this method comprises: obtaining the operation information of cloud host, the operation information includes memory usage and/or CPU usage;If the operation information is more than default maximum operation data, the new memory and/or new CPU of physical host distribution are received;If the current operational information is lower than default minimum operation data, adjusting the cloud host current memory and/or CPU is preset initial value.The embodiment of the present invention discloses a kind of method and device of adjust automatically cloud host operation, when the CPU usage for detecting cloud host is higher, suitably increase CPU number inside effective CPU several ranges, when checking the decline of cloud host CPU utilization rate, CPU number is then adjusted into back initial number, client is allow smoothly to spend the portfolio of burst.

Description

A kind of method and device of adjust automatically cloud host operation
Technical field
A kind of method and dress run the present embodiments relate to cloud field more particularly to adjust automatically cloud host It sets.
Background technique
With the development and popularization of cloud, operating system can transport till now from former ran directly on physical machine Row is on cloud host, and trust server is slowly for Internet data center (Internet Data Center, IDC) traditional in the past Ground is changed into Cloud Server trustship.
It was that client operating system is run directly on physics bare machine in the past with the development of cloud platform technology, to existing Cloud platform virtualization technology under, client operating system be then operate in another support virtualization operating system it On, it is not direct to be docked with physical logic.Because using virtualization technology, on a physical host, client can be according to certainly The cloud host of oneself demand assignment difference memory size configuration.
The cloud host memory size of client's purchase at present can be customized and be run according to self-demand, when client's cloud host exists In operational process due to various reasons, for example client traffic rises etc., causes cloud main unit load higher, usually shows CPU Processing not in time and/or low memory, and causes customer service quality impacted.Such problems is encountered, client can choose Again it buys that CPU number be more and/or the cloud host of memory higher configured, then existing services migrating is gone over again new cloud Host, not only the time is longer in this way, is easy error, also affects the user experience of customer service.
Summary of the invention
The embodiment of the present invention proposes a kind of method and device of adjust automatically cloud host operation, it is intended to how solve according to cloud The problem of current operating situation adjust automatically cloud host operation of host.
In a first aspect, a kind of method of adjust automatically cloud host operation, which comprises
The operation information of cloud host is obtained, the operation information includes memory usage and/or CPU usage;
Determine whether to be more than default maximum operation data according to the operation information;
If the operation information is more than default maximum operation data, receive physical host distribution new memory and/or New CPU;
The current operational information of the cloud host is detected every preset time, determines whether the current operational information is lower than Default minimum operation data;
If the current operational information lower than default minimum operation data, adjust the current memory of the cloud host and/ Or CPU is preset initial value.
Preferably, the method also includes:
If the operation information is no more than default maximum operation data, returns and execute the operation information for obtaining cloud host Step.
Preferably, the method also includes:
If the current operational information returns to execution every preset time and detects institute not less than default minimum operation data The step of stating the current operational information of cloud host.
Preferably, the method also includes:
After adjusting the cloud host current memory and/or CPU and being preset initial value, returns and execute acquisition cloud host Operation information the step of.
Preferably, before the new memory and/or new CPU for receiving physical host distribution, further includes:
The whether available free memory of physical host and/or free time CPU where detecting the cloud host.
Preferably, the new memory and/or new CPU for receiving physical host distribution, comprising:
If the available free memory of physical host and/or free time CPU where the cloud host, it is big to obtain the free memory Small and/or idle CPU number;
From the free memory size and presets in increased memory size and select minimum value, and/or, from the free time It CPU number and presets in increased CPU number and selects minimum value.
Second aspect, a kind of device of adjust automatically cloud host operation, described device include:
Module is obtained, for obtaining the operation information of cloud host, the operation information includes memory usage and/or CPU Utilization rate;
First determining module, for determining whether to be more than default maximum operation data according to the operation information;
Receiving module receives physical host distribution if being more than default maximum operation data for the operation information New memory and/or new CPU;
Second determining module is worked as described in determination for detecting the current operational information of the cloud host every preset time Whether preceding operation information is lower than default minimum operation data;
Module is adjusted, if adjusting the cloud host lower than default minimum operation data for the current operational information Current memory and/or CPU is preset initial value.
Preferably, described device further include:
First return module returns to acquisition module if being no more than default maximum operation data for the operation information Function;
Second return module, if returning to execution not less than default minimum operation data for the current operational information The function of second determining module;
Third return module, for after adjusting the cloud host current memory and/or CPU and being preset initial value, Return to the function of executing and obtain module.
Preferably, described device further include:
Detection module, for the whether available free memory of physical host and/or free time CPU where detecting the cloud host.
Preferably, the receiving module, comprising:
Acquiring unit, if being obtained for the available free memory of physical host and/or free time CPU where the cloud host The free memory size and/or idle CPU number;
Selecting unit, for from the free memory size and presetting and select minimum value in increased memory size, and/ Or, from the idle CPU number and presetting in increased CPU number and selecting minimum value.
The embodiment of the present invention provides a kind of method and device of adjust automatically cloud host operation, if the current operation of cloud host Information is more than default maximum operation data, then is the new memory of cloud host assignment and/or new CPU by physical host, And the current operational information of the cloud host is detected at interval of preset time, if lower than default minimum operation data, by institute It states the current memory of cloud host or CPU is adjusted to preset initial value, to can use CPU can according to physical machine in virtualization technology To distribute to the characteristics of operation of cloud host uses, during the operation of cloud host, when detect the CPU usage of cloud host compared with When high, suitably increase CPU number inside effective CPU several ranges, when checking the decline of cloud host CPU utilization rate, then CPU number is adjusted into back initial number, client is allow smoothly to spend the portfolio of burst, brings hommization for cloud client User experience.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the method for adjust automatically cloud host operation that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of the method for adjust automatically cloud host operation provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow diagram of the method for adjust automatically cloud host operation that the embodiment of the present invention three provides;
Fig. 4 is a kind of flow diagram of the method for adjust automatically cloud host operation that the embodiment of the present invention four provides;
Fig. 5 is a kind of flow diagram of the method for adjust automatically cloud host operation that the embodiment of the present invention five provides;
Fig. 6 is a kind of flow diagram of the method for adjust automatically cloud host operation that the embodiment of the present invention six provides;
Fig. 7 is a kind of functional module signal of the device for adjust automatically cloud host operation that the embodiment of the present invention seven provides Figure.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.It is understood that It is that specific embodiment described herein is used only for explaining the present invention rather than limiting the invention.It further needs exist for illustrating , only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although every step is described as the processing of sequence by flow chart, therein to be permitted Multi-step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of every step can be rearranged.When it The processing can be terminated when step completion, it is also possible to have the additional step being not included in attached drawing.The processing It can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of flow diagram of the method for adjust automatically cloud host operation that the embodiment of the present invention one provides.It should The device that method can be run by adjust automatically cloud host executes, and wherein the device can be implemented by software and/or hardware.Such as figure Shown in 1, this method comprises:
Step 101, the operation information of cloud host is obtained, the operation information includes that memory usage and/or CPU are used Rate;
Specifically, the operation information of detection cloud host, which can be memory usage or CPU usage.
Step 102, determine whether to be more than default maximum operation data according to the operation information;
Specifically, maximum operation data is arranged, which can be the memory maximum utilization rate of cloud host, or The maximum utilization rate of the CPU of person's cloud host.The memory usage for the cloud host that will test and preset memory maximum use Rate compares, and determines whether the memory usage for the cloud host that detection obtains is more than preset memory maximum utilization rate;Alternatively, The CPU usage for the cloud host that will test and preset CPU maximum utilization rate compare, and determine the cloud master that detection obtains Whether the CPU usage of machine is more than preset CPU maximum utilization rate.
Step 103, if the operation information is more than default maximum operation data, the new interior of physical host distribution is received It deposits and/or new CPU;
Specifically, if it is determined that the memory usage of cloud host then passes through physical host more than default memory maximum utilization rate The memory new to the cloud host assignment;If it is determined that the utilization rate of the CPU of cloud host is more than default CPU maximum utilization rate, then lead to Cross the physical host CPU new to the cloud host assignment.
Step 104, the current operational information that the cloud host is detected every preset time, determines the current operational information Whether lower than default minimum operation data;
Specifically, continuing to monitor making for the currently running CPU of cloud host after distributing new memory or new CPU Whether it is lower than the utilization rate of preset minimum CPU with rate, alternatively, continuing monitoring cloud host after distributing new CPU and currently transporting Whether the utilization rate of capable memory is lower than the utilization rate of preset minimum memory.
Step 105, if the current operational information is lower than default minimum operation data, it is current to adjust the cloud host Memory and/or CPU are preset initial value.
Specifically, if the current memory utilization rate for continuing the cloud host that monitoring obtains is lower than default minimum memory usage, The memory usage of cloud host is then adjusted to initial value;If the current CPU usage for continuing the cloud host that monitoring obtains is lower than Default minimum CPU usage, then be adjusted to initial value for the CPU usage of cloud host.
The embodiment of the present invention provides a kind of method of adjust automatically cloud host operation, if the current operational information of cloud host is super Default maximum operation data is crossed, then is the new memory of cloud host assignment and/or new CPU by physical host, and every Interval preset time detects the current operational information of the cloud host, if lower than default minimum operation data, by the cloud master The current memory of machine or CPU are adjusted to preset initial value, to can be distributed with CPU according to physical machine in virtualization technology The characteristics of using is run to cloud host, during the operation of cloud host, when the CPU usage for detecting cloud host is higher It waits, suitably increases CPU number inside effective CPU several ranges, when checking the decline of cloud host CPU utilization rate, then by CPU Number adjusts back initial number, and client is allow smoothly to spend the portfolio of burst, brings the user of hommization for cloud client Experience.
Embodiment two
Fig. 2 is a kind of flow diagram of the method for adjust automatically cloud host operation provided by Embodiment 2 of the present invention.Such as Shown in Fig. 2, this method comprises:
Step 201, the operation information of cloud host is obtained, the operation information includes that memory usage and/or CPU are used Rate;
Step 202, determine whether to be more than default maximum operation data according to the operation information;
Step 203, if the operation information is more than default maximum operation data, the new interior of physical host distribution is received It deposits and/or new CPU;
Step 204, if the operation information is no more than default maximum operation data, the fortune for executing and obtaining cloud host is returned The step of row information;
Specifically, if the memory that the cloud host current memory utilization rate that detection obtains is no more than default maximum operation uses Rate then returns to the step of continuing to execute the operation information for obtaining cloud host;If detecting the obtained current CPU usage of cloud host not More than the CPU usage of default maximum operation, then the step of continuing to execute the operation information for obtaining cloud host is returned.
Step 205, the current operational information that the cloud host is detected every preset time, determines the current operational information Whether lower than default minimum operation data;
Step 206, if the current operational information is lower than default minimum operation data, it is current to adjust the cloud host Memory and/or CPU are preset initial value.
The embodiment of the present invention provides a kind of method of adjust automatically cloud host operation, presets if the operation information is no more than Maximum operation data then returns to the step of executing the operation information for obtaining cloud host, is periodically detected cloud master so as to realize The purpose of machine operation information.
Embodiment three
Fig. 3 is a kind of flow diagram of the method for adjust automatically cloud host operation that the embodiment of the present invention three provides.Such as Shown in Fig. 3, this method comprises:
Step 301, the operation information of cloud host is obtained, the operation information includes that memory usage and/or CPU are used Rate;
Step 302, determine whether to be more than default maximum operation data according to the operation information;
Step 303, if the operation information is more than default maximum operation data, the new interior of physical host distribution is received It deposits and/or new CPU;
Step 304, the current operational information that the cloud host is detected every preset time, determines the current operational information Whether lower than default minimum operation data;
Step 305, if the current operational information is lower than default minimum operation data, it is current to adjust the cloud host Memory and/or CPU are preset initial value;
Step 306, if the current operational information returns to execution when default not less than default minimum operation data Between the step of detecting the current operational information of the cloud host.
Specifically, the operating condition of cloud host adjusted is detected, if the current memory utilization rate of cloud host adjusted Not less than default minimum memory usage, then the current memory utilization rate of cloud host adjusted is continued to test.If adjusted The current CPU usage of cloud host then continues to test the current of cloud host adjusted not less than default minimum CPU usage CPU usage.
The embodiment of the present invention provides a kind of method of adjust automatically cloud host operation, if the current operational information is not less than Default minimum operation data then returns to execution every preset time detects the current operational information of the cloud host the step of, from And realize and be periodically detected cloud host operating condition adjusted, it can timely and effectively avoid the operation feelings of cloud host adjusted When condition does not need increased CPU or memory and caused by CPU or memory waste.
Example IV
Fig. 4 is a kind of flow diagram of the method for adjust automatically cloud host operation that the embodiment of the present invention four provides.Such as Shown in Fig. 4, this method comprises:
Step 401, the operation information of cloud host is obtained, the operation information includes that memory usage and/or CPU are used Rate;
Step 402, determine whether to be more than default maximum operation data according to the operation information;
Step 403, if the operation information is more than default maximum operation data, the new interior of physical host distribution is received It deposits and/or new CPU;
Step 404, the current operational information that the cloud host is detected every preset time, determines the current operational information Whether lower than default minimum operation data;
Step 405, if the current operational information is lower than default minimum operation data, it is current to adjust the cloud host Memory and/or CPU are preset initial value.
Step 406, it after adjusting the cloud host current memory and/or CPU and being preset initial value, returns to execute and obtain The step of taking the operation information of cloud host.
Specifically, then returning and continuing to test after current memory or CPU are adjusted to preset initial value by cloud host The current operational information of cloud host.
The embodiment of the present invention provides a kind of method of adjust automatically cloud host operation, in the adjustment cloud host is current It deposits and/or CPU is after preset initial value, returns to the step of executing the operation information for obtaining cloud host, to realize periodicity The operation information of cloud host is detected, to adjust the memory of cloud host or the mesh of CPU according to the operation information of cloud host in time 's.
Embodiment five
Fig. 5 is a kind of flow diagram of the method for adjust automatically cloud host operation that the embodiment of the present invention five provides.Such as Shown in Fig. 5, this method comprises:
Step 501, the whether available free memory of physical host and/or free time CPU where detecting the cloud host;
Step 502, the operation information of cloud host is obtained, the operation information includes that memory usage and/or CPU are used Rate;
Step 503, determine whether to be more than default maximum operation data according to the operation information;
Step 504, if the operation information is more than default maximum operation data, the new interior of physical host distribution is received It deposits and/or new CPU;
Specifically, the present invention is can to distribute to the operation of cloud host with CPU according to physical machine in virtualization technology to use The characteristics of, it is the new memory of cloud host assignment and/or new CPU by physical host.
Preferably, the new memory and/or new CPU for receiving physical host distribution, comprising:
If the available free memory of physical host and/or free time CPU where the cloud host, it is big to obtain the free memory Small and/or idle CPU number;
From the free memory size and presets in increased memory size and select minimum value, and/or, from the free time It CPU number and presets in increased CPU number and selects minimum value.
Specifically, the size of the free memory on physical host and the size of idle CPU number are first detected, from free memory Size and preset in increased memory size and select minimum data, if free memory, which is less than, presets increased memory size, For cloud host assignment free memory;If free memory, which is greater than, presets increased memory size, increase for cloud host assignment is default Memory size.
Step 505, the current operational information that the cloud host is detected every preset time, determines the current operational information Whether lower than default minimum operation data;
Step 506, if the current operational information is lower than default minimum operation data, it is current to adjust the cloud host Memory and/or CPU are preset initial value.
The embodiment of the present invention provides a kind of method of adjust automatically cloud host operation, if the operation information is more than to preset most Big operation data then receives the new memory and/or new CPU of physical host distribution, if the physics master where the cloud host The available free memory of machine and/or free time CPU then obtain the free memory size and/or idle CPU number;Out of described the free time It deposits size and presets in increased memory size and select minimum value, and/or, from the idle CPU number and preset increased Select minimum value in CPU number, thus be embodied as the effective memory of cloud host assignment perhaps CPU improve memory or The utilization rate of CPU.
Embodiment six
Fig. 6 is a kind of flow diagram of the method for adjust automatically cloud host operation that the embodiment of the present invention six provides.Such as Shown in Fig. 6, this method comprises:
Cloud host can raise CPU several VMCPUMax, such as VMCPUMax=2 core, and representing to be cloud host CPU increases most 2 cores;
Cloud host CPU utilization rate threshold values VMCPUMaxUsed increases CPU said conditions for judging whether to meet, such as VMCPUMaxUsed=80%, then represent when cloud host CPU utilization rate VMCPUUsed >=80% when meet and increase CPU Several conditions;
CPU number is adjusted back initial for judging whether to meet by cloud host CPU utilization rate threshold values VMCPUMinUsed Number, such as VMCPUMinUsed=50% are then represented when cloud host CPU utilization rate VMCPUUsed≤50%, can be with It can initial number CPU number setting.
Step 601, it detects the current CPU usage VMCPUUsed of cloud host >=VMCPUMaxUsed (80%), meets 602 are entered step, is unsatisfactory for, is continued to test;
Step 602, physical machine CPU free time number HostFreeCPU > 0 where detecting current cloud host, meets and then enters step Rapid 603, it is unsatisfactory for, enters step 601;
Step 603, selected from HostFreeCPU and VMCPUMax the smallest numerical value min (HostFreeCPU, VMCPUMax it), and the numerical value is used to increase CPU number of cloud host, enters step 604;
Step 604, it detects whether the current CPU usage of cloud host meets and CPU initial number condition is set back VMCPUUsed≤VMCPUMinUsed, satisfaction enter step 605, are unsatisfactory for, continue to test;
Step 605, initial number VMCPU is arranged back in cloud host CPU number, reenters step 601 and continues to test.
The embodiment of the present invention provides a kind of method of adjust automatically cloud host operation, using virtualization technology, when detecting When client's cloud host CPU load is higher, suitably increase CPU number automatically for client makes client can to guarantee customer service quality Smoothly to spend the portfolio of burst or client made to have the more sufficient time that adjustment is gone to expand service ability, be cloud client with The user experience of hommization is carried out.
Embodiment seven
Fig. 7 is a kind of functional module signal of the device for adjust automatically cloud host operation that the embodiment of the present invention seven provides Figure.The device can be implemented by software and/or hardware, and can be realized by executing the method for adjust automatically cloud host operation.Such as Fig. 7 Shown, which includes:
Obtain module 701, for obtaining the operation information of cloud host, the operation information include memory usage and/or CPU usage;
First determining module 702, for determining whether to be more than default maximum operation data according to the operation information;
Receiving module 703 receives physical host distribution if being more than default maximum operation data for the operation information New memory and/or new CPU;
Second determining module 704, for detecting the current operational information of the cloud host every preset time, determine described in Whether current operational information is lower than default minimum operation data;
Module 705 is adjusted, if adjusting the cloud master lower than default minimum operation data for the current operational information The current memory of machine and/or CPU are preset initial value.
Preferably, described device further include:
First return module returns to acquisition module if being no more than default maximum operation data for the operation information Function;
Second return module, if returning to execution not less than default minimum operation data for the current operational information The function of second determining module;
Third return module, for after adjusting the cloud host current memory and/or CPU and being preset initial value, Return to the function of executing and obtain module.
Preferably, described device further include:
Detection module, for the whether available free memory of physical host and/or free time CPU where detecting the cloud host.
Preferably, the receiving module, comprising:
Acquiring unit, if being obtained for the available free memory of physical host and/or free time CPU where the cloud host The free memory size and/or idle CPU number;
Selecting unit, for from the free memory size and presetting and select minimum value in increased memory size, and/ Or, from the idle CPU number and presetting in increased CPU number and selecting minimum value.
The embodiment of the present invention provides a kind of device of adjust automatically cloud host operation, if the current operational information of cloud host is super Default maximum operation data is crossed, then is the new memory of cloud host assignment and/or new CPU by physical host, and every Interval preset time detects the current operational information of the cloud host, if lower than default minimum operation data, by the cloud master The current memory of machine or CPU are adjusted to preset initial value, to can be distributed with CPU according to physical machine in virtualization technology The characteristics of using is run to cloud host, during the operation of cloud host, when the CPU usage for detecting cloud host is higher It waits, suitably increases CPU number inside effective CPU several ranges, when checking the decline of cloud host CPU utilization rate, then by CPU Number adjusts back initial number, and client is allow smoothly to spend the portfolio of burst, brings the user of hommization for cloud client Experience.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (8)

1. a kind of method of adjust automatically cloud host operation, which is characterized in that the described method includes:
The operation information of cloud host is obtained, the operation information includes memory usage and/or CPU usage;
Determine whether to be more than default maximum operation data according to the operation information;
If the operation information is more than default maximum operation data, the new memory of physical host distribution and/or new is received CPU;
Wherein, if the new memory for receiving physical host distribution and/or new CPU include: the object where the cloud host The available free memory of host and/or free time CPU are managed, then obtains the free memory size and/or idle CPU number;
From the free memory size and presets in increased memory size and select minimum value, and/or, from the free time CPU It number and presets in increased CPU number and selects minimum value;
The current operational information of the cloud host is detected every preset time, it is default to determine whether the current operational information is lower than Minimum operation data;
If the current operational information adjusts the cloud host current memory and/or CPU lower than default minimum operation data For preset initial value.
2. the method according to claim 1, wherein the method also includes:
If the operation information is no more than default maximum operation data, the step for executing the operation information for obtaining cloud host is returned Suddenly.
3. the method according to claim 1, wherein the method also includes:
If the current operational information returns to execution every preset time and detects the cloud not less than default minimum operation data The step of current operational information of host.
4. the method according to claim 1, wherein the method also includes:
After adjusting the cloud host current memory and/or CPU and being preset initial value, the fortune for executing and obtaining cloud host is returned The step of row information.
5. the method according to claim 1, which is characterized in that described to receive the new of physical host distribution Memory and/or new CPU before, further includes:
The whether available free memory of physical host and/or free time CPU where detecting the cloud host.
6. a kind of device of adjust automatically cloud host operation, which is characterized in that described device includes:
Module is obtained, for obtaining the operation information of cloud host, the operation information includes that memory usage and/or CPU are used Rate;
First determining module, for determining whether to be more than default maximum operation data according to the operation information;
Receiving module receives the new of physical host distribution if being more than default maximum operation data for the operation information Memory and/or new CPU;
The receiving module, comprising:
Acquiring unit, if for the available free memory of physical host and/or free time CPU where the cloud host, described in acquisition Free memory size and/or idle CPU number;
Selecting unit, for from the free memory size and presetting in increased memory size and select minimum value, and/or, From the idle CPU number and presets in increased CPU number and select minimum value;
Second determining module determines the current fortune for detecting the current operational information of the cloud host every preset time Whether row information is lower than default minimum operation data;
Module is adjusted, if it is current to adjust the cloud host lower than default minimum operation data for the current operational information Memory and/or CPU be preset initial value.
7. device according to claim 6, which is characterized in that described device further include:
First return module returns to the function for obtaining module if being no more than default maximum operation data for the operation information Energy;
Second return module, if returning to execution second not less than default minimum operation data for the current operational information The function of determining module;
Third return module, for returning after adjusting the cloud host current memory and/or CPU and being preset initial value Execute the function of obtaining module.
8. device according to claim 6 or 7, which is characterized in that described device further include:
Detection module, for the whether available free memory of physical host and/or free time CPU where detecting the cloud host.
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 CN105760230A (en) 2016-07-13
CN105760230B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108512673B (en) * 2017-02-24 2021-08-03 腾讯科技(深圳)有限公司 Cloud service quality monitoring method and device and server
CN107844372B (en) * 2017-10-17 2021-09-07 广东睿江云计算股份有限公司 Memory allocation method and system
CN109684074B (en) * 2018-11-12 2024-07-05 平安科技(深圳)有限公司 Physical machine resource allocation method and terminal equipment
CN110597639B (en) * 2019-09-23 2021-07-30 腾讯科技(深圳)有限公司 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
CN112702365B (en) * 2021-03-24 2021-07-06 北京安信天行科技有限公司 Data security situation monitoring method, system and equipment based on virtual cloud
CN113569137B (en) * 2021-07-06 2024-06-18 北京汇钧科技有限公司 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

Also Published As

Publication number Publication date
CN105760230A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
CN105760230B (en) A kind of method and device of adjust automatically cloud host operation
US20190026344A1 (en) Application Recommending Method and System, and Server
US20150365349A1 (en) Automated server cluster selection for virtual machine deployment
US8572621B2 (en) Selection of server for relocation of application program based on largest number of algorithms with identical output using selected server resource criteria
CN106874100B (en) Computing resource allocation method and device
CN109739527B (en) Method, device, server and storage medium for client gray scale release
CN106201661A (en) Method and apparatus for elastic telescopic cluster virtual machine
CN104239150B (en) A kind of method and device of hardware resource adjustment
CN109800204B (en) Data distribution method and related product
US20150019722A1 (en) Determining, managing and deploying an application topology in a virtual environment
CN103941871A (en) Method and equipment for controlling hardware operating state of intelligent terminal
CN111045821A (en) Container scheduling method and device, container scheduler and readable storage medium
CN104980472A (en) Network traffic control method and device
CN107957888B (en) Application program gray scale upgrading method and device
US9069881B2 (en) Adaptation of probing frequency for resource consumption
US20190147443A1 (en) Payment method based on mobile terminal and mobile terminal
CN105791166B (en) A kind of method and system of load balancing distribution
CN107239337A (en) The distribution of virtual resources and dispatching method and system
CN109284229B (en) Dynamic adjustment method based on QPS and related equipment
CN114185767A (en) AB test method, device and computer readable storage medium
CN106845215A (en) Based on safety protecting method and device under virtualized environment
CN112822044B (en) Distributed cluster deployment method and device, electronic equipment and readable storage medium
CN106886477B (en) Method and device for setting monitoring threshold in cloud system
CN107634978B (en) Resource scheduling method and device
CN114331446B (en) Method, device, equipment and medium for realizing out-of-chain service of block chain

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