CN112269677A - Rollback operation device, method, equipment and medium under heterogeneous cloud platform - Google Patents

Rollback operation device, method, equipment and medium under heterogeneous cloud platform Download PDF

Info

Publication number
CN112269677A
CN112269677A CN202011079499.1A CN202011079499A CN112269677A CN 112269677 A CN112269677 A CN 112269677A CN 202011079499 A CN202011079499 A CN 202011079499A CN 112269677 A CN112269677 A CN 112269677A
Authority
CN
China
Prior art keywords
cloud host
resource
rollback
tree
information
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
Application number
CN202011079499.1A
Other languages
Chinese (zh)
Inventor
朱玉猛
朱波
刘正伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202011079499.1A priority Critical patent/CN112269677A/en
Publication of CN112269677A publication Critical patent/CN112269677A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/142Reconfiguring to eliminate the error
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45595Network integration; Enabling network access in virtual machine instances

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses rollback operation device, method, electronic equipment and computer readable storage medium under heterogeneous cloud platform, the device includes: the resource information memo module is used for recording resource data before the change of the cloud host to a resource information tree preset based on a memo mode in the operation process of the cloud host; the cloud host state memorandum module is used for recording actual state data before the change of the cloud host to a state management tree preset based on the memorandum mode; the data rollback processing module is used for performing rollback processing operation on relevant resources of the cloud host according to pre-operation resource data acquired from the resource information tree after the cloud host operation fails; and the management rollback processing module is used for performing rollback processing operation on the state management of the cloud host according to the actual state data before operation after the operation of the cloud host fails. The method and the device can simply, conveniently and efficiently realize rollback operation when the virtual machine is abnormally managed, and improve the stability, maintainability and system robustness of system codes.

Description

