CN109445938A - A kind of cloud resource state revision method and apparatus - Google Patents
A kind of cloud resource state revision method and apparatus Download PDFInfo
- Publication number
- CN109445938A CN109445938A CN201811214492.9A CN201811214492A CN109445938A CN 109445938 A CN109445938 A CN 109445938A CN 201811214492 A CN201811214492 A CN 201811214492A CN 109445938 A CN109445938 A CN 109445938A
- Authority
- CN
- China
- Prior art keywords
- cloud resource
- state
- list
- cloud
- resource
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of cloud resource state revision method and apparatus, can correct the state of cloud resource in cloud computing software platform under the premise of prosthetic is intervened.The described method includes: timing acquisition cloud resource list, judges whether the state of cloud resource in the list is correct according to unified determination strategy;It is modified according to judging result.Using the embodiment of the present invention, the mode for eliminating the reliance on manpower intervention restores the abnormality of resource, can in software running process selfreparing cloud resource abnormality.
Description
Technical field
The present invention relates to computer technology, espespecially a kind of cloud resource state revision method and apparatus.
Background technique
Nowadays cloud computing platform software emerges one after another, and per a cloud computing software it is all unavoidable to such as cloud host,
The management of the cloud resources such as cloud storage, virtual machine is the state of each cloud resource of user of more intuitively showing, and conveniently
Program is to the con current control of resource, and various cloud resources can be increased different states by cloud computing software, for example, being cloud host or void
Quasi- machine increases booting, shutdown, pause, migration fair state, increases carry, unloading, carry fair state for cloud storage.And for
Any one product is likely to the managerial defect of existence (i.e. bug), particularly with the product of earlier version, due to this
The presence of a little defects, is just likely to result in that cloud resource state is not inconsistent with virtual condition or resource has been at unstable state and leads
Cause can not carry out again other operations to the resource, to cause resource unavailable indirectly, it has to which manpower intervention is repaired, and is increased
Add while risk also in the O&M cost for virtually increasing product.
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of cloud resource state revision method and apparatus, Neng Gou
Under the premise of prosthetic is intervened, the state of cloud resource in cloud computing software platform is corrected.
In order to reach the object of the invention, the present invention provides a kind of cloud resource state revision methods, which comprises
Whether just timing acquisition cloud resource list judges the state of cloud resource in the list according to unified determination strategy
Really;
It is modified according to judging result.
In a kind of exemplary embodiment, the state that cloud resource in the list is judged according to unified determination strategy
Whether correctly include:
From the state for obtaining any one cloud resource in list in cloud resource platform;
When the state of the acquisition is expressed as unstable state, judge whether the cloud resource is relevant;When the cloud resource does not have
Relevant, Xiang Suoshu cloud resource institute generic requests the current state of the cloud resource;
Judge whether the state of cloud resource in the list is correct according to request results.
It is described to be modified according to the judging result in a kind of exemplary embodiment, comprising:
When the request results are expressed as stable state, then the state of the cloud resource is incorrect, to the shape of the cloud resource
State is modified;
When the request results are expressed as unstable state, then the state of the cloud resource is correct, without amendment.
In a kind of exemplary embodiment, the current state of the request cloud resource, comprising:
The current state of the cloud resource is requested by remote procedure call or message queue.
In a kind of exemplary embodiment, the state that cloud resource in the list is judged according to unified determination strategy
Whether it is correct after, further include judging in the list cloud resource whether whole traversal, if whole traversal, continues
Judge whether the state for the cloud resource not traversed in the list is correct;If all traversed, terminate the cloud resource column
The amendment of cloud resource in table.
In order to reach the object of the invention, the present invention also provides a kind of cloud resource state revision devices, which is characterized in that institute
Stating device includes judgment module and correction module, in which:
The judgment module is used for the list of timing acquisition cloud resource, judges in the list according to unified determination strategy
Whether the state of cloud resource is correct;
The correction module, for being modified according to judging result.
In a kind of exemplary embodiment, the judgment module judges that the list medium cloud provides according to unified determination strategy
The state in source whether correctly include:
The judgment module from cloud resource platform obtain list in any one cloud resource state;
When the state that the judgment module obtains is expressed as unstable state, the judgment module judges whether the cloud resource has
Association;When the cloud resource is not associated with, the judgment module requests working as the cloud resource to cloud resource institute generic
Preceding state;
The judgment module judges whether the state of cloud resource in the list is correct according to request results.
In a kind of exemplary embodiment, the correction module is modified according to the judging result, comprising:
When the request results are expressed as stable state, then the state of the cloud resource is incorrect, and the correction module is to institute
The state for stating cloud resource is modified;
When the request results are expressed as unstable state, then the state of the cloud resource is correct, and the correction module is not necessarily to
Amendment.
In a kind of exemplary embodiment, the judgment module requests the current state of the cloud resource, comprising:
The judgment module requests the current state of the cloud resource by remote procedure call or message queue.
In a kind of exemplary embodiment, the judgment module judges that the list medium cloud provides according to unified determination strategy
It after whether the state in source is correct, further include that the judgment module judges whether cloud resource has all traversed in the list, such as
Fruit does not traverse all, then the judgment module continues to judge whether the state for the cloud resource not traversed in the list is correct;Such as
Fruit all traverses, then the judgment module terminates the amendment of cloud resource in the cloud resource list.
Compared with prior art, the present invention includes timing acquisition cloud resource list, judges institute according to unified determination strategy
Whether the state for stating cloud resource in list is correct;It is modified according to judging result.There is defect applied to product and leads in this method
When causing resource status inoperable, abnormal resource status can be repaired by software itself, manpower intervention is not necessarily to, greatly reduces
The O&M cost of product acts on particularly evident especially when software stability is lower.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right
Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this
The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the flow chart of the cloud resource state revision method of the embodiment of the present invention one;
Fig. 2 is another flow chart of the cloud resource state revision method of the embodiment of the present invention two;
Fig. 3 is the structural schematic diagram of the cloud resource state revision device of the embodiment of the present invention three.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention
Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application
Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions
It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable
Sequence executes shown or described step.
Embodiment one
A kind of cloud resource state revision method is present embodiments provided, as shown in Figure 1, this method includes S11-S12:
Whether just S11, timing acquisition cloud resource list judge the state of cloud resource in list according to unified determination strategy
Really;
S12, it is modified according to judging result.
In the embodiment of the present invention, when defect, which occurs, in product causes resource status inoperable, it can be repaired by software itself
Multiple abnormal resource status, is not necessarily to manpower intervention, greatly reduces the O&M cost of product, soft especially when product initial go-live period
When part stability is lower, act on particularly evident.
In a kind of exemplary embodiment, judge whether the state of cloud resource in list is correct according to unified determination strategy
Include:
From the state for obtaining any one cloud resource in list in cloud resource platform;
The state of virtual machine includes stable state and unstable state;Stable state refers to that resource is in operable state;Unstable state refers to money
Source is in intermediate state or inoperable state.Stable state includes that virtual machine is in unlatching, closes;Unstable state includes that virtual machine is in
The states such as clone, migration.The application determination strategy is correct for the state for being considered as the cloud resource of stable state.
In a kind of exemplary embodiment, make a reservation for one or more cloud resources, when needing to judge whether scheduled resource arranges
When whether the state of cloud resource is correct in table, institute's generic is directly gone to request the current state of the resource, judgement and cloud platform
Whether what is recorded is consistent, so that it is determined that whether the state is correct;For remaining cloud resource, then institute is obtained according to acquisition strategy
The current state for stating cloud resource in list determines whether the state is correct.
When the state of acquisition is expressed as unstable state, judge whether cloud resource is relevant;When cloud resource is not associated with, Xiang Yunzi
The current state of source institute's generic request cloud resource;
Cloud platform record has the task record of each virtual machine to illustrate that virtual machine is related as long as there is record.
Judge whether the state of cloud resource in list is correct according to request results.
When cloud resource is relevant, then judges that the state of cloud resource is correct, do not need further to cloud resource institute generic
Request the current state of cloud resource.
In a kind of exemplary embodiment, it is modified according to judging result, comprising:
When request results are expressed as stable state, then the state of cloud resource is incorrect, is modified to the state of cloud resource;
When request results are expressed as unstable state, then the state of cloud resource is correct, without amendment.
It is unstable state, onrelevant when cloud resource cloud resource platform records, is steady to cloud resource institute generic request results
State, then unstable state is not current state, needs to be modified;
It is unstable state, onrelevant when cloud resource cloud resource platform records, is non-to cloud resource institute generic request results
Stable state, then unstable state is current state, does not need to correct.
In a kind of exemplary embodiment, the current state of cloud resource is requested, comprising:
The current state of cloud resource is requested by remote procedure call or message queue.
In a kind of exemplary embodiment, judge whether the state of cloud resource in list is correct according to unified determination strategy
It later, further include judging whether all traversal continues to judge in list not cloud resource if do not traversed all in list
Whether the state of the cloud resource of traversal is correct;If all traversed, terminate the amendment of cloud resource in cloud resource list.
In the embodiment of the present invention, timing acquisition cloud resource list judges the list medium cloud according to unified determination strategy
Whether the state of resource is correct;It is modified according to judging result;The mode for eliminating the reliance on manpower intervention restores the exception of resource
State.
Embodiment two
Above-described embodiment method is specifically described in the present embodiment, as shown in Figure 2, comprising the following steps:
S21. every N seconds acquisition cloud resource list Ress;
Whether the cloud resource S22. inquired in list Ress, which traverses, terminates;
If be not finished, S23 is thened follow the steps;If terminated, S27 is thened follow the steps;
S23. a resource R in cloud resource list Ress is obtained, whether the state of query resource R is stable state;
If being stable state, repeatedly step S22;If it is unstable state, S24 is thened follow the steps;
S24. whether query resource R is associated with;
Whether whether query resource R is relevant has the operation being carrying out, if relevant, repeatedly step S22, such as
Fruit does not have, and thens follow the steps S25;
S25. query resource R current state;
Inquiry request is sent to the affiliated resource of R by RPC (remote procedure call) or message queue, inquires R resource the bottom of at
The virtual condition of layer.When the request results are expressed as stable state, then the state of the cloud resource is incorrect, to the cloud resource
State be modified, execute step S27;When the request results are expressed as unstable state, then the state of the cloud resource is being just
Really, without amendment, step S22 is executed;
It is host A if it is R, then to host A requesting host virtual condition, if R is in a kind of exemplary embodiment
Virtual machine V then requests D to the host of D carry if R is storage D to the virtual condition of R institute's generic request virtual machine V
Practical carry state;
S26. the virtual condition requested according to step S26, amendment resource R state are stable state;
S27. terminate this time to correct.
Embodiment three
A kind of cloud resource state revision device is present embodiments provided, description is also applied for this reality in above method embodiment
It applies in example, as shown in figure 3, the device includes judgment module 31 and correction module 32, in which:
Judgment module 31 is used for the list of timing acquisition cloud resource, judges cloud resource in list according to unified determination strategy
State it is whether correct;
Correction module 32, for being modified according to judging result.
In a kind of exemplary embodiment, judgment module 31 judges the shape of cloud resource in list according to unified determination strategy
State whether correctly include:
Judgment module 31 from cloud resource platform obtain list in any one cloud resource state;
When the state that judgment module 31 obtains is expressed as unstable state, judgment module 31 judges whether cloud resource is relevant;When
Cloud resource is not associated with, current state of the judgment module 31 to cloud resource institute's generic request cloud resource;
Judgment module 31 judges whether the state of cloud resource in list is correct according to request results.
In a kind of exemplary embodiment, correction module 32 is modified according to judging result, comprising:
When request results are expressed as stable state, then the state of cloud resource is incorrect, state of the correction module 32 to cloud resource
It is modified;
When request results are expressed as unstable state, then the state of cloud resource is correct, and correction module 32 is without amendment.
In a kind of exemplary embodiment, judgment module 31 requests the current state of cloud resource, comprising:
Judgment module 31 requests the current state of cloud resource by remote procedure call or message queue.
In a kind of exemplary embodiment, judgment module 31 judges the shape of cloud resource in list according to unified determination strategy
After whether state is correct, further include that judgment module 31 judge whether cloud resource has all traversed in list, if inwhole times
Go through, then judgment module 31 continue the cloud resource for judging not traverse in list state it is whether correct;If all traversed, sentence
Disconnected module 31 terminates the amendment of cloud resource in cloud resource list.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove
Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment,
Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one
Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups
Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by
It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable
On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily
Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as
Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non-
Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its
His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other
Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.This
Outside, known to a person of ordinary skill in the art to be, communication media generally comprises computer readable instructions, data structure, program mould
Other data in the modulated data signal of block or such as carrier wave or other transmission mechanisms etc, and may include any information
Delivery media.
Claims (10)
1. a kind of cloud resource state revision method, which is characterized in that the described method includes:
Timing acquisition cloud resource list judges whether the state of cloud resource in the list is correct according to unified determination strategy;
It is modified according to judging result.
2. the method according to claim 1, wherein described judge in the list according to unified determination strategy
The state of cloud resource whether correctly include:
From the state for obtaining any one cloud resource in list in cloud resource platform;
When the state of the acquisition is expressed as unstable state, judge whether the cloud resource is relevant;When the cloud resource is not closed
Connection, Xiang Suoshu cloud resource institute generic request the current state of the cloud resource;
Judge whether the state of cloud resource in the list is correct according to request results.
3. according to the method described in claim 2, it is characterized in that, described be modified according to the judging result, comprising:
When the request results are expressed as stable state, then the state of the cloud resource is incorrect, to the state of the cloud resource into
Row amendment;
When the request results are expressed as unstable state, then the state of the cloud resource is correct, without amendment.
4. according to the method described in claim 2, it is characterized in that, the current state of the request cloud resource, comprising:
The current state of the cloud resource is requested by remote procedure call or message queue.
5. the method according to claim 1, wherein described judge in the list according to unified determination strategy
It further include judging whether cloud resource has all traversed in the list, if not all after whether the state of cloud resource is correct
Traversal, then continue to judge whether the state for the cloud resource not traversed in the list is correct;If all traversed, terminate institute
State the amendment of cloud resource in cloud resource list.
6. a kind of cloud resource state revision device, which is characterized in that described device includes judgment module and correction module, in which:
The judgment module is used for the list of timing acquisition cloud resource, judges that the list medium cloud provides according to unified determination strategy
Whether the state in source is correct;
The correction module, for being modified according to judging result.
7. device according to claim 6, which is characterized in that the judgment module judges institute according to unified determination strategy
State cloud resource in list state whether correctly include:
The judgment module from cloud resource platform obtain list in any one cloud resource state;
When the state that the judgment module obtains is expressed as unstable state, the judgment module judges whether the cloud resource is related
Connection;When the cloud resource is not associated with, the judgment module requests the current of the cloud resource to cloud resource institute generic
State;
The judgment module judges whether the state of cloud resource in the list is correct according to request results.
8. device according to claim 7, which is characterized in that the correction module is repaired according to the judging result
Just, comprising:
When the request results are expressed as stable state, then the state of the cloud resource is incorrect, and the correction module is to the cloud
The state of resource is modified;
When the request results are expressed as unstable state, then the state of the cloud resource is correct, and the correction module is without amendment.
9. device according to claim 7, which is characterized in that the judgment module requests the current shape of the cloud resource
State, comprising:
The judgment module requests the current state of the cloud resource by remote procedure call or message queue.
10. device according to claim 6, which is characterized in that the judgment module judges according to unified determination strategy
It further include that the judgment module judges that cloud resource is in the list after whether the state of cloud resource is correct in the list
It is no all to traverse, if all traversal, the judgment module continue the cloud resource for judging not traverse in the list
Whether state is correct;If all traversal, the judgment module terminate the amendment of cloud resource in the cloud resource list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811214492.9A CN109445938A (en) | 2018-10-18 | 2018-10-18 | A kind of cloud resource state revision method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811214492.9A CN109445938A (en) | 2018-10-18 | 2018-10-18 | A kind of cloud resource state revision method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109445938A true CN109445938A (en) | 2019-03-08 |
Family
ID=65546798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811214492.9A Pending CN109445938A (en) | 2018-10-18 | 2018-10-18 | A kind of cloud resource state revision method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109445938A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111866553A (en) * | 2020-07-24 | 2020-10-30 | 聚好看科技股份有限公司 | Media information calibration method and server |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102693177A (en) * | 2011-03-23 | 2012-09-26 | 中国移动通信集团公司 | Fault diagnosing and processing methods of virtual machine as well as device and system thereof |
CN102983990A (en) * | 2012-11-07 | 2013-03-20 | 曙光云计算技术有限公司 | Method and device for management of virtual machine |
CN105978712A (en) * | 2016-05-05 | 2016-09-28 | 云神科技投资股份有限公司 | Method for cloud computation management system |
-
2018
- 2018-10-18 CN CN201811214492.9A patent/CN109445938A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102693177A (en) * | 2011-03-23 | 2012-09-26 | 中国移动通信集团公司 | Fault diagnosing and processing methods of virtual machine as well as device and system thereof |
CN102983990A (en) * | 2012-11-07 | 2013-03-20 | 曙光云计算技术有限公司 | Method and device for management of virtual machine |
CN105978712A (en) * | 2016-05-05 | 2016-09-28 | 云神科技投资股份有限公司 | Method for cloud computation management system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111866553A (en) * | 2020-07-24 | 2020-10-30 | 聚好看科技股份有限公司 | Media information calibration method and server |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10050900B2 (en) | Methods and systems for allocating and provisioning computing resources | |
CN111221537A (en) | Cloud desktop upgrading method and device, cloud server and storage medium | |
CN109445923A (en) | A kind of method and device of micro services task schedule | |
CN112835524A (en) | Storage resource allocation method, storage resource controller and scheduling system | |
CN111045781A (en) | Method and device for creating mirror image on cloud platform and storage medium | |
CN110688102B (en) | Method, system, device and storage medium for capturing execution result of asynchronous interface | |
CN111582824A (en) | Cloud resource synchronization method, device, equipment and storage medium | |
CN109660393B (en) | Method and device for updating specification of cloud host | |
CN108897603A (en) | A kind of memory source management method and device | |
CN110427245A (en) | Manage virtual machine method and apparatus | |
CN109445938A (en) | A kind of cloud resource state revision method and apparatus | |
CN112559127B (en) | Virtual machine creation method, device, host and storage medium | |
CN105391755A (en) | Method and device for processing data in distributed system, and system | |
CN104104701A (en) | Online service configuration updating method and system | |
US9135457B1 (en) | System and method for recording and applying access privileges in a virtualized environment | |
CN116225617A (en) | Management migration method and device for container instance, electronic equipment and storage medium | |
CN109495298B (en) | Method and device for managing nodes in OpenStack system | |
CN109002308A (en) | A kind of method and device of BMC upgrading | |
CN112130984A (en) | Resource processing method, device and computer readable storage medium | |
CN113612818B (en) | Industrial app release system of low-code platform | |
CN109062670A (en) | A kind of virtual machine migration method and device | |
CN109189444A (en) | A kind of upgrade control method and device of the management node of server virtualization system | |
CN109656740A (en) | A method of supporting timeout treatment task flow | |
CN115480910A (en) | Multi-cluster resource management method and device and electronic equipment | |
CN114237824A (en) | Fault positioning method and device, computer readable medium and electronic equipment |
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 |
Application publication date: 20190308 |
|
RJ01 | Rejection of invention patent application after publication |