CN109766190A - Cloud resource dispatching method, device, equipment and storage medium - Google Patents
Cloud resource dispatching method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109766190A CN109766190A CN201910039466.5A CN201910039466A CN109766190A CN 109766190 A CN109766190 A CN 109766190A CN 201910039466 A CN201910039466 A CN 201910039466A CN 109766190 A CN109766190 A CN 109766190A
- Authority
- CN
- China
- Prior art keywords
- subregion
- cloud host
- cloud
- load information
- cpu
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Power Sources (AREA)
Abstract
Cloud resource dispatching method, device, equipment and storage medium provided by the present application, belong to field of cloud calculation.The cloud resource dispatching method includes: the load information for obtaining the CPU of each cloud host in the first subregion;Determine whether the load information of the CPU of each cloud host meets the first preset rules;When load information meets the first preset rules, the cloud host migration corresponding to the load information of first preset rules will be met to the second subregion of cloud platform.Thus by the cloud host migration of the first subregion to the second subregion, and then the power consumption difference between different subregions is balanced, reduce power consumption cost.
Description
Technical field
This application involves field of cloud calculation, in particular to cloud resource dispatching method, device, equipment and storage medium.
Background technique
Isomery CPU (Central Processing Unit, central processing unit) manager of data center traditional at present
The isomery CPU device newly introduced is often respectively deployed in cloud platform management system (hereinafter referred to as " cloud platform ", portion by case
Be deployed on inside data center, for will data center's hardware capabilities virtualization after be supplied to user) different subregions, to carry out list
Solely management, and then can using CPU self-characteristic realize reduce data center power consumption, but still result in power consumption cost compared with
It is high.
Summary of the invention
In view of this, cloud resource dispatching method, device, equipment and storage medium provided by the embodiments of the present application.
In a first aspect, a kind of cloud resource dispatching method provided by the embodiments of the present application, comprising: obtain each in the first subregion
The load information of the CPU of cloud host;Determine whether the load information of the CPU of each cloud host meets the first default rule
Then;If so, the cloud host migration corresponding to the load information of first preset rules will be met to cloud platform
Second subregion.
During above-mentioned realization, by the load information for obtaining the CPU of each cloud host in the first subregion;It determines each
Whether the load information of the CPU of the cloud host meets the first preset rules;Meet the first preset rules in load information
When, the cloud host migration corresponding to the load information of first preset rules will be met to second point of cloud platform
Area.Thus by the cloud host migration of the first subregion to the second subregion, and then the power consumption difference between different subregions is balanced, reduce function
Consume cost.
With reference to first aspect, the embodiment of the present application provides the first possible embodiment of first aspect, and described
The power consumption of one subregion is higher than the power consumption of second subregion;The load information of the CPU of each cloud host of determination
Whether first preset rules are met, comprising: determine load value entrained by the load information of the CPU of each cloud host
Whether less than the first preset threshold;If so, characterizing the load information meets the first preset rules.
During above-mentioned realization, when being higher than the power consumption of second subregion by the power consumption in the first subregion, acquisition the
Load value entrained by the load information of the CPU of one subregion medium cloud host, thus by judging load value whether less than the
One preset threshold determines whether the load information of the CPU of each cloud host meets the first preset rules, Jin Eryou
Effect improves the accuracy to load information judgement.
With reference to first aspect, the embodiment of the present application provides second of possible embodiment of first aspect, described to incite somebody to action
Meet the second subregion of the cloud host migration corresponding to the load information of first preset rules to cloud platform, wraps
It includes: determining whether the quantity of second subregion is unique;If it is not, determining target point from least two second subregions
Area;To meet the cloud host corresponding to the load information of first preset rules from first zoned migration to
The target partition in the cloud platform.
During above-mentioned realization, whether the quantity by determination second subregion is unique;In the quantity of the second subregion
When not unique, target partition is determined from least two second subregions;It will meet described in first preset rules
The target partition of the cloud host from first zoned migration into the cloud platform corresponding to load information.To
It can make cloud host migration to target partition, and then realize the power-consumption balance of optimization the first subregion and the second subregion, effectively
Power consumption cost is saved.
The possible embodiment of second with reference to first aspect, the embodiment of the present application provide the third of first aspect
Possible embodiment, it is described to determine target partition from least two second subregions, comprising: to determine at least two institutes
State whether the second subregion has cloud host to move into before current time;If it is not, by any at least two second subregions
One second subregion is as target partition.
During above-mentioned realization, by determining whether at least two second subregions have cloud master before current time
Machine is moved into;If moved into without cloud host before current time, by any one institute at least two second subregions
The second subregion is stated as target partition.So as to control the cloud host number for moving to each second subregion, avoid moving to
Cloud host number in a certain second subregion is excessive, leads to excess load.And then the cloud host number of each second subregion is balanced, into
One step ensures that the cloud host in each second subregion can operate normally.
With reference to first aspect, the embodiment of the present application provides the 4th kind of possible embodiment of first aspect, and described
The power consumption of one subregion is lower than second subregion;Whether the load information of the CPU of each cloud host of determination is full
The first preset rules of foot, comprising: determine whether load value entrained by the load information of the CPU of each cloud host is big
In the second preset threshold;If so, characterizing the load information meets the first preset rules.
During above-mentioned realization, when being lower than second subregion by the power consumption in the first subregion, the first subregion is acquired
Load value entrained by the load information of the CPU of medium cloud host, thus by judging it is default whether load value is greater than second
Threshold values determines whether the load information of the CPU of each cloud host meets the first preset rules, and then effectively improves
To the accuracy of load information judgement.
With reference to first aspect, the embodiment of the present application provides the 5th kind of possible embodiment of first aspect, described true
Whether the load information of the CPU of fixed each cloud host meets the first preset rules, comprising: determines each cloud master
Whether load value entrained by the load information of the CPU of machine matches with third preset threshold within a preset period of time;If so,
It will be with the matched cloud host of third preset threshold as cloud host to be migrated;Determine each cloud master to be migrated
Whether machine carries migration mark;If it is not, characterizing the load information meets the first preset rules.
During above-mentioned realization, by judge each cloud host CPU the load information entrained by bear
Whether load value matches with third preset threshold within a preset period of time;Load value within a preset period of time with third preset threshold
It, will be with the matched cloud host of third preset threshold as cloud host to be migrated when matching;Judge again each described
Whether cloud host to be migrated carries migration mark;If it is not, characterizing the load information meets the first preset rules.So that
The cloud host to be migrated determined is more accurate, and the cloud host that will have just moved into is avoided to migrate out again, and then reduces money
It is chaotic to avoid cloud host migration for source processing pressure.
The 5th kind of possible embodiment with reference to first aspect, the embodiment of the present application provide the 6th kind of first aspect
Possible embodiment, after determining whether each cloud host to be migrated carries migration mark, further includes: if so,
Determine the transit time for carrying the corresponding cloud host to be migrated of the migration mark;Whether determine the transit time
Greater than the 4th preset threshold;If so, characterizing the load information meets the first preset rules.
During above-mentioned realization, by determining that this is to be migrated when the cloud carrying host to be migrated is with migration mark
Transit time corresponding to cloud host;It determines whether the transit time is greater than the 4th preset threshold again, is being greater than or equal to the
When four preset thresholds, determine that load information meets the first preset rules.So as to further avoid the cloud master that will have just moved into
Machine migrates out again, and then reduces resource processing pressure, and it is chaotic to avoid cloud host migration.
With reference to first aspect, the embodiment of the present application provides the 7th kind of possible embodiment of first aspect, the side
Method further include: generate and recorded for recording from first zoned migration to the migration of second subregion;According to the migration
Record determines the power consumption save the cost of the cloud platform.
During above-mentioned realization, by generating for recording from the first zoned migration moving to second subregion
Move record;The power consumption save the cost of the cloud platform is determined according to the migration record.User can be made more intuitive and clear
Understand to Chu power consumption save the cost brought by migration.
Second aspect, a kind of cloud resource dispatching device provided by the embodiments of the present application, comprising: module is obtained, for obtaining
The load information of the CPU of each cloud host in first subregion;Processing module, the institute of the CPU for determining each cloud host
State whether load information meets the first preset rules;Transferring module, for if so, will meet described in first preset rules
The cloud host migration corresponding to load information to cloud platform the second subregion.
In conjunction with second aspect, the embodiment of the present application provides the first possible embodiment of second aspect, and described
The power consumption of one subregion is higher than the power consumption of second subregion;The processing module, is also used to: determining each cloud host
Whether load value entrained by the load information of CPU is less than the first preset threshold;If so, it is full to characterize the load information
The first preset rules of foot.
In conjunction with second aspect, the embodiment of the present application provides second of possible embodiment of second aspect, described to move
Shifting formwork block, is also used to: determining whether the quantity of second subregion is unique;If it is not, from least two second subregions really
Make target partition;The cloud host corresponding to the load information of first preset rules will be met from described first
The target partition of the zoned migration into the cloud platform.
In conjunction with second of possible embodiment of second aspect, the embodiment of the present application provides the third of second aspect
Possible embodiment, it is described to determine target partition from least two second subregions, comprising: to determine at least two institutes
State whether the second subregion has cloud host to move into before current time;If it is not, by any at least two second subregions
One second subregion is as target partition.
In conjunction with second aspect, the embodiment of the present application provides the 4th kind of possible embodiment of second aspect, and described
The power consumption of one subregion is lower than second subregion;The processing module, is also used to: determining the institute of the CPU of each cloud host
State whether load value entrained by load information is greater than the second preset threshold;If so, characterizing the load information meets first
Preset rules.
In conjunction with second aspect, the embodiment of the present application provides the 5th kind of possible embodiment of second aspect, the place
Module is managed, is also used to: determining load value entrained by the load information of the CPU of each cloud host whether when default
Between matched with third preset threshold in section;If so, will be used as with the matched cloud host of the third preset threshold institute wait move
Move cloud host;Determine whether each cloud host to be migrated carries migration mark;Meet if it is not, characterizing the load information
First preset rules.
In conjunction with the 5th kind of possible embodiment of second aspect, the embodiment of the present application provides the 6th kind of second aspect
Possible embodiment, after determining whether each cloud host to be migrated carries migration mark, the processing module,
It is also used to: if so, determining the transit time for carrying the corresponding cloud host to be migrated of the migration mark;Described in determination
Whether transit time is greater than the 4th preset threshold;If so, characterizing the load information meets the first preset rules.
In conjunction with second aspect, the embodiment of the present application provides the 7th kind of possible embodiment of second aspect, the cloud
Resource scheduling device further include: generation module is used for: it generates for recording from first zoned migration to second subregion
Migration record;The power consumption save the cost of the cloud platform is determined according to the migration record.
The third aspect, a kind of terminal device provided by the embodiments of the present application, comprising: memory, processor and be stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
It realizes as described in any one of first aspect the step of cloud resource dispatching method.
Fourth aspect, a kind of storage medium provided by the embodiments of the present application are stored with instruction on the storage medium, work as institute
Instruction is stated when running on computers, so that the computer executes such as the described in any item cloud resource dispatching parties of first aspect
Method.
Other feature and advantage of the disclosure will illustrate in the following description, alternatively, Partial Feature and advantage can be with
Deduce from specification or unambiguously determine, or by implement the disclosure above-mentioned technology it can be learnt that.
To enable the above objects, features, and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application, below will be to needed in the embodiment attached
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the flow chart for the cloud resource dispatching method that the application first embodiment provides;
Fig. 2 is the functional block diagram for the cloud resource dispatching device that the application second embodiment provides;
Fig. 3 is a kind of schematic diagram for terminal device that the application 3rd embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application
In attached drawing, technical solutions in the embodiments of the present application is described.
With reference to the accompanying drawing, it elaborates to some embodiments of the application.In the absence of conflict, following
Feature in embodiment and embodiment can be combined with each other.
First embodiment
Due to the isomery CPU Managed Solution of existing data center, the isomery CPU device difference portion that often will newly introduce
It is deployed on different subregions individually to be managed, the reduction of power consumption of data center is realized using CPU self-characteristic, and then lead to different points
Power consumption between area differs greatly.In order to optimize the power consumption between different subregions and reduce power consumption cost, the present embodiment mentions first
A kind of cloud resource dispatching method is supplied, it should be noted that step shown in the flowchart of the accompanying drawings can be in such as one group of meter
It is executed in the computer system of calculation machine executable instruction, although also, logical order is shown in flow charts, certain
In the case of, it can be with the steps shown or described are performed in an order that is different from the one herein.It is situated between in detail to the present embodiment below
It continues.
Referring to Fig. 1, being the flow chart of cloud resource dispatching method provided by the embodiments of the present application.It below will be to shown in Fig. 1
Detailed process be described in detail.
Step S101 obtains the load information of the CPU of each cloud host in the first subregion.
Optionally, load information includes load value.For example, the load value of CPU can be 30%.
Certainly, in actual use, load information can also include the duration of load value, for example, the load of CPU is
It continue for 20 seconds when 30%.Here, being not especially limited.
Optionally, the first subregion can be default partition, be also possible to non-default subregion.In general, default partition can make
With the relatively high standard CPU of power consumption, therefore its power consumption is higher than non-default subregion.
Optionally, operation has multiple cloud hosts in the first subregion.
Optionally, the multiple cloud hosts run in the first subregion can be what user was created before current time.
As an implementation, step S101 includes: that each cloud host in the first subregion is obtained in special time period
CPU load information.
Optionally, special time period is 7 days.
Certainly, in actual use, special time period can be adjusted according to user demand, for example, special time period
It can also be 6 days either 14 days etc..Here, being not especially limited.
In the embodiment of the present application, by periodically obtaining the load information of the CPU of each cloud host in the first subregion, thus
The load information of the CPU of cloud host is periodically acquired, and then realizes and cloud host each in the first subregion is stablized
Monitoring, effectively improve the monitoring efficiency to cloud host.
In a possible embodiment, before step S101, cloud resource dispatching method further include: obtain for flat in cloud
Platform creates the creation instruction of cloud host;Cloud host corresponding with the creation instruction is created in the cloud platform.For example, when the
When one subregion is default partition, cloud host corresponding with the creation instruction is created in the first subregion.
Optionally, cloud host refers to the virtual unit of cloud platform bottom actual creation.For example, Client-initiated creation instruction
It can also be and create a virtual router or dummy load balanced device etc., but the still cloud master of cloud platform bottom actual creation
Machine.Here, being not especially limited.
Optionally, pipe of receiving in cloud platform has the CPU device of isomery, when carrying out new isomery CPU device deployment, Ke Yizeng
Add a new subregion to dispose new CPU device.
Step S102, determines whether the load information of the CPU of each cloud host meets the first preset rules.
As an implementation, the power consumption of the first subregion is higher than the power consumption of the second subregion, and step S102 is comprised determining that often
Whether load value entrained by the load information of the CPU of a cloud host is less than the first preset threshold;If so, characterization
The load information meets the first preset rules.
Optionally, the first preset threshold is 30%.
Certainly, in actual use, the setting of the first preset threshold can be set according to user's actual need, for example,
It can be set to 35% or other numerical value.Here, being not especially limited.
In the embodiment of the present application, when being higher than the power consumption of the second subregion by the power consumption in the first subregion, first point is acquired
Load value entrained by the load information of the CPU of area's medium cloud host, thus by judging whether load value is pre- less than first
If threshold values determines whether the load information of the CPU of each cloud host meets the first preset rules, and then effectively mentions
The high accuracy to load information judgement, further such that when load value is less than the first preset threshold, it can be by the load
It is worth corresponding cloud host from the first zoned migration to the second subregion, i.e., from the zoned migration of high power consumption to the subregion of low-power consumption.Into
And the power consumption of the first subregion is effectively reduced, save power consumption cost.
As another embodiment, the power consumption of the first subregion is lower than the second subregion;Step S102 comprises determining that each institute
State whether load value entrained by the load information of the CPU of cloud host is greater than the second preset threshold;If so, described in characterization
Load information meets the first preset rules.
Optionally, the second preset threshold is 70%.
Certainly, in actual use, the setting of the first preset threshold can be set according to user's actual need, for example,
It can be set to 75% or other numerical value.Here, being not especially limited.
In the embodiment of the present application, when being lower than the second subregion by the power consumption in the first subregion, the first subregion medium cloud is acquired
Load value entrained by the load information of the CPU of host, thus by judging whether load value is greater than the second preset threshold
It determines whether the load information of the CPU of each cloud host meets the first preset rules, and then effectively increases pair
The accuracy of load information judgement, further such that when load value is greater than the first preset threshold, it can be corresponding by the load value
Cloud host from the first zoned migration to the second subregion, i.e., from the zoned migration of low-power consumption to the subregion of high power consumption.And then effectively
The power consumption for reducing the first subregion has saved power consumption cost.And at the same time also allowing the better work of cloud host being migrated
Make, improves the working efficiency of cloud host.
As another embodiment, step S102 comprises determining that the load information of the CPU of each cloud host
Whether entrained load value matches with third preset threshold within a preset period of time;If so, will be with the third preset threshold
The matched cloud host of institute is as cloud host to be migrated;Determine whether each cloud host to be migrated carries migration mark
Know;If it is not, characterizing the load information meets the first preset rules.
Optionally, preset time period is 20 seconds.
Certainly, in actual use, preset time period can be adjusted according to user demand, for example, special time period
It can also be 10 seconds either 30 seconds etc..Here, being not especially limited.
Optionally, if the power consumption of the first subregion is lower than the power consumption of the second subregion, third preset threshold is second default
Threshold values.Determine load value entrained by the load information of the CPU of each cloud host whether within a preset period of time with
Third preset threshold matching, comprising: whether determine load value entrained by the load information of the CPU of each cloud host
It is greater than third preset threshold within a preset period of time.It will be used as with the matched cloud host of the third preset threshold institute wait move
Move cloud host, comprising: will be greater than the cloud host of third preset threshold as cloud host to be migrated.
Optionally, if the power consumption of the first subregion is higher than the power consumption of the second subregion, third preset threshold is first default
Threshold values.Determine load value entrained by the load information of the CPU of each cloud host whether within a preset period of time with
Third preset threshold matching, comprising: whether determine load value entrained by the load information of the CPU of each cloud host
Within a preset period of time less than the first preset threshold.It will be used as with the matched cloud host of the third preset threshold institute wait move
Move cloud host, comprising: using the cloud host less than the first preset threshold as cloud host to be migrated.
Optionally, migration mark can be character, be also possible to a character string.
Optionally, migration mark is the cloud host being migrated for characterizing the cloud host, for example, from the first zoned migration
To the second subregion, or from the second zoned migration to the first subregion.
In the embodiment of the present application, by judge each cloud host CPU the load information entrained by bear
Whether load value matches with third preset threshold within a preset period of time;Load value within a preset period of time with third preset threshold
It, will be with the matched cloud host of third preset threshold as cloud host to be migrated when matching;Judgement is each respectively again
Whether the cloud host to be migrated carries migration mark;If each cloud host to be migrated does not carry migration mark, table
It levies the load information and meets the first preset rules.So that the cloud host to be migrated determined is more accurate, avoid
The cloud host just moved into is migrated out again, and then reduces resource processing pressure, it is chaotic to avoid cloud host migration.
Optionally, after determining whether each cloud host to be migrated carries migration mark, further includes: if described
Cloud carrying host to be migrated determines with migration mark and carries moving for the corresponding cloud host to be migrated of the migration mark
Shift time;Determine whether the transit time is greater than or equal to the 4th preset threshold;If so, characterizing the load information meets the
One preset rules.
Optionally, transit time refers to after from the first zoned migration to the second subregion, and the cloud host is deposited in the second subregion
Time, or after from the second zoned migration to the first subregion, cloud host time existing for the first subregion.
As an example it is assumed that cloud host A is after from the first zoned migration to the second subregion, the time existing for the second subregion
For t, then transit time is t.
Optionally, the 4th preset threshold is 4 hours.
Certainly, in actual use, the 4th preset threshold can also be 3.5 hours either 4.5 hours etc..Here, not
Make specific limit.
In the embodiment of the present application, by determining the migration when the cloud carrying host to be migrated is with migration mark
The transit time of the corresponding cloud host to be migrated of mark;Determine whether the transit time is greater than the 4th preset threshold,
When being greater than or equal to four preset thresholds, determine that load information meets the first preset rules.So as to further avoid by
The cloud host just moved into migrates out again, and then reduces resource processing pressure, and it is chaotic to avoid cloud host migration.
As an example it is assumed that cloud host B is 3 hours from the first zoned migration to the time of the second subregion, when due to migration
Between less than the 4th preset threshold, it is likely that cause cloud host B also not completely from high power consumption state be converted to low-power consumption (or from
Low power consumpting state is converted to high power consumption state), and then Wu is avoided to migrate out cloud host B from current partition again.
Step S103, if so, the cloud host corresponding to the load information of first preset rules will be met
It migrates to the second subregion of cloud platform.
Optionally, if the power consumption of the second subregion is lower than the first subregion, the quantity of the second subregion can be multiple.
Certainly, if the power consumption of the first subregion is lower than the second subregion, the quantity of the first subregion can be multiple.
Optionally, the first subregion can not be waited with the CPU sum in the second subregion.
As a kind of implement scene, each first subregion and the second subregion are disposed using isomorphism CPU type, but the first subregion and
The super quota of different CPU (the logic CPU amount that i.e. 1 physical cpu can be virtual) is arranged in second subregion, and introduces under different super quotas
The difference weight of power consumption, and then to simulate the scene of isomery CPU.And then more complicated changeable enterprise-level business field is coped with to realize
The technical effect of scape.
As an implementation, step S201, comprising: determine whether the quantity of second subregion is unique;If it is not, from
Target partition is determined at least two second subregions;The load information institute for meeting first preset rules is right
The target partition of the cloud host answered from first zoned migration into the cloud platform.
Optionally, target partition is determined from least two second subregions, comprising: determine at least two described
Whether two subregions have cloud host to move into before current time;If it is not, by any one at least two second subregions
Second subregion is as target partition.
In the embodiment of the present application, by determining whether at least two second subregions have cloud master before current time
Machine is moved into;If moved into without cloud host before current time, by any one institute at least two second subregions
The second subregion is stated as target partition.So as to control the cloud host number for moving to each second subregion, avoid moving to
Cloud host number in a certain second subregion is excessive, leads to excess load.And then the cloud host number of each second subregion is balanced, into
One step ensures that the cloud host in each second subregion can operate normally.
Optionally, target partition is determined from least two second subregions, comprising: at random from described at least two
Target partition is determined in second subregion.
It certainly, in actual use, can also be according to migration sequence, for example, having migrated a cloud master before current time
For machine to one of them the second subregion, then the cloud host that current time is migrated just moves to another second subregion.
In the embodiment of the present application, whether the quantity by determination second subregion is unique;In the quantity of the second subregion
When not unique, target partition is determined from least two second subregions;It will meet described in first preset rules
The target partition of the cloud host from first zoned migration into the cloud platform corresponding to load information.To
It can make cloud host migration to target partition, and then realize the power-consumption balance of optimization the first subregion and the second subregion, effectively
Power consumption cost is saved.
As an example it is assumed that every cloud host average power consumption of the first subregion is 60 watts per hour, every cloud of the second subregion
Host average power consumption is 25 watts per hour, after by cloud host from the first zoned migration to the second subregion, can save 35 per hour
Watt.
In a possible embodiment, cloud resource dispatching method provided by the embodiment of the present application, further includes: generation is used for
Record is recorded from first zoned migration to the migration of second subregion;The cloud platform is determined according to migration record
Power consumption save the cost.
Optionally, migration record include but is not limited to the subregion before migrating and partition information after migration, migration frequency,
Migrate quantity etc..For example, further including the saved power consumption of each migration.
Optionally, the power consumption save the cost of the cloud platform is determined according to the migration record, comprising: according to cloud host
Migration quantity and each power consumption save the cost for migrating saved power consumption and determining the cloud platform.
Continuing for by taking above-mentioned example as an example, it is assumed that the first cloud host average power consumption of subregion every is 60 watts per hour, the
The two cloud host average power consumptions of subregion every are 25 watts per hour, are 10 from the migration quantity of the first zoned migration to the second subregion,
Saved power consumption 35 is then migrated every time, then power consumption save the cost is 10*35=350, i.e., saves 350 watts per hour.
In the embodiment of the present application, by generating for recording from the first zoned migration moving to second subregion
Move record;The power consumption save the cost of the cloud platform is determined according to the migration record.User can be made more intuitive and clear
Understand to Chu power consumption save the cost brought by migration.
Cloud resource dispatching method provided by the embodiment of the present application, by the CPU for obtaining each cloud host in the first subregion
Load information;Determine whether the load information of the CPU of each cloud host meets the first preset rules;Believe in load
When breath meets the first preset rules, the cloud host corresponding to the load information for meeting first preset rules is moved
Move to the second subregion of cloud platform.To by the cloud host migration of the first subregion to the second subregion, so balance different subregions it
Between power consumption difference, reduce power consumption cost.
Second embodiment
Corresponding to the cloud resource dispatching method in first embodiment, Fig. 2 shows using the money of cloud shown in first embodiment
The one-to-one cloud resource dispatching device of source dispatching method.As shown in Fig. 2, the cloud resource dispatching device 400 includes obtaining mould
Block 410, processing module 420 and transferring module 430.Wherein, module 410, the reality of processing module 420 and transferring module 430 are obtained
Existing function is gathered with step corresponding in first embodiment to be corresponded, and to avoid repeating, the present embodiment is not described in detail one by one.
Module 410 is obtained, for obtaining the load information of the CPU of each cloud host in the first subregion.
Processing module 420, for determining it is default whether the load information of CPU of each cloud host meets first
Rule.
As an implementation, the power consumption of first subregion is higher than the power consumption of second subregion;The processing mould
Whether block 420, is also used to: determining load value entrained by the load information of the CPU of each cloud host less than first
Preset threshold;If so, characterizing the load information meets the first preset rules.
As another embodiment, the power consumption of first subregion is lower than second subregion;The processing module
420, it is also used to: it is pre- to determine whether load value entrained by the load information of the CPU of each cloud host is greater than second
If threshold values;If so, characterizing the load information meets the first preset rules.
As another embodiment, the processing module 420, is also used to: determining the institute of the CPU of each cloud host
State whether load value entrained by load information matches with third preset threshold within a preset period of time;If so, will be with described
The matched cloud host of three preset thresholds institute is as cloud host to be migrated;Determine whether each cloud host to be migrated carries
There is migration to identify;If it is not, characterizing the load information meets the first preset rules.
Optionally, after determining whether each cloud host to be migrated carries migration mark, the processing module
420, it is also used to: if so, determining the transit time for carrying the corresponding cloud host to be migrated of the migration mark;It determines
Whether the transit time is greater than the 4th preset threshold;If so, characterizing the load information meets the first preset rules.
Transferring module 430, described in if so, will meet corresponding to the load information of first preset rules
Cloud host migration to cloud platform the second subregion.
Optionally, the transferring module 430, is also used to: determining whether the quantity of second subregion is unique;If it is not, from
Target partition is determined at least two second subregions;The load information institute for meeting first preset rules is right
The target partition of the cloud host answered from first zoned migration into the cloud platform.
Optionally, described to determine target partition from least two second subregions, comprising: to determine at least two institutes
State whether the second subregion has cloud host to move into before current time;If it is not, by any at least two second subregions
One second subregion is as target partition.
In a possible embodiment, the cloud resource dispatching device 400 further include: generation module is used for: generation is used for
Record is recorded from first zoned migration to the migration of second subregion;The cloud platform is determined according to migration record
Power consumption save the cost.
3rd embodiment
As shown in figure 3, being the schematic diagram of terminal device 500.The terminal device 500 includes memory 502, processor
504 and it is stored in the computer program 503 that can be run in the memory 502 and on the processor 504, the calculating
The cloud resource dispatching method in first embodiment is realized when machine program 503 is executed by processor 504, to avoid repeating, this
Place repeats no more.Alternatively, realizing cloud resource tune described in second embodiment when the computer program 503 is executed by processor 504
The function of each module/unit in device is spent, to avoid repeating, details are not described herein again.
Illustratively, computer program 503 can be divided into one or more module/units, one or more mould
Block/unit is stored in memory 502, and is executed by processor 504, to complete the application.One or more module/units
It can be the series of computation machine program instruction section that can complete specific function, the instruction segment is for describing computer program 503
Implementation procedure in terminal device 500.For example, computer program 503 can be divided into the acquisition mould in second embodiment
Block 410, processing module 420 and transferring module 430, the concrete function of each module as described in the first embodiment or the second embodiment,
It will not repeat them here.
Terminal device 500 can be desktop PC and cloud server etc. and calculate equipment.
Wherein, memory 502 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 502 is for storing program, and the processor 504 executes described program after receiving and executing instruction, aforementioned
The method for the flow definition that the embodiment of the present application any embodiment discloses can be applied in processor 504, or by processor
504 realize.
Processor 504 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 504 can
To be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit (Network
Processor, NP) etc.;It can also be digital signal processor (Digital Signal Processor, DSP), dedicated integrated
Circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present application.It is general
Processor can be microprocessor or the processor is also possible to any conventional processor etc..
It is understood that structure shown in Fig. 3 is only a kind of structural schematic diagram of terminal device 500, terminal device 500
It can also include than more or fewer components shown in Fig. 3.Each component shown in Fig. 3 can use hardware, software or its group
It closes and realizes.
Fourth embodiment
The embodiment of the present application also provides a kind of storage medium, and instruction is stored on the storage medium, when described instruction exists
The cloud resource dispatching party in first embodiment is realized when running on computer, when the computer program is executed by processor
Method, to avoid repeating, details are not described herein again.Alternatively, realizing second embodiment institute when the computer program is executed by processor
The function of each module/unit in cloud resource dispatching device is stated, to avoid repeating, details are not described herein again.
Through the above description of the embodiments, those skilled in the art can be understood that the application can lead to
Hardware realization is crossed, the mode of necessary general hardware platform can also be added to realize by software, based on this understanding, this Shen
Technical solution please can be embodied in the form of software products, which can store in a non-volatile memories
In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.), including some instructions are used so that a computer equipment (can be
Personal computer, server or network equipment etc.) execute each implement scene of the application method.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field
For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair
Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.It should also be noted that similar label and letter exist
Similar terms are indicated in following attached drawing, therefore, once being defined in a certain Xiang Yi attached drawing, are then not required in subsequent attached drawing
It is further defined and explained.
Claims (11)
1. a kind of cloud resource dispatching method characterized by comprising
Obtain the load information of the CPU of each cloud host in the first subregion;
Determine whether the load information of the CPU of each cloud host meets the first preset rules;
If so, the cloud host migration corresponding to the load information of first preset rules will be met to cloud platform
Second subregion.
2. the method according to claim 1, wherein the power consumption of first subregion is higher than second subregion
Power consumption;Whether the load information of the CPU of each cloud host of determination meets the first preset rules, comprising:
Determine load value entrained by the load information of the CPU of each cloud host whether less than the first preset threshold;
If so, characterizing the load information meets the first preset rules.
3. the method according to claim 1, wherein the load that first preset rules will be met
The cloud host migration corresponding to information to cloud platform the second subregion, comprising:
Determine whether the quantity of second subregion is unique;
If it is not, determining target partition from least two second subregions;
The cloud host corresponding to the load information of first preset rules will be met from first zoned migration
To the target partition in the cloud platform.
4. according to the method described in claim 3, it is characterized in that, described determine mesh from least two second subregions
Mark subregion, comprising:
Determine whether at least two second subregions have cloud host to move into before current time;
If it is not, using any one of second subregion at least two second subregions as target partition.
5. the method according to claim 1, wherein the power consumption of first subregion is lower than second subregion;
Whether the load information of the CPU of each cloud host of determination meets the first preset rules, comprising:
Determine whether load value entrained by the load information of the CPU of each cloud host is greater than the second preset threshold;
If so, characterizing the load information meets the first preset rules.
6. the method according to claim 1, wherein the CPU's of each cloud host of the determination is described negative
Whether information carrying breath meets the first preset rules, comprising:
Determine load value entrained by the load information of the CPU of each cloud host whether within a preset period of time with
The matching of three preset thresholds;
If so, will be with the matched cloud host of third preset threshold as cloud host to be migrated;
Determine whether each cloud host to be migrated carries migration mark;
If it is not, characterizing the load information meets the first preset rules.
7. according to the method described in claim 6, it is characterized in that, determining whether each cloud host to be migrated carries
After migration mark, further includes:
If so, determining the transit time for carrying the corresponding cloud host to be migrated of the migration mark;
Determine whether the transit time is greater than the 4th preset threshold;
If so, characterizing the load information meets the first preset rules.
8. the method according to claim 1, wherein the method also includes:
It generates and is recorded for recording from first zoned migration to the migration of second subregion;
The power consumption save the cost of the cloud platform is determined according to the migration record.
9. a kind of cloud resource dispatching device characterized by comprising
Module is obtained, for obtaining the load information of the CPU of each cloud host in the first subregion;
Processing module, for determining whether the load information of CPU of each cloud host meets the first preset rules;
Transferring module, for if so, the cloud host corresponding to the load information of first preset rules will be met
It migrates to the second subregion of cloud platform.
10. a kind of terminal device characterized by comprising memory, processor and storage are in the memory and can be
The computer program run on the processor, the processor realize such as claim 1 to 8 when executing the computer program
The step of described in any item cloud resource dispatching methods.
11. a kind of storage medium, which is characterized in that the storage medium for storing instruction, when described instruction on computers
When operation, so that the computer executes cloud resource dispatching method as claimed in any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910039466.5A CN109766190A (en) | 2019-01-15 | 2019-01-15 | Cloud resource dispatching method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910039466.5A CN109766190A (en) | 2019-01-15 | 2019-01-15 | Cloud resource dispatching method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109766190A true CN109766190A (en) | 2019-05-17 |
Family
ID=66454031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910039466.5A Pending CN109766190A (en) | 2019-01-15 | 2019-01-15 | Cloud resource dispatching method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109766190A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112181124A (en) * | 2020-09-11 | 2021-01-05 | 华为技术有限公司 | Method for power consumption management and related device |
CN112272218A (en) * | 2020-10-16 | 2021-01-26 | 苏州浪潮智能科技有限公司 | Cloud platform instance resource operation method and device, computer equipment and storage medium |
CN113515364A (en) * | 2021-09-14 | 2021-10-19 | 腾讯科技(深圳)有限公司 | Data migration method and device, computer equipment and storage medium |
CN114384995A (en) * | 2020-10-20 | 2022-04-22 | 华为技术有限公司 | Power consumption management method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120042034A1 (en) * | 2010-08-13 | 2012-02-16 | Vmware, Inc. | Live migration of virtual machine during direct access to storage over sr iov adapter |
US20140068608A1 (en) * | 2012-09-05 | 2014-03-06 | Cisco Technology, Inc. | Dynamic Virtual Machine Consolidation |
CN104657215A (en) * | 2013-11-19 | 2015-05-27 | 南京鼎盟科技有限公司 | Virtualization energy-saving system in Cloud computing |
CN105302630A (en) * | 2015-10-26 | 2016-02-03 | 深圳大学 | Dynamic adjustment method and system for virtual machine |
CN107220125A (en) * | 2017-05-27 | 2017-09-29 | 郑州云海信息技术有限公司 | A kind of cloud resource dispatching method and device |
-
2019
- 2019-01-15 CN CN201910039466.5A patent/CN109766190A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120042034A1 (en) * | 2010-08-13 | 2012-02-16 | Vmware, Inc. | Live migration of virtual machine during direct access to storage over sr iov adapter |
US20140068608A1 (en) * | 2012-09-05 | 2014-03-06 | Cisco Technology, Inc. | Dynamic Virtual Machine Consolidation |
CN104657215A (en) * | 2013-11-19 | 2015-05-27 | 南京鼎盟科技有限公司 | Virtualization energy-saving system in Cloud computing |
CN105302630A (en) * | 2015-10-26 | 2016-02-03 | 深圳大学 | Dynamic adjustment method and system for virtual machine |
CN107220125A (en) * | 2017-05-27 | 2017-09-29 | 郑州云海信息技术有限公司 | A kind of cloud resource dispatching method and device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112181124A (en) * | 2020-09-11 | 2021-01-05 | 华为技术有限公司 | Method for power consumption management and related device |
CN112181124B (en) * | 2020-09-11 | 2023-09-01 | 华为技术有限公司 | Method for managing power consumption and related equipment |
CN112272218A (en) * | 2020-10-16 | 2021-01-26 | 苏州浪潮智能科技有限公司 | Cloud platform instance resource operation method and device, computer equipment and storage medium |
CN112272218B (en) * | 2020-10-16 | 2023-01-06 | 苏州浪潮智能科技有限公司 | Cloud platform instance resource operation method and device, computer equipment and storage medium |
CN114384995A (en) * | 2020-10-20 | 2022-04-22 | 华为技术有限公司 | Power consumption management method and device |
CN113515364A (en) * | 2021-09-14 | 2021-10-19 | 腾讯科技(深圳)有限公司 | Data migration method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109766190A (en) | Cloud resource dispatching method, device, equipment and storage medium | |
CN110869909B (en) | System and method for applying machine learning algorithms to calculate health scores for workload scheduling | |
EP2417534B1 (en) | Optimized virtual machine migration mechanism | |
US20190235930A1 (en) | Capacity and load analysis using storage attributes | |
JP5756478B2 (en) | Optimizing power consumption in the data center | |
JP5756240B2 (en) | Management system and management method | |
CN104516475A (en) | Method and apparatus for managing global chip power on multicore system on chip | |
CN109408590B (en) | Method, device and equipment for expanding distributed database and storage medium | |
US20140059559A1 (en) | Intellegent tiering | |
CN115562870B (en) | Task node resource construction method of cluster | |
CN109062666A (en) | Virtual machine cluster management method and related device | |
JP7035858B2 (en) | Migration management program, migration method and migration system | |
CN110415160A (en) | A kind of GPU topology partition method and device | |
CN105635285B (en) | A kind of VM migration scheduling method based on state aware | |
JP6960491B2 (en) | Management system and infrastructure system management method | |
CN112416596A (en) | Node scheduling method, device and equipment | |
CN116048773B (en) | Distributed collaborative task assignment method and system based on wave function collapse | |
CN115373860B (en) | Scheduling method, device and equipment of GPU (graphics processing Unit) tasks and storage medium | |
CN110806918A (en) | Virtual machine operation method and device based on deep learning neural network | |
CN114047883B (en) | Data equalization method and device based on distributed storage system | |
CN110427250A (en) | Create cloud host instances, the method, apparatus of elastic telescopic group, equipment and medium | |
WO2022062937A1 (en) | Task scheduling method and apparatus, and computer system | |
CN112748850B (en) | Method, apparatus and computer program product for storage management | |
JP2016038888A (en) | Information processing system, information processing method and information processing program | |
CN116974700B (en) | Method, system, equipment and storage medium for realizing dynamic balance of resources |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190517 |