Rollback operation device, method, equipment and medium under heterogeneous cloud platform
Technical Field
The present disclosure relates to the field of cloud computing technologies, and in particular, to a rollback operation apparatus and method under a heterogeneous cloud platform, an electronic device, and a computer-readable storage medium.
Background
In the cloud computing era, more and more service systems are deployed on cloud virtual machines, cloud management platforms play more and more roles, services are more and more comprehensive, and functions are more and more. The existing cloud management platform not only simply creates a cloud host for users to use, but also fully manages the cloud host to be standard configuration of the cloud management platform, for example: starting up, shutting down, restarting, mounting volumes, unloading volumes, adding network cards, deleting network cards and the like.
The development of the cloud management platform is different from common government affairs and internet projects, and besides maintaining various database cache data, the real business is realized in the bottom layer function. For example, a cloud host is created, basic information of a virtual machine, resources of a storage network and occupation of a quota need to be prepared, then a bottom layer technology is called to create the cloud host, if a bottom layer creation error occurs, except for throwing abnormal information to give feedback to a user, other previously prepared resources are deleted, and the occupied quota is released. Other operations such as power on and off are also logic-like. Therefore, the rollback operation is also an important issue for the cloud pipe platform.
In the existing rollback operation, basically, after a business operation has an error, which resources are created and which quotas are occupied are checked first, and then deletion release is performed one by one. The method is undoubtedly very complex business logic, has very high error probability, and is easy to miss or roll back too much; secondly, the original state information of the cloud host needs to be transmitted into the whole service chain, and if errors occur, the rewriting logic is rolled back, so that a plurality of original parameter transmission is added in the service code, and the service logic becomes more complex; finally, if a certain resource is added, the code needs to be modified in a plurality of places of the system, the switching principle is not met, and the error is easy to occur. In view of the above, it is an important need for those skilled in the art to provide a solution to the above technical problems.
Disclosure of Invention
The application aims to provide a rollback operation device, a rollback operation method, electronic equipment and a computer readable storage medium under a heterogeneous cloud platform, so that rollback operation can be efficiently, simply and conveniently realized when a virtual machine is abnormally managed, excessive changes to service logic codes are avoided, and the stability, maintainability and system robustness of system codes are improved.
In order to solve the technical problem, in a first aspect, the present application discloses a rollback operation device under a heterogeneous cloud platform, including:
the resource information memorandum module is used for recording resource data before the change of the cloud host into a resource information tree preset based on the memorandum mode in the operation process of the cloud host;
the cloud host state memorandum module is used for recording actual state data before the change of the cloud host into a state management tree preset based on the memorandum mode in the operation process of the cloud host;
the data rollback processing module is used for performing rollback processing operation on relevant resources of the cloud host according to the pre-operation resource data acquired from the resource information tree after the operation failure of the cloud host occurs;
and the management rollback processing module is used for performing rollback processing operation on the state management of the cloud host according to the actual state data before operation, which is acquired from the state management tree, after the operation failure of the cloud host occurs.
Optionally, the resource information memo module is specifically configured to:
monitoring resource data change in the operation process of the cloud host based on the spring aop section programming program so as to take the changed resource data as a section and automatically write the resource data before change into a corresponding node in the resource information tree.
Optionally, the branch nodes of the resource information tree include a cloud host information node, a network information node, and a storage information node;
the leaf nodes of the cloud host information node comprise basic equipment information nodes and virtual data center occupied information nodes; the leaf nodes of the network information node comprise a subnet information node and a port group information node; the leaf nodes of the information storage nodes comprise cloud hard disk information nodes.
Optionally, the data rollback processing module is specifically configured to:
and calling corresponding service processing logics according to the types of the branch nodes in the resource information tree so as to roll back the parameters of the resource data with the changed cloud host and roll back the occupied resource quota with the changed bottom layer.
Optionally, the resource information tree and the state management tree are both B + tree structures.
In a second aspect, the present application also discloses a rollback operation method under a heterogeneous cloud platform, including:
creating a resource information tree and a state management tree in advance based on the memo mode;
in the operation process of the cloud host, recording resource data before the change of the cloud host into the resource information tree, and recording actual state data before the change of the cloud host into the state management tree;
after the operation failure of the cloud host occurs, performing rollback processing operation on the relevant resources of the cloud host according to the pre-operation resource data acquired from the resource information tree; and performing rollback processing operation on the state management of the cloud host according to the actual state data before operation, which is acquired from the state management tree.
Optionally, the recording the resource data before the cloud host is changed into the resource information tree includes:
monitoring resource data change in the operation process of the cloud host based on the spring aop section programming program so as to take the changed resource data as a section and automatically write the resource data before change into a corresponding node in the resource information tree.
Optionally, the performing rollback processing operation on the relevant resources of the cloud host according to the resource data before operation acquired from the resource information tree includes:
and calling corresponding service processing logics according to the types of the branch nodes in the resource information tree so as to roll back the parameters of the resource data with the changed cloud host and roll back the occupied resource quota with the changed bottom layer.
Optionally, the branch nodes of the resource information tree include a cloud host information node, a network information node, and a storage information node;
the leaf nodes of the cloud host information node comprise basic equipment information nodes and virtual data center occupied information nodes; the leaf nodes of the network information node comprise a subnet information node and a port group information node; the leaf nodes of the information storage nodes comprise cloud hard disk information nodes.
Optionally, the resource information tree and the state management tree are both B + tree structures.
In a third aspect, the present application also discloses an electronic device, including:
a memory for storing a computer program;
a processor configured to execute the computer program to implement the steps of the rollback operation method under any one of the heterogeneous cloud platforms as described above.
In a fourth aspect, the present application further discloses a computer-readable storage medium, in which a computer program is stored, and the computer program is used, when being executed by a processor, to implement the steps of the rollback operation method under any one of the heterogeneous cloud platforms described above.
The rollback operation device, the rollback operation method, the electronic device and the computer-readable storage medium under the heterogeneous cloud platform have the advantages that: according to the method and the system, the change of the cloud host parameters is recorded into the memorandum of the tree structure, the information needing to be rolled back can be clearly and conveniently determined, the response speed and the rolling back efficiency of the system are improved, the rolling back progress can be conveniently controlled, the rolling back logic is uniformly managed and realized, the rolling back logic processing in a service program is avoided, too many original service logics do not need to be changed, the maintainability and readability of codes are greatly improved, and the stability and the robustness of the system are improved.
Drawings
In order to more clearly illustrate the technical solutions in the prior art and the embodiments of the present application, the drawings that are needed to be used in the description of the prior art and the embodiments of the present application will be briefly described below. Of course, the following description of the drawings related to the embodiments of the present application is only a part of the embodiments of the present application, and it will be obvious to those skilled in the art that other drawings can be obtained from the provided drawings without any creative effort, and the obtained other drawings also belong to the protection scope of the present application.
Fig. 1 is a block diagram of a rollback operation device under a heterogeneous cloud platform according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a resource information tree disclosed in an embodiment of the present application;
fig. 3 is a flowchart of a rollback operation method in a heterogeneous cloud platform disclosed in an embodiment of the present application;
fig. 4 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The core of the application is to provide a rollback operation device, a rollback operation method, an electronic device and a computer readable storage medium under a heterogeneous cloud platform, so that rollback operation can be efficiently, simply and conveniently realized when a virtual machine is abnormally managed, excessive changes to a service logic code are avoided, and the stability, maintainability and system robustness of a system code are improved.
In order to more clearly and completely describe the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, in the cloud computing era, more and more service systems are deployed on a cloud virtual machine, a cloud management platform plays a greater and greater role, the service is more and more comprehensive, and the functions are more and more. The existing cloud management platform not only simply creates a cloud host for users to use, but also fully manages the cloud host to be standard configuration of the cloud management platform, for example: starting up, shutting down, restarting, mounting volumes, unloading volumes, adding network cards, deleting network cards and the like.
The development of the cloud management platform is different from common government affairs and internet projects, and besides maintaining various database cache data, the real business is realized in the bottom layer function. For example, a cloud host is created, basic information of a virtual machine, resources of a storage network and occupation of a quota need to be prepared, then a bottom layer technology is called to create the cloud host, if a bottom layer creation error occurs, except for throwing abnormal information to give feedback to a user, other previously prepared resources are deleted, and the occupied quota is released. Other operations such as power on and off are also logic-like. Therefore, the rollback operation is also an important issue for the cloud pipe platform.
In the existing rollback operation, basically, after a business operation has an error, which resources are created and which quotas are occupied are checked first, and then deletion release is performed one by one. The method is undoubtedly very complex business logic, has very high error probability, and is easy to miss or roll back too much; secondly, the original state information of the cloud host needs to be transmitted into the whole service chain, and if errors occur, the rewriting logic is rolled back, so that a plurality of original parameter transmission is added in the service code, and the service logic becomes more complex; finally, if a certain resource is added, the code needs to be modified in a plurality of places of the system, the switching principle is not met, and the error is easy to occur. In view of this, the present application provides a rollback operation scheme under a heterogeneous cloud platform, which can effectively solve the above problems.
Referring to fig. 1, an embodiment of the present application discloses a rollback operation device under a heterogeneous cloud platform, which mainly includes:
the resource information memo module 101 is configured to record resource data before the change of the cloud host into a resource information tree preset based on a memo mode in the operation process of the cloud host;
the cloud host state memo module 102 is configured to record actual state data before the change of the cloud host into a state management tree preset based on a memo mode in the cloud host operation process;
the data rollback processing module 103 is configured to, after a cloud host operation failure occurs, perform rollback processing operations on relevant resources of the cloud host according to pre-operation resource data acquired from the resource information tree;
and the management rollback processing module 104 is configured to, after a cloud host operation failure occurs, perform rollback processing operation on the state management of the cloud host according to the actual state data before operation, which is acquired from the state management tree.
Specifically, the heterogeneous cloud platform is a cloud resource management platform that is compatible with a plurality of chip types and virtualization technologies, for example, X86, home chips, and the like are compatible, and virtualization technologies such as vmwar, OPENSTACK, and the like are also compatible. The cloud host refers to a virtual machine in a cloud management platform, which is not a real server or a host, but a virtual machine virtualized by some hardware server or host through a certain virtualization technology, and can realize the same function as a physical machine.
The method specifically designs a management class with a tree structure based on a memo mode, resource types are indicated on branch nodes of each tree, resource parameters and the like needing to be recorded are recorded into the management class, and once business operation of a cloud host is wrong, rollback operation can be performed according to data on the nodes in the trees by traversing the management class with the tree shape.
The memorandum mode is a design mode in programming, and particularly refers to capturing the internal state of an object without destroying the package, and saving the state outside the object, so that the object can be restored to the previously saved state at a later time.
In addition, a tree is a data structure commonly used in programming, and includes a branch node and a leaf node, and data is specifically stored in each node to support traversal according to a hierarchy.
Specifically, the memorandum is designed based on the data structure of the tree, and the resource information tree is created. And each type of resource data in the operation process of the cloud host is used as a branch node in the resource information tree, and the specific information data under each type of resource data is used as a leaf node under the branch node. That is, the branch node is a type of resource data, and the leaf node is specific information data of the type of resource.
Meanwhile, the state management tree is also created and used for recording actual state data of the cloud host on the bottom hardware technical level and serving as a data base for performing related management operation on the virtual machine.
The data rollback processing module 103 is provided with processing logic for performing different rollback processing operations on the relevant resources, respectively, in response to a change in different types of resource data. Similarly, the management rollback processing module 104 is respectively provided with processing logic for performing different rollback processing operations on the management state of the cloud host, in case that different types of actual state data change.
When the service operation of the cloud host is wrong, the data rollback processing module 103 may traverse the resource information tree, the management rollback processing module 104 may traverse the state management tree, and perform corresponding rollback operation according to the resource data before change and the actual state data stored on the nodes in the tree, so as to restore the cloud host and the resource configuration related thereto to the sample before change.
Therefore, the rollback operation device under the heterogeneous cloud platform disclosed by the embodiment of the application can clearly and conveniently determine the information needing to be rolled back by recording the change of the cloud host parameters into the memorandum of the tree structure, improves the response speed and the rollback efficiency of the system, can conveniently control the rollback progress, can execute the rollback operation to roll back all the services in any error step, and can freely select only part of resources to be rolled back. The method and the device also perform unified management and realization on the rollback logic, avoid rollback logic processing in the service program, and therefore do not need to change too many original service logics, greatly improve maintainability and readability of codes, and improve stability and robustness of the system.
As a specific embodiment, in the rollback operation apparatus under the heterogeneous cloud platform disclosed in the embodiment of the present application, on the basis of the foregoing content, the resource information memo module 101 is specifically configured to:
monitoring resource data change in the operation process of the cloud host based on the spring aop section programming program so as to take the changed resource data as a section and automatically write the resource data before change into a corresponding node in a resource information tree.
Specifically, in this embodiment, a section processing logic may be declared in advance, an interface of resource data change is used as a cut point, and when a service program executes some cloud host operations that cause resource data change, the section automatically stores the change condition of the resource in a memo class.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a resource information tree disclosed in the embodiment of the present application.
As a specific embodiment, in the rollback operation device under the heterogeneous cloud platform disclosed in the embodiment of the present application, on the basis of the above contents, the branch nodes of the resource information tree include a cloud host information node, a network information node, and a storage information node;
the leaf nodes of the cloud host information node comprise basic equipment information nodes and Virtual Data Center (VDC) occupation information nodes; the leaf nodes of the network information node comprise a subnet information node and a port group information node; the leaf nodes of the information storage nodes comprise cloud hard disk information nodes.
It will be readily appreciated that a similar node arrangement may also be employed for the state management tree used to record the actual state data of the cloud host.
As a specific embodiment, in the rollback operation apparatus under a heterogeneous cloud platform disclosed in the embodiment of the present application, on the basis of the foregoing content, the data rollback processing module 103 is specifically configured to:
and calling corresponding service processing logics according to the types of the branch nodes in the resource information tree so as to roll back the parameters of the resource data with the change of the cloud host and roll back the occupation of the resource quota with the change of the bottom layer.
Specifically, processing logic for various resource types is set in the data rollback processing module 103, and in the rollback logic processing process, by traversing the resource information tree, if cloud host information data is required to be rolled back, the processing logic for the cloud host information types is called; if the data is the network information data, calling a processing logic of the network information type; if the data is the stored information data, calling a processing logic for storing the information type; and analogizing in turn, and performing unified processing on the resource classification by using the tree structure.
Similarly, based on the state management tree, certain management operations on the cloud host, such as power on, power off, configuration change, etc., may refer to logic similar to the resource information tree described above.
As a specific embodiment, in the rollback operation device under the heterogeneous cloud platform disclosed in the embodiment of the present application, on the basis of the foregoing content, the resource information tree and the state management tree are both in a B + tree structure.
Resources are classified based on the B + tree structure, compared with other data structures, the resources can be divided into more details, a new resource is added, maintenance is easier, and much original service logic does not need to be changed. Of course, other types of tree structures may be used by those skilled in the art, and are not limited in this application.
Referring to fig. 3, an embodiment of the present application discloses a rollback operation method under a heterogeneous cloud platform, which mainly includes:
s201: the resource information tree and the state management tree are created in advance based on the memo mode.
S202: in the operation process of the cloud host, the resource data before the change of the cloud host is recorded into the resource information tree, and the actual state data before the change of the cloud host is recorded into the state management tree.
S203: after the operation failure of the cloud host occurs, performing rollback processing operation on relevant resources of the cloud host according to the pre-operation resource data acquired from the resource information tree; and performing rollback processing operation on the state management of the cloud host according to the actual state data before operation, which is acquired from the state management tree.
Therefore, according to the rollback operation method under the heterogeneous cloud platform, the change of the cloud host parameters is recorded into the memorandum type with the tree structure, the information needing to be rolled back can be clearly and conveniently determined, the response speed and the rollback efficiency of the system are improved, the rollback progress can be conveniently controlled, the rollback operation can be executed to roll back all the services in any error step, and only part of resources can be freely selected to be rolled back. The method and the device also perform unified management and realization on the rollback logic, avoid rollback logic processing in the service program, and therefore do not need to change too many original service logics, greatly improve maintainability and readability of codes, and improve stability and robustness of the system.
As a specific embodiment, the method for rollback operation under a heterogeneous cloud platform provided in the embodiment of the present application records resource data before a cloud host change in a resource information tree on the basis of the foregoing content, and includes:
monitoring resource data change in the operation process of the cloud host based on the spring aop section programming program so as to take the changed resource data as a section and automatically write the resource data before change into a corresponding node in a resource information tree.
As a specific embodiment, the rollback operation method under the heterogeneous cloud platform provided in the embodiment of the present application performs a rollback processing operation on a relevant resource of the cloud host according to the pre-operation resource data acquired from the resource information tree, based on the above contents, and includes:
and calling corresponding service processing logics according to the types of the branch nodes in the resource information tree so as to roll back the parameters of the resource data with the change of the cloud host and roll back the occupation of the resource quota with the change of the bottom layer.
As a specific embodiment, in the rollback operation method under the heterogeneous cloud platform provided in the embodiment of the present application, based on the above contents, the branch nodes of the resource information tree include a cloud host information node, a network information node, and a storage information node;
the leaf nodes of the cloud host information node comprise basic equipment information nodes and virtual data center occupied information nodes; the leaf nodes of the network information node comprise a subnet information node and a port group information node; the leaf nodes of the information storage nodes comprise cloud hard disk information nodes.
As a specific embodiment, in the rollback operation method under the heterogeneous cloud platform provided in the embodiment of the present application, on the basis of the foregoing content, the resource information tree and the state management tree are both in a B + tree structure.
For specific contents of the rollback operation method under the heterogeneous cloud platform, reference may be made to the foregoing detailed description of the rollback operation device under the heterogeneous cloud platform, which is not repeated herein.
Referring to fig. 4, an embodiment of the present application discloses an electronic device, including:
a memory 301 for storing a computer program;
a processor 302 configured to execute the computer program to implement the steps of the rollback operation method under any one of the heterogeneous cloud platforms as described above.
Further, the embodiment of the present application also discloses a computer-readable storage medium, in which a computer program is stored, and the computer program is used for implementing the steps of the rollback operation method under any one of the heterogeneous cloud platforms, when being executed by a processor.
For specific contents of the electronic device and the computer-readable storage medium, reference may be made to the foregoing detailed description on the rollback operation device under the heterogeneous cloud platform, and details thereof are not repeated here.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. For the equipment disclosed by the embodiment, the description is relatively simple because the equipment corresponds to the method disclosed by the embodiment, and the relevant parts can be referred to the method part for description.
It is further noted that, throughout this document, relational terms such as "first" and "second" are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Furthermore, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The technical solutions provided by the present application are described in detail above. The principles and embodiments of the present application are explained herein using specific examples, which are provided only to help understand the method and the core idea of the present application. It should be noted that, for those skilled in the art, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall into the protection scope of the present application.

