CN102831016B - A cloud computing physical machine recycling method and device thereof - Google Patents
A cloud computing physical machine recycling method and device thereof Download PDFInfo
- Publication number
- CN102831016B CN102831016B CN201210272137.3A CN201210272137A CN102831016B CN 102831016 B CN102831016 B CN 102831016B CN 201210272137 A CN201210272137 A CN 201210272137A CN 102831016 B CN102831016 B CN 102831016B
- Authority
- CN
- China
- Prior art keywords
- points
- performance
- physical machines
- cloud computing
- physical machine
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 14
- 238000004064 recycling Methods 0.000 title claims description 10
- 238000012545 processing Methods 0.000 claims abstract description 14
- 230000007334 memory performance Effects 0.000 claims description 12
- 238000013139 quantization Methods 0.000 claims description 9
- 238000011084 recovery Methods 0.000 claims description 6
- 238000011002 quantification Methods 0.000 claims 1
- 238000012423 maintenance Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000015556 catabolic process Effects 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Supply And Distribution Of Alternating Current (AREA)
Abstract
Description
技术领域 technical field
本发明涉及云计算领域,具体涉及一种云计算的物理机回收方法及其装置。The invention relates to the field of cloud computing, in particular to a cloud computing physical machine recycling method and device thereof.
背景技术 Background technique
当前云计算的发展与应用正在越来越多的行业展开,在云计算的环境的执行的任务数量也是越来越多,因此云计算环境下管理的物理设备数量也是越来越庞大,维护的成本也是随着云环境的发展而增大。At present, the development and application of cloud computing are being carried out in more and more industries, and the number of tasks performed in the cloud computing environment is also increasing. Therefore, the number of physical devices managed in the cloud computing environment is also increasing. The cost also increases with the development of the cloud environment.
如何在云计算环境下准确、及时的完成物理设备的资料回收,减小云计算环境的维护成本,同时要满足云计算环境下各项业务的硬件平台需要也就成了云环境下物理设备管理的关键问题。How to accurately and timely complete the recovery of physical equipment data in the cloud computing environment, reduce the maintenance cost of the cloud computing environment, and at the same time meet the hardware platform needs of various businesses in the cloud computing environment has become a physical equipment management in the cloud environment. key issues.
如图1所示,当前计算机厂商的方案,在云计算环境下维护设备,对空闲状态下的物理设备采用关机操作,但是所述关机操作存在随机性,这样就有可能将配置较低的物理设备作为分配负载的首要计算机。容易造成系统性能降低,甚至业务中断等问题。As shown in Figure 1, the current computer manufacturer’s solution is to maintain equipment in a cloud computing environment, and use shutdown operations on idle physical equipment, but the shutdown operation is random, so it is possible to use low-configuration physical equipment. The appliance acts as the primary computer that distributes the load. It is easy to cause problems such as system performance degradation and even business interruption.
发明内容 Contents of the invention
为了在最大程度上保障云计算环境下物理机的整体性能,并实现资源节约、成本节约的目的,同时不影响云计算环境下运行的各项业务,本发明提出一种云计算的物理机回收方法及其装置。In order to guarantee the overall performance of the physical machine in the cloud computing environment to the greatest extent, and realize the purpose of resource saving and cost saving, without affecting various services running in the cloud computing environment, the present invention proposes a cloud computing physical machine recycling Method and device thereof.
为了解决上述技术问题,本发明提供了一种云计算的物理机回收方法,包括In order to solve the above technical problems, the present invention provides a physical machine recovery method for cloud computing, including
A、对云计算环境下闲置的物理机的硬件性能进行等级排序;A. Rank the hardware performance of the idle physical machines in the cloud computing environment;
B、根据等级排序的结果,按照硬件性能由低向高的顺序对物理机进行关机操作,使得未关机的物理机保证低负载的处理要求。B. According to the ranking results, the physical machines are shut down according to the order of hardware performance from low to high, so that the physical machines that are not shut down can meet the processing requirements of low load.
进一步地,所述硬件性能包括CPU性能、内存性能和硬盘性能。Further, the hardware performance includes CPU performance, memory performance and hard disk performance.
进一步地,步骤B中还对剩余的物理机采取待机处理。Further, in step B, standby processing is also adopted for the remaining physical machines.
进一步地,步骤A中进行登记排序的方式为:Further, the way of registering and sorting in step A is:
将闲置的物理机的硬件性能进行量化,按照量化后的数值高低对闲置的物理机的硬件性能进行排序。Quantify the hardware performance of the idle physical machines, and sort the hardware performance of the idle physical machines according to the quantized value.
为了解决上述技术问题,本发明还提供了一种云计算的物理机回收装置,包括等级排序单元和设备管理单元,In order to solve the above technical problems, the present invention also provides a cloud computing physical machine recycling device, including a ranking unit and a device management unit,
所述等级排序单元用于对云计算环境下闲置的物理机的硬件性能进行等级排序;The ranking unit is used to rank the hardware performance of the idle physical machines in the cloud computing environment;
所述设备管理单元用于根据等级排序的结果,按照硬件性能由低向高的顺序对物理机进行关机操作,使得未关机的物理机保证低负载的处理要求。The device management unit is used for shutting down the physical machines according to the order of hardware performance from low to high according to the result of ranking, so that the physical machines that are not shut down can guarantee low-load processing requirements.
优选地,所述设备管理单元还用于对剩余的物理机采取待机处理。Preferably, the device management unit is further configured to take standby processing for the remaining physical machines.
优选地,所述等级排序单元包括量化模块和比较模块,Preferably, the ranking unit includes a quantization module and a comparison module,
所述量化模块用于将闲置的物理机的硬件性能进行量化;The quantization module is used to quantify the hardware performance of the idle physical machine;
所述比较模块用于按照量化模块得到的数值对闲置的物理机的硬件性能进行排序。The comparison module is used to sort the hardware performance of the idle physical machines according to the values obtained by the quantization module.
与现有技术相比,本发明达到了节约资源与减少维护成本的目的,关闭部分物理机时,最大程度上保证云计算环境下物理机整体的处理能力。通过关闭性能低的物理机,确保性能高的物理机处于待机状态,以便随时应对云计算环境下负载升高和转移过来的计算任务的情况,避免了在负载低时关闭部分闲置物理机的随机性,并且使云计算在物理机的管理上更加的节约化、人性化,避免资源的浪费、能源的浪费。Compared with the prior art, the present invention achieves the purpose of saving resources and reducing maintenance costs, and when shutting down some physical machines, the overall processing capability of the physical machines in the cloud computing environment is guaranteed to the greatest extent. By shutting down the physical machines with low performance, ensure that the physical machines with high performance are in standby state, so as to cope with the load increase and the transferred computing tasks in the cloud computing environment at any time, and avoid the random shutdown of some idle physical machines when the load is low It also makes cloud computing more economical and humane in the management of physical machines, avoiding waste of resources and energy.
附图说明Description of drawings
图1为传统的云环境下闲置资源回收示意图;图2为本发明实施例的云计算的物理机回收装置的结构示意图;图3为本发明实施例的云环境下闲置资源回收示意图。Fig. 1 is a schematic diagram of recycling idle resources in a traditional cloud environment; Fig. 2 is a schematic structural diagram of a physical machine recycling device for cloud computing according to an embodiment of the present invention; Fig. 3 is a schematic diagram of recycling idle resources under a cloud environment according to an embodiment of the present invention.
具体实施方式 Detailed ways
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.
结合图2和图3说明本发明的实施例,本发明实施例的云计算的物理机回收装置,等级排序单元1和设备管理单元2,所述等级排序单元1用于对云计算环境下闲置的物理机的硬件性能进行等级排序;所述设备管理单元2用于根据等级排序的结果,按照硬件性能由低向高的顺序关闭性能低的物理机,使得性能高的物理机处于待机状态,使得未关机的物理机保证低负载的处理要求。Embodiments of the present invention are illustrated in conjunction with Fig. 2 and Fig. 3, the physical machine reclaiming device of the cloud computing of the embodiment of the present invention, the rank sorting unit 1 and the equipment management unit 2, and the rank sorting unit 1 is used for idle under the cloud computing environment The hardware performance of the physical machine is graded; the device management unit 2 is used to close the physical machine with low performance according to the order of hardware performance from low to high according to the result of the grade sort, so that the physical machine with high performance is in a standby state, Make the non-shutdown physical machine guarantee low-load processing requirements.
其中等级排序单元1进一步包括量化模块11和比较模块12,首先由量化模块11对闲置的物理机的硬件性能进行量化,然后由比较模块12按照量化后的数值高低对闲置的物理机的硬件性能进行排序。本发明实施例的云计算的物理机回收方法,相关流程包括:Wherein the rank sorting unit 1 further comprises a quantization module 11 and a comparison module 12, at first the hardware performance of the idle physical machine is quantified by the quantization module 11, and then the hardware performance of the idle physical machine is quantified by the comparison module 12 according to the numerical value after quantization Sort. The physical machine recovery method of cloud computing according to the embodiment of the present invention, the related process includes:
A、对云计算环境下闲置的物理机的硬件性能进行等级排序;A. Rank the hardware performance of the idle physical machines in the cloud computing environment;
B、根据等级排序的结果,按照硬件性能由低向高的顺序对物理机进行关机操作,使得未关机的物理机保证低负载的处理要求。B. According to the ranking results, the physical machines are shut down according to the order of hardware performance from low to high, so that the physical machines that are not shut down can meet the processing requirements of low load.
其中硬件性能包括CPU性能、内存性能和硬盘性能。The hardware performance includes CPU performance, memory performance and hard disk performance.
本发明实施例的云计算的物理机回收方法对云计算环境下负载低时闲置的物理机进行等级排序,采用对闲置的物理机的硬件性能进行量化的方式,根据硬件性能的整体量化后的数值把闲置的物理机划分为A类、B类、以及C类,其中A类为高性能的物理机,C类为低性能的物理机,B类为性能居中的物理机。The cloud computing physical machine recovery method in the embodiment of the present invention ranks the idle physical machines in the cloud computing environment when the load is low, and adopts the method of quantifying the hardware performance of the idle physical machines, according to the overall quantified hardware performance The value divides the idle physical machines into Class A, Class B, and Class C, where Class A is a physical machine with high performance, Class C is a physical machine with low performance, and Class B is a physical machine with intermediate performance.
在对云计算环境下闲置的物理机执行关机操作时,根据物理机的分类情况,进行选择性的关机,在A类、B类、C类都有的情况下,优先关闭C类物理机,其次是B类物理机,最后是部分A类物理机,使得未关机的物理机保证整体的处理能力。这样就可以保证在到达节约资源的情况下,最大程度的保障云环境下硬件性能。When performing shutdown operations on idle physical machines in a cloud computing environment, perform selective shutdown according to the classification of physical machines. In the case of class A, class B, and class C, class C physical machines are preferentially shut down. The second is Class B physical machines, and the last is some Class A physical machines, so that the physical machines that are not shut down can guarantee the overall processing capacity. In this way, it can ensure that the hardware performance in the cloud environment is guaranteed to the greatest extent while saving resources.
实施例Example
如图3所示,对云计算环境下闲置的物理机的CPU性能、内存性能和硬盘性能进行量化,量化数值最高为100,其中CPU性能占60%,内存性能占20%,硬盘性能占20%,对于闲置的各个物理机的CPU性能,总内核数在16核以上的量化数值为60,在8核跟16核之间的量化数值为50,在4核跟8核之间的量化数值为40,2核以下的量化数值为20。对于闲置的各个物理机的内存性能,32G以上的量化数值为20,16G到32G之间的量化数值为15,8G以下的量化数值为10。对于闲置的各个物理机的硬盘性能,容量6T以上的量化数值为20,2T以下的量化数值为10。根据所述三种硬件性能的量化总和为标准,对闲置的物理机进行等级排序,把量化总和在85以上的归为A类物理机,60分到85分之间的归为B类物理机,60分以下的为C类物理机。As shown in Figure 3, the CPU performance, memory performance and hard disk performance of idle physical machines in the cloud computing environment are quantified. %, for the CPU performance of each idle physical machine, the quantitative value of the total number of cores above 16 cores is 60, the quantitative value between 8 cores and 16 cores is 50, and the quantitative value between 4 cores and 8 cores It is 40, and the quantization value below 2 cores is 20. For the memory performance of each idle physical machine, the quantized value above 32G is 20, the quantized value between 16G and 32G is 15, and the quantized value below 8G is 10. For the hard disk performance of each idle physical machine, the quantitative value is 20 for the capacity above 6T, and 10 for the capacity below 2T. According to the quantified sum of the three kinds of hardware performance as the standard, rank the idle physical machines, classify the quantized sum above 85 as a class A physical machine, and classify as a class B physical machine with a quantized sum of 60 to 85 , 60 points or less are class C physical machines.
A类物理机性能卓越,运行状况良好,如图3中的设备6、设备8;C类物理机,性能低下,如图3中的设备3、设备9;其余的为B类物理机。Class A physical machines have excellent performance and good operating conditions, such as devices 6 and 8 in Figure 3; Class C physical machines have low performance, such as Devices 3 and 9 in Figure 3; the rest are Class B physical machines.
当因云计算负环境下负载低,需要关闭部分物理机时,根据等级排序的结果,优先关闭C类物理机,其次是B类物理机,保留性能卓越的A类物理机,防止云计算的压力负载增大时的负载任务分担,在有效节约资源的基础上,达到优化整个云计算环境的目的。When some physical machines need to be shut down due to the low load in the negative environment of cloud computing, according to the results of ranking, class C physical machines are shut down first, followed by class B physical machines, and class A physical machines with excellent performance are reserved to prevent cloud computing The load task sharing when the pressure load increases, on the basis of effectively saving resources, achieves the purpose of optimizing the entire cloud computing environment.
虽然本发明所揭露的实施方式如上,但所述的内容只是为了便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属技术领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式上及细节上作任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。Although the embodiments disclosed in the present invention are as above, the described content is only an embodiment adopted for the convenience of understanding the present invention, and is not intended to limit the present invention. Anyone skilled in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the implementation without departing from the spirit and scope disclosed by the present invention, but the patent protection scope of the present invention, The scope defined by the appended claims must still prevail.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210272137.3A CN102831016B (en) | 2012-08-01 | 2012-08-01 | A cloud computing physical machine recycling method and device thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210272137.3A CN102831016B (en) | 2012-08-01 | 2012-08-01 | A cloud computing physical machine recycling method and device thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102831016A CN102831016A (en) | 2012-12-19 |
CN102831016B true CN102831016B (en) | 2014-10-01 |
Family
ID=47334165
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210272137.3A Active CN102831016B (en) | 2012-08-01 | 2012-08-01 | A cloud computing physical machine recycling method and device thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102831016B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095506A (en) * | 2013-02-06 | 2013-05-08 | 浪潮电子信息产业股份有限公司 | Resource adjusting method based on equipment health state under cloud environment |
CN103577937A (en) * | 2013-11-15 | 2014-02-12 | 浪潮(北京)电子信息产业有限公司 | Method and system for managing recourses in cloud computing system |
CN109246737B (en) * | 2018-09-07 | 2019-07-09 | 广州微算互联信息技术有限公司 | Cloud mobile phone automatic recovery method and system |
CN109669774B (en) * | 2018-11-14 | 2020-12-08 | 新华三技术有限公司成都分公司 | Hardware resource quantification method, hardware resource arrangement method, hardware resource quantification device and hardware resource arrangement device and network equipment |
CN113867926A (en) * | 2020-06-30 | 2021-12-31 | 中兴通讯股份有限公司 | A cloud environment management method, cloud environment management platform and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101727351A (en) * | 2009-12-14 | 2010-06-09 | 北京航空航天大学 | Multicore platform-orientated asymmetrical dispatcher for monitor of virtual machine and dispatching method thereof |
CN102306205A (en) * | 2011-09-30 | 2012-01-04 | 苏州大学 | Method and device for allocating transactions |
CN102360310A (en) * | 2011-09-28 | 2012-02-22 | 中国电子科技集团公司第二十八研究所 | Multitask process monitoring method and system in distributed system environment |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9047083B2 (en) * | 2008-09-15 | 2015-06-02 | Vmware, Inc. | Reducing power consumption in a server cluster |
CN102262557B (en) * | 2010-05-25 | 2015-01-21 | 运软网络科技(上海)有限公司 | Method for constructing virtual machine monitor by bus architecture and performance service framework |
-
2012
- 2012-08-01 CN CN201210272137.3A patent/CN102831016B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101727351A (en) * | 2009-12-14 | 2010-06-09 | 北京航空航天大学 | Multicore platform-orientated asymmetrical dispatcher for monitor of virtual machine and dispatching method thereof |
CN102360310A (en) * | 2011-09-28 | 2012-02-22 | 中国电子科技集团公司第二十八研究所 | Multitask process monitoring method and system in distributed system environment |
CN102306205A (en) * | 2011-09-30 | 2012-01-04 | 苏州大学 | Method and device for allocating transactions |
Also Published As
Publication number | Publication date |
---|---|
CN102831016A (en) | 2012-12-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102831016B (en) | A cloud computing physical machine recycling method and device thereof | |
CN103530189B (en) | It is a kind of towards the automatic telescopic of stream data and the method and device of migration | |
CN103312825B (en) | A kind of distributed data storage method and apparatus | |
WO2015051685A1 (en) | Task scheduling method, device and system | |
WO2017028394A1 (en) | Example-based distributed data recovery method and apparatus | |
CN104391903A (en) | Distributed storage and parallel calculation-based power grid data quality detection method | |
CN115373835A (en) | Task resource adjusting method and device for Flink cluster and electronic equipment | |
CN103970256B (en) | Energy saving method and system based on memory compaction and CPU dynamic frequency modulation | |
CN104346211A (en) | Method and system for realizing virtual machine migration under cloud computing | |
CN108983946A (en) | A kind of server energy consumption control method, system and equipment | |
CN106354574A (en) | Acceleration system and method used for big data K-Mean clustering algorithm | |
Feng et al. | Energy efficiency for MapReduce workloads: An in-depth study | |
CN101770461B (en) | Data processing method and data processing system | |
CN105868375B (en) | Multithreading-based security baseline knowledge base file analysis method | |
CN112631903A (en) | Task testing method and device, electronic equipment and storage medium | |
CN114880368A (en) | Data query method and device, electronic equipment and readable storage medium | |
CN113127479B (en) | Method and device for loading elastic search index, computer equipment and storage medium | |
CN104268004A (en) | Virtual machine migration method under cloud computing operating system | |
CN106648867B (en) | Intelligent graceful restart method and device based on cloud data center | |
CN115048360B (en) | MySQL database tuning device, method, terminal and storage medium | |
CN106250210A (en) | Dispatching method of virtual machine under cloud environment | |
CN104850459A (en) | Virtual machine migrating method and apparatus | |
CN111104527B (en) | Rich media file analysis method | |
CN113886050A (en) | Pressure testing method, device, equipment and storage medium | |
CN105868370A (en) | HBase storage device and method for achieving read-write separation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |