CN103577937A - Method and system for managing recourses in cloud computing system - Google Patents
Method and system for managing recourses in cloud computing system Download PDFInfo
- Publication number
- CN103577937A CN103577937A CN201310574694.5A CN201310574694A CN103577937A CN 103577937 A CN103577937 A CN 103577937A CN 201310574694 A CN201310574694 A CN 201310574694A CN 103577937 A CN103577937 A CN 103577937A
- Authority
- CN
- China
- Prior art keywords
- task
- resource
- tasks
- series
- stack
- 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
Images
Landscapes
- Memory System (AREA)
Abstract
The invention provides a method and system for managing recourses in a cloud computing system. The method includes the steps that corresponding resource recycling rules are set for a series of tasks formed by a plurality of systems, wherein a dependency relationship exists among the systems, and the resource recycling rules are used for recycling resources which have been produced in the process of processing the series of tasks; a request for processing the series of tasks is received; the processing state of the series of tasks is detected, processed tasks are recorded according to a task accomplishment sequence, and the resources produced by the processed tasks are cached; when a certain processing step fails in the task processing process, the resources produced by the processed tasks are recycled according to the resource recycling rules corresponding to the series of tasks.
Description
Technical field
The present invention relates to computer application field, relate in particular to the method and system of management resource in a kind of cloud computing system
Background technology
Cloud computing is a kind of account form based on internet, and in this way, shared software and hardware resources and information can offer computing machine and other equipment as required, and whole service mode is the spitting image of electrical network.And for most of cloud computing platforms, the waste resources producing in the process for application or establishing resource does not carry out effective control and management.Mainly manually to differentiate and disposal of refuse data by keeper or user.Therefore how efficiently managing the resource of managing in cloud computing system is problem demanding prompt solution.
Summary of the invention
The invention provides the method and system of management resource in a kind of cloud computing system, solve and how efficiently manage the resource in cloud computing system.
For solving the problems of the technologies described above, the invention provides following technical scheme:
A method for management resource in cloud computing system, comprising:
The a series of tasks that form for a plurality of systems of described Existence dependency relationship arrange corresponding resource and reclaim rule, and wherein said resource reclaims rule for recycling the resource that described a series of task process has produced;
Receive the processing request of described a series of tasks;
Treatment state in described a series of tasks is detected, and the order that completes according to task, records processed completing of task, the resource that completed task produces described in buffer memory;
When in this task processes, certain treatment step is failed, the resource corresponding according to described a series of tasks reclaims principle, and the resource that completed task is produced is carried out reclaimer operation.
Preferably, described method also has following features: described method also comprises:
When the whole tasks that comprise when described a series of tasks have all completed, whole resources of these a series of tasks of output buffer memory.
Preferably, described method also has following features: the resource that described in described buffer memory, completed task produces, comprising:
For described a series of task creation cleaning stacks;
After certain task is successfully executed, in described cleaning stack to this tasks carrying push operation;
The described resource that completed task is produced is carried out reclaimer operation, comprising:
When carrying out certain mission failure, according to the state in cleaning stack, each task is carried out out to stack operation successively;
According to described resource, reclaim rule, the resource of the task of popping is reclaimed.
Preferably, described method also has following features: the resource that described in described buffer memory, completed task produces, comprising:
For described a series of task creation cleaning stacks;
After certain task is successfully executed, in described cleaning stack to this tasks carrying push operation;
Whole resources of these a series of tasks of described output buffer memory, comprising:
According to the state in cleaning stack, each task is carried out out to stack operation successively.
A system for management resource in cloud computing system, comprising:
Setting device, is used to a series of tasks of a plurality of systems compositions of described Existence dependency relationship that corresponding resource recovery rule is set, and wherein said resource reclaims rule and is used for recycling the resource that described a series of task process has produced;
Receiving trap, for receiving the processing request of described a series of tasks;
Buffer storage, is connected with described receiving trap, for the treatment state to described a series of tasks, detects, and the order that completes according to task, records processed completing of task, the resource that completed task produces described in buffer memory;
The first treating apparatus, be connected with setting device with described buffer storage, for when certain treatment step of this task processes is failed, the resource corresponding according to described a series of tasks reclaims principle, and the resource that completed task is produced is carried out reclaimer operation.
Preferably, described system also has following features: described system also comprises:
The second treating apparatus, is connected with buffer storage, while all having completed for the whole tasks that comprise when described a series of tasks, and whole resources of these a series of tasks of output buffer memory.
Preferably, described system also has following features: described buffer storage, comprising:
Set up module, be used to described a series of task creation cleaning stack;
Pop down module, for after certain task is successfully executed, in described cleaning stack to this tasks carrying push operation;
Described the first treating apparatus comprises:
The module of popping, for when carrying out certain mission failure, according to the state in cleaning stack, carries out out stack operation by each task successively;
Recycling module, for reclaiming rule according to described resource, reclaims the resource of the task of popping.
Preferably, described system also has following features: described buffer storage, comprising:
Set up module, be used to described a series of task creation cleaning stack;
Pop down module, for after certain task is successfully executed, in described cleaning stack to this tasks carrying push operation;
Described the second treating apparatus, for according to the state of cleaning stack, carries out out stack operation successively by each task.
Embodiment provided by the invention, without carrying out manual intervention, automatically completes resource and reclaims, greatly reduced keeper's workload, effectively promote work efficiency, improved the resource utilization of whole cloud platform simultaneously, more given prominence to cloud platform elasticity, energy-conservation advantage.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the embodiment of the method for management resource in cloud computing system provided by the invention;
Fig. 2 is the structural representation of the system embodiment of management resource in cloud computing system provided by the invention;
Fig. 3 is the schematic diagram of the application example of resource management provided by the invention;
Fig. 4 is the schematic diagram of cleaning stack corresponding to Application Example shown in Fig. 3.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.It should be noted that, in the situation that not conflicting, the embodiment in the application and the feature in embodiment be combination in any mutually.
Fig. 1 is the schematic flow sheet of the embodiment of the method for management resource in cloud computing system provided by the invention.Shown in Fig. 1, embodiment of the method comprises:
Step 101, a series of tasks that form for a plurality of systems of described Existence dependency relationship arrange corresponding resource and reclaim rule, and wherein said resource reclaims rule for recycling the resource that described a series of task process has produced;
For example the shared storage resources of virtual machine is removed in virtual machine creating failure.
Step 102, receive the processing request of described a series of tasks;
Specifically, a series of tasks of needs being carried out join in task management configurator successively.
Step 103, the treatment state in described a series of tasks is detected, the order that completes according to task, records processed completing of task, the resource that completed task produces described in buffer memory;
Specifically, be described a series of task creation cleaning stacks; After certain task is successfully executed, in described cleaning stack to this tasks carrying push operation.By stack architexture, realize the buffer memory to the mark of completed task and resource, realize simply, cost is low, is convenient to management.
Step 104, in this task processes during the failure of certain treatment step, the resource corresponding according to described a series of tasks reclaims principle, the resource that completed task is produced is carried out reclaimer operation.
Specifically, when managing completed task by stack architexture, when carrying out certain mission failure, according to the state in cleaning stack, each task is carried out out to stack operation successively; According to described resource, reclaim rule, the resource of the task of popping is reclaimed.
Certainly, when the whole tasks that comprise when described a series of tasks have all completed, whole resources of these a series of tasks of output buffer memory.And when managing by stack architexture, according to the state in cleaning stack, each task is carried out out to stack operation successively.
In actual applications, after each task is successfully executed, this task has been carried out push operation immediately in garbage-cleaning stack.Tasks all in task management configurator are all successfully carried out, and are now correct result, and the resource of generation is all available, there is no rubbish and produce, and all tasks in cloud platform garbage-cleaning stack can be popped.If when carrying out certain task, there is mistake or abnormal, now, according to the state in cloud platform garbage-cleaning stack, each task is popped successively, and according to the garbage reclamation rule of configuration before, each task is carried out to resource recovery.When cloud platform garbage-cleaning stack is sky, all resources also just reclaim complete, normal state before getting back to.
Embodiment of the method provided by the invention, without carrying out manual intervention, automatically completes resource and reclaims, greatly reduced keeper's workload, effectively promote work efficiency, improved the resource utilization of whole cloud platform simultaneously, more given prominence to cloud platform elasticity, energy-conservation advantage.
Fig. 2 is the structural representation of the system embodiment of management resource in cloud computing system provided by the invention.System shown in Figure 2 embodiment comprises:
Setting device 201, is used to a series of tasks of a plurality of systems compositions of described Existence dependency relationship that corresponding resource recovery rule is set, and wherein said resource reclaims rule and is used for recycling the resource that described a series of task process has produced;
Receiving trap 202, for receiving the processing request of described a series of tasks;
The first treating apparatus 204, is connected with described buffer storage, and for when certain treatment step of this task processes is failed, the resource corresponding according to described a series of tasks reclaims principle, and the resource that completed task is produced is carried out reclaimer operation.
Optionally, described system also comprises:
The second treating apparatus, is connected with buffer storage 203, while all having completed for the whole tasks that comprise when described a series of tasks, and whole resources of these a series of tasks of output buffer memory.
Wherein, described buffer storage 203, comprising:
Set up module, be used to described a series of task creation cleaning stack;
Pop down module, for after certain task is successfully executed, in described cleaning stack to this tasks carrying push operation;
Described the first treating apparatus 204 comprises:
The module of popping, for when carrying out certain mission failure, according to the state in cleaning stack, carries out out stack operation by each task successively;
Recycling module, for reclaiming rule according to described resource, reclaims the resource of the task of popping.
Wherein, described buffer storage 203, comprising:
Set up module, be used to described a series of task creation cleaning stack;
Pop down module, for after certain task is successfully executed, in described cleaning stack to this tasks carrying push operation;
Described the second treating apparatus, for according to the state of cleaning stack, carries out out stack operation successively by each task.
System embodiment provided by the invention, without carrying out manual intervention, automatically completes resource and reclaims, greatly reduced keeper's workload, effectively promote work efficiency, improved the resource utilization of whole cloud platform simultaneously, more given prominence to cloud platform elasticity, energy-conservation advantage.
Based on said method and system, with an application example, describe below:
Fig. 3 is the schematic diagram of the application example of resource management provided by the invention.5 tasks shown in Fig. 3 are Existence dependency relationships, only after previous task completes, could process next task, in the present invention, be called a series of tasks, shown in Figure 3, after front 4 tasks are all finished dealing with, but the 5th task processed unsuccessfully, and, for these a series of tasks, this processes unsuccessfully, the resource that front 4 steps produce can not be used effectively, and at this moment can process according to reclaiming principle.
Fig. 4 is the schematic diagram of cleaning stack corresponding to Application Example shown in Fig. 3.As seen from Figure 4, cleaning stack is to carry out pop down processing according to the order of finishing dealing with of task.
Wherein said recovery principle comprises following a plurality of mode:
Mode one: directly reclaim the resource that completed task produces;
The mode of mode one can guarantee the timely release of resource, can use for the task of subsequent treatment;
Mode two: reminding user is processed failed task, the stand-by period that the caching resource of completed task one is set in advance, if within the described stand-by period, carry out failed tasks carrying success before detecting, continue resource corresponding to a series of tasks described in buffer memory; Otherwise, reclaim the resource that described completed task produces;
The mode that mode two provides not is directly the resource having produced to be removed at once, but in the situation that confirm that this processes failed task and can not repair in time, just reclaims resource, to reach the object that makes full use of the resource that completed task produced.
Mode three: whether prompting removes the resource that described completed task produces, and after the confirmation instruction that receives user, then removes the resource that described completed task produces.
The mode that mode three provides, has reduced the problem of manual search by prompting, and facilitates user to process reference information is provided follow-up work, facilitates the management of user to task disposition.
The all or part of step that one of ordinary skill in the art will appreciate that above-described embodiment can realize by computer program flow process, described computer program can be stored in a computer-readable recording medium, described computer program (as system, unit, device etc.) on corresponding hardware platform is carried out, when carrying out, comprise step of embodiment of the method one or a combination set of.
Alternatively, all or part of step of above-described embodiment also can realize with integrated circuit, and these steps can be made into respectively integrated circuit modules one by one, or a plurality of modules in them or step are made into single integrated circuit module realize.Like this, the present invention is not restricted to any specific hardware and software combination.
Each device/functional module/functional unit in above-described embodiment can adopt general calculation element to realize, and they can concentrate on single calculation element, also can be distributed on the network that a plurality of calculation elements form.
The form of software function module of usining each device/functional module/functional unit in above-described embodiment realizes and during as production marketing independently or use, can be stored in a computer read/write memory medium.The above-mentioned computer read/write memory medium of mentioning can be ROM (read-only memory), disk or CD etc.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain described in claim.
Claims (8)
1. a method for management resource in cloud computing system, is characterized in that, comprising:
The a series of tasks that form for a plurality of systems of described Existence dependency relationship arrange corresponding resource and reclaim rule, and wherein said resource reclaims rule for recycling the resource that described a series of task process has produced;
Receive the processing request of described a series of tasks;
Treatment state in described a series of tasks is detected, and the order that completes according to task, records processed completing of task, the resource that completed task produces described in buffer memory;
When in this task processes, certain treatment step is failed, the resource corresponding according to described a series of tasks reclaims principle, and the resource that completed task is produced is carried out reclaimer operation.
2. method according to claim 1, is characterized in that, described method also comprises:
When the whole tasks that comprise when described a series of tasks have all completed, whole resources of these a series of tasks of output buffer memory.
3. method according to claim 1, is characterized in that:
The resource that described in described buffer memory, completed task produces, comprising:
For described a series of task creation cleaning stacks;
After certain task is successfully executed, in described cleaning stack to this tasks carrying push operation;
The described resource that completed task is produced is carried out reclaimer operation, comprising:
When carrying out certain mission failure, according to the state in cleaning stack, each task is carried out out to stack operation successively;
According to described resource, reclaim rule, the resource of the task of popping is reclaimed.
4. method according to claim 1, is characterized in that:
The resource that described in described buffer memory, completed task produces, comprising:
For described a series of task creation cleaning stacks;
After certain task is successfully executed, in described cleaning stack to this tasks carrying push operation;
Whole resources of these a series of tasks of described output buffer memory, comprising:
According to the state in cleaning stack, each task is carried out out to stack operation successively.
5. a system for management resource in cloud computing system, is characterized in that, comprising:
Setting device, is used to a series of tasks of a plurality of systems compositions of described Existence dependency relationship that corresponding resource recovery rule is set, and wherein said resource reclaims rule and is used for recycling the resource that described a series of task process has produced;
Receiving trap, for receiving the processing request of described a series of tasks;
Buffer storage, is connected with described receiving trap, for the treatment state to described a series of tasks, detects, and the order that completes according to task, records processed completing of task, the resource that completed task produces described in buffer memory;
The first treating apparatus, be connected with setting device with described buffer storage, for when certain treatment step of this task processes is failed, the resource corresponding according to described a series of tasks reclaims principle, and the resource that completed task is produced is carried out reclaimer operation.
6. system according to claim 5, is characterized in that, described system also comprises:
The second treating apparatus, is connected with buffer storage, while all having completed for the whole tasks that comprise when described a series of tasks, and whole resources of these a series of tasks of output buffer memory.
7. system according to claim 6, is characterized in that:
Described buffer storage, comprising:
Set up module, be used to described a series of task creation cleaning stack;
Pop down module, for after certain task is successfully executed, in described cleaning stack to this tasks carrying push operation;
Described the first treating apparatus comprises:
The module of popping, for when carrying out certain mission failure, according to the state in cleaning stack, carries out out stack operation by each task successively;
Recycling module, for reclaiming rule according to described resource, reclaims the resource of the task of popping.
8. system according to claim 5, is characterized in that:
Described buffer storage, comprising:
Set up module, be used to described a series of task creation cleaning stack;
Pop down module, for after certain task is successfully executed, in described cleaning stack to this tasks carrying push operation;
Described the second treating apparatus, for according to the state of cleaning stack, carries out out stack operation successively by each task.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310574694.5A CN103577937A (en) | 2013-11-15 | 2013-11-15 | Method and system for managing recourses in cloud computing system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310574694.5A CN103577937A (en) | 2013-11-15 | 2013-11-15 | Method and system for managing recourses in cloud computing system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103577937A true CN103577937A (en) | 2014-02-12 |
Family
ID=50049677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310574694.5A Pending CN103577937A (en) | 2013-11-15 | 2013-11-15 | Method and system for managing recourses in cloud computing system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103577937A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995824A (en) * | 2017-12-29 | 2019-07-09 | 阿里巴巴集团控股有限公司 | Method for scheduling task and device in a kind of peer-to-peer network |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100070784A1 (en) * | 2008-09-15 | 2010-03-18 | Vmware, Inc. | Reducing Power Consumption in a Server Cluster |
CN102722576A (en) * | 2012-06-05 | 2012-10-10 | 西安未来国际信息股份有限公司 | Encipherment protection system and encipherment protection method for database in cloud computing environment |
CN102831016A (en) * | 2012-08-01 | 2012-12-19 | 浪潮(北京)电子信息产业有限公司 | Physical machine recycle method of cloud computing and device thereof |
CN103297264A (en) * | 2013-04-19 | 2013-09-11 | 无锡成电科大科技发展有限公司 | Cloud platform failure recovery method and system |
CN103324500A (en) * | 2013-05-06 | 2013-09-25 | 广州市动景计算机科技有限公司 | Method and device for recycling internal memory |
-
2013
- 2013-11-15 CN CN201310574694.5A patent/CN103577937A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100070784A1 (en) * | 2008-09-15 | 2010-03-18 | Vmware, Inc. | Reducing Power Consumption in a Server Cluster |
CN102722576A (en) * | 2012-06-05 | 2012-10-10 | 西安未来国际信息股份有限公司 | Encipherment protection system and encipherment protection method for database in cloud computing environment |
CN102831016A (en) * | 2012-08-01 | 2012-12-19 | 浪潮(北京)电子信息产业有限公司 | Physical machine recycle method of cloud computing and device thereof |
CN103297264A (en) * | 2013-04-19 | 2013-09-11 | 无锡成电科大科技发展有限公司 | Cloud platform failure recovery method and system |
CN103324500A (en) * | 2013-05-06 | 2013-09-25 | 广州市动景计算机科技有限公司 | Method and device for recycling internal memory |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109995824A (en) * | 2017-12-29 | 2019-07-09 | 阿里巴巴集团控股有限公司 | Method for scheduling task and device in a kind of peer-to-peer network |
CN109995824B (en) * | 2017-12-29 | 2022-10-04 | 阿里巴巴集团控股有限公司 | Task scheduling method and device in peer-to-peer network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1213376C (en) | Protocol for replicated servers | |
US11256539B2 (en) | Task processing method, apparatus, and system based on distributed system | |
CN104461744A (en) | Resource allocation method and device | |
US6493730B1 (en) | Efficient object faulting with generational garbage collection | |
CN105446814A (en) | Cache recovery method and device | |
CN102981931A (en) | Backup method and device for virtual machine | |
CN102262591B (en) | Garbage collection method and system for memory copy system | |
CN1208890A (en) | Operating system rebooting method | |
CN106572137B (en) | Distributed service resource management method and device | |
CN102999564B (en) | Write the method for data, device and equipment | |
CN101373450A (en) | Method and system for processing CPU abnormity | |
CN106469117B (en) | Storage resource management method and device for virtual machine storage migration | |
CN109361542B (en) | Client fault processing method, device, system, terminal and server | |
CN106776113A (en) | A kind of virtual machine backup method and device | |
CN103944974A (en) | Method for processing protocol messages, method for processing faults of controllers and related device | |
CN106354566A (en) | Command processing method and server | |
CN110597661A (en) | Virtual machine backup method and device | |
CN104407899A (en) | Method for restoring and starting network card after MAC address is changed under REDHAT operating system | |
CN112463437A (en) | Service recovery method, system and related components of storage cluster system offline node | |
CN115292003A (en) | Server failure recovery method and device, electronic equipment and storage medium | |
CN104462940A (en) | Monitoring method and device for computer USB interface | |
CN109189739B (en) | Cache space recovery method and device | |
CN106598653A (en) | Method and device used for solving boot storm of virtual machine | |
CN103577937A (en) | Method and system for managing recourses in cloud computing system | |
CN107589972B (en) | Method for sharing IPC (Internet protocol Camera) name space by Pod in Kubernetes |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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: 20140212 |