Claims (10)

1. A rollback operation device under a heterogeneous cloud platform comprises:
the resource information memorandum module is used for recording resource data before the change of the cloud host into a resource information tree preset based on the memorandum mode in the operation process of the cloud host;
the cloud host state memorandum module is used for recording actual state data before the change of the cloud host into a state management tree preset based on the memorandum mode in the operation process of the cloud host;
the data rollback processing module is used for performing rollback processing operation on relevant resources of the cloud host according to the pre-operation resource data acquired from the resource information tree after the operation failure of the cloud host occurs;
and the management rollback processing module is used for performing rollback processing operation on the state management of the cloud host according to the actual state data before operation, which is acquired from the state management tree, after the operation failure of the cloud host occurs.
2. The rollback operation device of claim 1, wherein the resource information memo module is specifically configured to:
monitoring resource data change in the operation process of the cloud host based on the spring aop section programming program so as to take the changed resource data as a section and automatically write the resource data before change into a corresponding node in the resource information tree.
3. The rollback operation device according to claim 1, wherein the branch nodes of the resource information tree include a cloud host information node, a network information node, and a storage information node;
the leaf nodes of the cloud host information node comprise basic equipment information nodes and virtual data center occupied information nodes; the leaf nodes of the network information node comprise a subnet information node and a port group information node; the leaf nodes of the information storage nodes comprise cloud hard disk information nodes.
4. The rollback operation device of claim 3, wherein the data rollback processing module is specifically configured to:
and calling corresponding service processing logics according to the types of the branch nodes in the resource information tree so as to roll back the parameters of the resource data with the changed cloud host and roll back the occupied resource quota with the changed bottom layer.
5. Rollback operation device according to any of claims 1-4, wherein the resource information tree and the state management tree are both B + tree structures.
6. A rollback operation method under a heterogeneous cloud platform is characterized by comprising the following steps:
creating a resource information tree and a state management tree in advance based on the memo mode;
in the operation process of the cloud host, recording resource data before the change of the cloud host into the resource information tree, and recording actual state data before the change of the cloud host into the state management tree;
after the operation failure of the cloud host occurs, performing rollback processing operation on the relevant resources of the cloud host according to the pre-operation resource data acquired from the resource information tree; and performing rollback processing operation on the state management of the cloud host according to the actual state data before operation, which is acquired from the state management tree.
7. The rollback operation method according to claim 6, wherein the recording resource data before the cloud host change into the resource information tree includes:
monitoring resource data change in the operation process of the cloud host based on the spring aop section programming program so as to take the changed resource data as a section and automatically write the resource data before change into a corresponding node in the resource information tree.
8. The rollback operation method according to claim 6, wherein performing a rollback processing operation on a resource related to a cloud host according to resource data before operation acquired from the resource information tree includes:
and calling corresponding service processing logics according to the types of the branch nodes in the resource information tree so as to roll back the parameters of the resource data with the changed cloud host and roll back the occupied resource quota with the changed bottom layer.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the steps of the rollback operation method of any of claims 6-8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, is adapted to carry out the steps of the rollback operation method according to any one of claims 6-8.
CN202011079499.1A 2020-10-10 2020-10-10 Rollback operation device, method, equipment and medium under heterogeneous cloud platform Pending CN112269677A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011079499.1A CN112269677A (en) 2020-10-10 2020-10-10 Rollback operation device, method, equipment and medium under heterogeneous cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011079499.1A CN112269677A (en) 2020-10-10 2020-10-10 Rollback operation device, method, equipment and medium under heterogeneous cloud platform

Publications (1)

Publication Number Publication Date
CN112269677A true CN112269677A (en) 2021-01-26

Family

ID=74338811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011079499.1A Pending CN112269677A (en) 2020-10-10 2020-10-10 Rollback operation device, method, equipment and medium under heterogeneous cloud platform

Country Status (1)

Country Link
CN (1) CN112269677A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553943A (en) * 2022-01-26 2022-05-27 苏州浪潮智能科技有限公司 Cloud platform service layer unified information rollback method, device, terminal and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114553943A (en) * 2022-01-26 2022-05-27 苏州浪潮智能科技有限公司 Cloud platform service layer unified information rollback method, device, terminal and medium
CN114553943B (en) * 2022-01-26 2023-08-08 苏州浪潮智能科技有限公司 Cloud platform business layer unified information rollback method, device, terminal and medium

Similar Documents

Publication Publication Date Title
CN102779185B (en) High-availability distribution type full-text index method
CN107045422B (en) Distributed storage method and device
US20170220614A1 (en) Consistent ring namespaces facilitating data storage and organization in network infrastructures
JP6499085B2 (en) Resource annotations
CN111708755A (en) Data migration method, device, system, electronic equipment and readable storage medium
CN113448938A (en) Data processing method and device, electronic equipment and storage medium
CN110659259A (en) Database migration method, server and computer storage medium
CN114443332A (en) Storage pool detection method and device, electronic equipment and storage medium
US11977559B2 (en) Providing instant and distributed access to a source blob via copy-on-read blobs and link blobs
CN112269677A (en) Rollback operation device, method, equipment and medium under heterogeneous cloud platform
US20180322675A1 (en) Image Processing Method and Computing Device
CN111857939A (en) Method, system, electronic device and storage medium for deleting and pushing mirror image
CN112000971B (en) File permission recording method, system and related device
CN111488128B (en) Method, device, equipment and medium for updating metadata
CN117131014A (en) Database migration method, device, equipment and storage medium
CN115543918A (en) File snapshot method, system, electronic equipment and storage medium
CN114138560A (en) Backup restoration method and system for operating system
CN115686811A (en) Process management method, device, computer equipment and storage medium
CN113641298A (en) Data storage method, device and computer program product
US11755538B2 (en) Distributed management of file modification-time field
WO2024078211A1 (en) Backup method for service cluster instance, recovery method for service cluster instance, and related device
CN116775596A (en) Data migration method and device, server and storage medium
US20170308542A1 (en) File system configuration data storage
CN114301927A (en) Method, device and medium for selecting master node in distributed system
CN116719604A (en) Container migration method and device, storage 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