Cluster management information interaction method, device, equipment and storage medium
By performing operation feasibility verification of resource objects in cluster management information interaction and sending processing operation instructions to cluster management system, the problem of incompatibility between the portal system and the cluster management system is solved, and efficient and flexible information is achieved Interaction reduces the cost of accessing cloud management platforms.
Patent Information
- Application Number
- CN202211709864.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-29
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2042-12-29
AI Technical Summary
The existing cluster management information interaction portal system is incompatible with the cluster management system, and the flexibility is low, resulting in large system transformation, complex access, and low efficiency, which increases the cost of access to the cloud management platform.
When obtaining the asset processing operation information on the portal system, the operation feasibility checks are performed on the associated resource objects. After the verification is passed, the corresponding resource processing operation instructions are sent to the target cluster management system, and the operation feedback is performed based on the feedback information to realize the cluster Manage information interaction.
It reduces the complexity of cluster management information interaction, improves interaction flexibility and development efficiency, and can interact with the portal system without the need to reconstruct the multi-cluster management system, reducing the cost of accessing the cloud management platform.
Smart Images

Figure CN115913954B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of cloud service technology, and in particular to a cluster management information interaction method, apparatus, device and storage medium. Background Art
[0002] The Kubernetes multi-cluster management platform is a container cloud product management system with an independent user system, independent asset management, quota management, and independent billing system. Since the Kubernetes multi-cluster management system is not directly compatible with its management object, the container cloud management platform, it is necessary to consider the information connection between the two.
[0003] In the prior art, the Kubernetes multi-cluster management system is often reconstructed to achieve connection compatibility with the cloud management platform. However, this solution requires a large amount of system transformation, is complex to access, and is inefficient, which increases the cost of accessing the cloud management platform. Summary of the invention
[0004] The present invention provides a cluster management information interaction method, device, equipment and storage medium, which reduce the complexity of cluster management information interaction and improve the flexibility and development efficiency of cluster management information interaction.
[0005] According to one aspect of the present invention, a cluster management information interaction method is provided, the method comprising:
[0006] When the asset processing operation information of any portal system is obtained, the feasibility of the operation is checked for the resource objects associated with the asset processing operation information;
[0007] When the operation feasibility check passes, a resource processing operation instruction corresponding to the asset processing operation information is sent to the target cluster management system end, so that the target cluster management system end performs corresponding processing operations on the resource object;
[0008] According to the resource object processing operation feedback information of the target cluster management system end, the operation feedback information of the asset processing operation is sent to any portal system end to realize the cluster management information interaction process.
[0009] According to another aspect of the present invention, a cluster management information interaction device is provided, which is applied to a resource management server, and the device includes:
[0010] The operation verification module is used to verify the feasibility of the operation of the resource objects associated with the asset processing operation information when the asset processing operation information of any portal system is obtained;
[0011] The operation instruction information processing module is used to send a resource processing operation instruction corresponding to the asset processing operation information to the target cluster management system end when the operation feasibility check passes, so that the target cluster management system end performs corresponding processing operations on the resource object;
[0012] The operation feedback information processing module is used to process the operation feedback information according to the resource object of the target cluster management system end, send the operation feedback information of the asset processing operation to any portal system end, and realize the cluster management information interaction process.
[0013] According to another aspect of the present invention, there is provided an electronic device, the electronic device comprising:
[0014] at least one processor; and
[0015] a memory communicatively connected to at least one processor; wherein,
[0016] The memory stores a computer program that can be executed by at least one processor. The computer program is executed by at least one processor so that the at least one processor can execute the cluster management information interaction method of any embodiment of the present invention.
[0017] According to another aspect of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cluster management information interaction method of any embodiment of the present invention when executed.
[0018] The technical solution of the embodiment of the present invention is to perform an operation feasibility check on the resource object associated with the asset processing operation information when the asset processing operation information of any portal system end is obtained; when the operation feasibility check is passed, the resource processing operation instruction corresponding to the asset processing operation information is sent to the target cluster management system end, so that the target cluster management system end performs the corresponding processing operation on the resource object; according to the resource object processing operation feedback information of the target cluster management system end, the operation feedback information of the asset processing operation is sent to any portal system end to realize the cluster management information interaction process. The problem of incompatibility and low flexibility of information interaction between the existing cluster management information interaction portal system and the cluster management system is solved, and interaction with the portal system can be realized without the reconstruction of multiple cluster management systems, which reduces the complexity of cluster management information interaction, improves the flexibility and development efficiency of cluster management information interaction, and thus reduces the cost of cloud management platform access.
[0019] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 is a flow chart of a cluster management information interaction method provided by an embodiment of the present invention;
[0022] Figure 2 is a flow chart of another cluster management information interaction method provided by an embodiment of the present invention;
[0023] Figure 3 is a flow chart of another cluster management information interaction method provided by an embodiment of the present invention;
[0024] Figure 4 is a flowchart of a specific cluster management information interaction method provided by an embodiment of the present invention;
[0025] Figure 5 It is a structural block diagram of a cluster management information interaction device provided by an embodiment of the present invention;
[0026] Figure 6 It is a structural block diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "target" and "any" in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] Figure 1 This is a flow chart of a cluster management information interaction method provided by an embodiment of the present invention. This embodiment is applicable to cluster management information interaction scenarios of cloud platforms. The method can be executed by a cluster management information interaction device, which can be implemented by software and / or hardware and integrated into an electronic device with application development functions.
[0030] like Figure 1 As shown, the cluster management information interaction method includes the following steps:
[0031] S110. When asset processing operation information is obtained from any portal system end, an operation feasibility check is performed on the resource object associated with the asset processing operation information.
[0032] The portal system end is the cloud portal system end that is connected to the cloud platform. Users can process portal system assets through the human-computer interaction interface of the portal system end, such as adding, deleting or updating operations. Assets include SaaS (Software-as-a-Service) resources, system computing resources, and network configuration resources.
[0033] Among them, the asset processing operation information is generated in response to the user's asset processing operation such as adding, deleting or updating operations.
[0034] Resource objects are resource objects that have a mapping relationship with asset objects in asset processing operations in the multi-cluster management system, and can be container resource objects in the multi-cluster management system. When a user processes a corresponding asset object on the portal system, it must be mapped to a container resource object in the multi-cluster management system, and the corresponding container resource object must be processed synchronously to maintain consistency between the portal system and the corresponding multi-cluster management system.
[0035] Furthermore, the goal of the operation feasibility check is to determine the feasibility of the asset processing operation. Specifically, the feasibility check of the operation can be performed by determining whether the related processing operation can be performed on the associated resource object. For example, determine whether the associated resource object exists, and whether the specific operation content of the asset processing operation matches the existence status of the associated resource object. Exemplarily, when the asset processing operation is to create an asset, determine whether the corresponding resource object exists. If the corresponding resource object exists, it does not need to be created, and the operation feasibility check fails; if the corresponding resource object does not exist, and the corresponding resource object can be created in the multi-cluster management system, the operation feasibility check passes.
[0036] S120. When the operation feasibility check passes, a resource processing operation instruction corresponding to the asset processing operation information is sent to the target cluster management system end, so that the target cluster management system end performs corresponding processing operations on the resource object.
[0037] The target cluster management system end is a cluster management system end corresponding to the resource object associated with the asset processing operation information. Exemplarily, it can be a cluster management platform based on Kubernetes (K8s), elasticsearch or Swarm.
[0038] The cluster management information interaction device can simultaneously expand and connect multiple cluster management systems, including multiple cluster management systems of different business levels and multiple cluster management systems of different service objects. The target cluster management system end can be determined according to the identification information of the multiple cluster management systems carried in the asset processing operation information.
[0039] The resource processing operation instruction is consistent with the asset processing operation. For example, if the asset processing operation is to delete an asset object, then the corresponding resource processing operation instruction in the cluster management system can be to delete the container resource object that has a mapping relationship with a certain asset object, so that the target cluster management system can perform corresponding processing operations on the resource object.
[0040] Specifically, the resource processing operation instruction is used to implement the corresponding processing operation of the corresponding resource object. When the operation feasibility check passes, the resource processing operation instruction corresponding to the asset processing operation information is sent to the cluster management system end corresponding to the resource object associated with the asset processing operation information, so that the target cluster management system end performs the corresponding processing operation on the resource object.
[0041] S130: Sending the operation feedback information of the asset processing operation to any portal system end according to the resource object processing operation feedback information of the target cluster management system end, so as to realize the cluster management information interaction process.
[0042] The feedback information is used to describe the status of the target cluster management system executing the processing operation on the resource object according to the resource processing operation instruction, and can be feedback information of successful processing operation or feedback information of failed processing operation.
[0043] It is understandable that the resource object processing operation on the target cluster management system side may succeed or fail. Corresponding feedback information on the success / failure of the resource processing operation can be generated based on the resource object processing operation on the target cluster management system side, and feedback information on the success / failure of the resource processing operation can be sent to the corresponding portal system side, so that the portal system and the corresponding target cluster management system can maintain the corresponding management object status consistent with each other, thereby realizing the cluster management information interaction process.
[0044] The technical solution of this embodiment is to perform an operation feasibility check on the resource object associated with the asset processing operation information when the asset processing operation information of any portal system is obtained; when the operation feasibility check is passed, the resource processing operation instruction corresponding to the asset processing operation information is sent to the target cluster management system end, so that the target cluster management system end performs the corresponding processing operation on the resource object; according to the resource object processing operation feedback information of the target cluster management system end, the operation feedback information of the asset processing operation is sent to any portal system end to realize the cluster management information interaction process. The problem of incompatibility and low flexibility of information interaction between the existing cluster management information interaction portal system and the cluster management system is solved. Interaction with the portal system can be realized without the reconstruction of multiple cluster management systems, reducing the complexity of cluster management information interaction, improving the flexibility and development efficiency of cluster management information interaction, and thus reducing the cost of cloud management platform access.
[0045] Figure 2 It is a flowchart of another cluster management information interaction method provided by an embodiment of the present invention. This embodiment and the cluster management information interaction method in the above embodiment belong to the same inventive concept. This embodiment can be applied to the cluster management information interaction scenario of the cloud platform. In particular, this embodiment is applicable to the cluster management information interaction scenario of the Kubernetes multi-cluster management platform. The method can be executed by a cluster management information interaction device, which can be implemented by software and / or hardware and integrated into an electronic device with application development function.
[0046] like Figure 2 As shown, the method comprises the following steps:
[0047] S210: When asset processing operation information is obtained from any portal system, determine whether the resource object exists according to the preset asset and resource mapping relationship table, and perform operation feasibility verification.
[0048] Specifically, a mapping relationship between assets on the portal system side and resource objects on the multi-cluster management system side is preset, for example, it can be a mapping relationship between assets in asset processing operations and container resource objects in the multi-cluster management system, and a corresponding mapping relationship table between assets and resource objects is generated.
[0049] When the asset processing operation information of any portal system is obtained, it is determined whether the resource object corresponding to the asset processing operation information exists according to the preset asset and resource object mapping relationship table, and the feasibility of the operation is verified according to the determination result and the operation content of the asset processing operation. Exemplarily, when the asset processing operation is to create an asset, it is determined whether the corresponding resource object exists. If the corresponding resource object exists, it does not need to be created, and the feasibility check of the operation fails; if the corresponding resource object does not exist, and the corresponding resource object can be created in the multi-cluster management system, the feasibility check of the operation passes.
[0050] S220: When the operation feasibility check passes, a resource processing operation instruction corresponding to the asset processing operation information is sent to the target cluster management system end, so that the target cluster management system end performs corresponding processing operations on the resource object.
[0051] S230: When the resource object processing operation feedback information is operation success information, the related asset and resource mapping relationship in the mapping relationship table is updated.
[0052] When the resource object processing operation feedback information is operation success information, the mapping relationship table between the asset and resource object corresponding to the asset processing operation information is updated, and corresponding feedback information of asset processing operation success is generated.
[0053] S240: Send the relevant asset-resource mapping relationship as operation feedback information of the asset processing operation to any portal system end, so that any portal system end updates the operation result of the asset processing operation.
[0054] The mapping relationship between the relevant asset objects and resource objects in the updated mapping relationship table is sent to the corresponding portal system end as the operation feedback information of the asset processing operation, so that the corresponding portal system end updates the operation result of the asset processing operation according to the mapping relationship between the relevant asset and resource objects in the updated mapping relationship table.
[0055] Furthermore, the method further comprises the following steps:
[0056] S250: When the update failure information of the operation result sent by any portal system end is obtained, the update failure information of the operation result is sent to the target cluster management system end.
[0057] It can be understood that when the update failure information of the operation result sent by the corresponding portal system end, the update failure information of the operation result needs to be sent to the target cluster management system end, and the mapping relationship between the relevant asset objects and resource objects in the updated mapping relationship table needs to be restored to the unupdated mapping relationship table, thereby ending the operation and realizing the cluster management information interaction process.
[0058] The technical solution of this embodiment is as follows: when the asset processing operation information of any portal system end is obtained, whether the resource object exists is determined according to the preset asset and resource mapping relationship table, and the operation feasibility is checked; when the operation feasibility check is passed, the resource processing operation instruction corresponding to the asset processing operation is sent to the target cluster management system end, so that the target cluster management system end performs the corresponding processing operation on the resource object; when the resource object processing operation feedback information is the operation success information, the relevant asset and resource mapping relationship in the mapping relationship table is updated; the relevant asset and resource mapping relationship is sent to any portal system end as the operation feedback information of the asset processing operation, so that any portal system end updates the operation result of the asset processing operation; when the operation result update failure information sent by any portal system end is obtained, the operation result update failure information is sent to the target cluster management system end. The technical solution of this embodiment adds feedback information about resource object processing operations, solves the problem of incompatibility and low flexibility of information interaction between the existing cluster management information interaction portal system and the cluster management system, and can achieve interaction with the portal system without the need to reconstruct multiple cluster management systems, thereby reducing the complexity of cluster management information interaction, further improving the flexibility and development efficiency of cluster management information interaction, and thus reducing the cost of access to the cloud management platform.
[0059] Figure 3 It is a flowchart of another cluster management information interaction method provided by an embodiment of the present invention. This embodiment and the cluster management information interaction method in the above embodiment belong to the same inventive concept. This embodiment can be applied to the cluster management information interaction scenario of the cloud platform, and in particular, this embodiment is applicable to the information interaction scenario of the Kubernetes multi-cluster management platform. The method can be executed by a cluster management information interaction device, which can be implemented by software and / or hardware and integrated into an electronic device with application development function.
[0060] like Figure 3 As shown, the cluster management information interaction method includes the following steps:
[0061] S310: When the asset processing operation information of any portal system end is obtained, the feasibility of the operation is checked for the resource object associated with the asset processing operation information.
[0062] S320: When the operation feasibility check passes, a resource processing operation instruction corresponding to the asset processing operation information is sent to the target cluster management system end, so that the target cluster management system end performs corresponding processing operations on the resource object.
[0063] S330: Send the operation feedback information of the asset processing operation to any portal system end according to the resource object processing operation feedback information of the target cluster management system end, so as to realize the cluster management information interaction process.
[0064] Furthermore, there is a certain period of parallel operation between the portal system and the multi-cluster management system. When the administrator of the multi-cluster management system processes the container resources in the system, the asset objects in the corresponding portal system must also be updated synchronously.
[0065] S340: When the container resource processing operation information of any cluster management system is obtained, an asset processing feasibility check is performed on the asset object associated with the container resource processing operation information.
[0066] A container is a process running in an isolated environment. If the process stops, the container will be destroyed, and the corresponding asset objects in the portal system also need to be processed. Specifically, when the container resource processing operation information is obtained from any cluster management system, according to the preset mapping relationship between asset objects and container resources, for example, it can be possible to use smart contracts on two networks (such as TRON and BTTC) to make a one-to-one correspondence between asset objects and container resources, so as to facilitate container resource processing operations such as locking, destroying and transferring, determine whether the processed container resource has an asset object with which it is mapped, and determine the result of the asset processing feasibility check based on the specific content of the operation and the existence of the associated asset object.
[0067] S350: When the asset processing feasibility check passes, the mapping relationship between the corresponding container resources and the asset objects is pre-updated according to the container resource processing operation information.
[0068] When the asset processing feasibility check passes, the mapping relationship is pre-updated according to the mapping relationship between the container resource and the asset object corresponding to the container resource processing operation information. Pre-update means that the updated mapping relationship is cached first, and the updated mapping relationship is not written into the corresponding mapping relationship table. The mapping relationship update result is finally determined after the mapping relationship update result is determined in the corresponding portal system, so as to avoid the mapping relationship update being completed unilaterally on the cluster management system side.
[0069] S360: Synchronize the mapping relationship between the container resource and the asset object to the target portal system end associated with the container resource processing operation information, so that the target portal system end updates the asset object.
[0070] Specifically, after the mapping relationship between the container resources and the asset objects is pre-updated, the pre-updated content is sent to the target portal system to inform the portal system to update the mapping relationship between the corresponding resource objects and the asset objects.
[0071] S370: When the asset object update feedback information sent by the target portal system is update success information, the mapping relationship between the container resource and the asset object is updated according to the pre-update result of the mapping relationship between the container resource and the asset object.
[0072] When the asset object update feedback information sent by the target portal system is update success information, feedback information about the successful update of the asset processing operation is sent to the target cluster management system, and the update of the mapping relationship between container resources and asset objects is completed according to the pre-update result of the mapping relationship between container resources and asset objects.
[0073] It can be understood that when the asset object update feedback information sent by the target portal system is update failure information, the cluster management information interaction device sends feedback information about the failure of the asset processing operation update to the target cluster management system to cancel the update of the mapping relationship between the container resources and the asset objects in the cache.
[0074] In addition, it is understandable that there is no time sequence for the execution of S340, S310, S320 and S330, and when the portal system or cluster management system is processed by the corresponding asset object or resource object, the corresponding information interaction process will be triggered.
[0075] Furthermore, the method also includes:
[0076] S380: Count the asset object and resource object mapping usage records of each portal system in a preset time dimension, and send the statistical results to the corresponding portal system.
[0077] The preset time dimension can be a day, week, month, quarter, or year dimension.
[0078] It is understandable that it is necessary to collect statistics on the asset object and resource object mapping usage records of each portal system in the time dimension of day, week, month, quarter or year, and send the statistical results to the corresponding portal system. The advantage of this is that it is easy to manage resource objects and asset objects, and can systematically, clearly and intuitively reflect the asset object and resource object mapping usage records for the implementation of cloud service billing and other functions.
[0079] Figure 4 is a flowchart of a specific cluster management information interaction method provided by an embodiment of the present invention, such as Figure 4 As shown, the cluster management information interaction method includes the following steps:
[0080] S410. When the portal system initiates an asset processing operation and generates asset processing operation information, the cluster management information interaction system determines whether a resource object exists according to a preset asset and resource mapping relationship table, and performs an operation feasibility check on the resource object associated with the asset processing operation.
[0081] The cluster management information interaction system can be used as a unified interface between the portal system of multiple cloud platforms and the cluster management system. It is used for data transmission and conversion and can be understood as a front-end system of the cluster management system.
[0082] Specifically, when any portal system end issues an asset processing operation, the portal system end generates asset processing operation information and determines whether the resource object exists according to the preset asset and resource mapping relationship table, and performs an operation feasibility check on the resource object associated with the asset processing operation. For example, when the asset processing operation is to create an asset, it is determined whether the corresponding resource object exists. If the corresponding resource object exists, there is no need to create the corresponding resource object, the operation feasibility check fails, and the current operation ends; if the corresponding resource object does not exist, and the corresponding resource object can be created in the multi-cluster management system, the operation feasibility check passes, and enters S420.
[0083] S420, the cluster management information interaction system sends a resource processing operation instruction corresponding to the asset processing operation information to the cluster management system, so that the cluster management system performs corresponding processing operations on the resource object and updates the relevant asset and resource mapping relationship in the mapping relationship table.
[0084] S430. The cluster management information interaction system sends the relevant asset and resource mapping relationship as operation feedback information of the asset processing operation to the corresponding portal system, so that the corresponding portal system updates the operation result of the asset processing operation.
[0085] S440: When the cluster management information interaction system obtains the operation result update success information sent by the corresponding portal system, the cluster management information interaction system updates the relevant asset and resource mapping relationship in the mapping relationship table.
[0086] Specifically, the cluster management information interaction system sends the updated asset and resource mapping relationship as the operation feedback information of the asset processing operation to the corresponding portal system, and generates corresponding operation feedback information at the same time. The feedback information can be operation result update success information or operation result update failure information. When the operation result update success information sent by the corresponding portal system is obtained, the cluster management information interaction system updates the relevant asset and resource mapping relationship in the mapping relationship table.
[0087] It can be understood that when the cluster management information interaction system obtains the operation result update failure information sent by the corresponding portal system, the operation result update failure information is sent to the cluster management system through the cluster management information interaction system, and the relevant asset and resource mapping relationship in the updated mapping relationship table is cancelled.
[0088] Furthermore, the portal system and the multi-cluster management system have a certain period of parallel operation. When the administrator of the multi-cluster management system processes the container resources in the system, the asset objects in the corresponding portal system must also be updated synchronously. The method further includes the following steps:
[0089] S510: When the cluster management information interaction system obtains container resource processing operation information from any cluster management system, the cluster management information interaction system performs asset processing feasibility verification on the asset object associated with the container resource processing operation information.
[0090] Specifically, when the cluster management information interaction system obtains the container resource processing operation information of any cluster management system, the cluster management information interaction system determines whether the asset object exists according to the preset asset and resource mapping relationship table, and performs an asset processing feasibility check. For example, when the resource processing operation is to create a resource, it is determined whether the corresponding asset object exists. If the corresponding asset object exists, it does not need to be created, the operation feasibility check fails, and the current operation ends. If the corresponding asset object does not exist and the corresponding asset object can be created on the portal system side, the operation feasibility check passes and enters S520.
[0091] S520: When the asset processing feasibility check passes, the cluster management information interaction system pre-updates the mapping relationship between the corresponding container resources and the asset objects according to the container resource processing operation information.
[0092] S530: The portal system updates the asset object so that the mapping relationship between the container resource and the asset object is synchronized to the portal system associated with the container resource processing operation information.
[0093] Specifically, the portal system updates the asset object, and the cluster management information interaction system synchronizes the mapping relationship between the container resources and the asset object to the portal system associated with the container resource processing operation information, so that the portal system updates the asset object according to the mapping relationship between the container resources and the asset object.
[0094] S540: When the cluster management information interaction system obtains the update success information sent by the corresponding portal system, the cluster management information interaction system updates the relevant asset and resource mapping relationship in the mapping relationship table.
[0095] Specifically, the cluster management information interaction system sends the updated asset-resource mapping relationship as update feedback information of the asset processing operation to the cluster management system, and generates corresponding asset object update feedback information at the same time. The feedback information can be update success information or update failure information. When the asset object update feedback information of the corresponding portal system is update failure information, the cluster management information interaction system cancels the pre-update result of the mapping relationship between the container resource and the asset object; when the asset object update feedback information is update failure information, feedback information about the failure of the asset processing operation update is sent to the cluster management system. The cluster management information interaction system cancels the update of the mapping relationship between the container resource and the asset object according to the pre-update result of the mapping relationship between the container resource and the asset object, so that the mapping relationship between the container resource and the asset object is restored to the mapping relationship before the pre-update.
[0096] S550: The cluster management information interaction system collects statistics on the asset object and resource object mapping usage records of each portal system in a preset time dimension, and sends the statistical results to the corresponding portal system.
[0097] The cluster management information interaction system needs to collect statistics on the asset object and resource object mapping usage records of each portal system in the dimensions of day, week, month, quarter or year, and send the statistical results to the corresponding portal system.
[0098] The technical solution of this embodiment is to perform an operation feasibility check on the resource objects associated with the asset processing operation information when the asset processing operation information is obtained from any portal system end; when the operation feasibility check passes, send the resource processing operation instruction corresponding to the asset processing operation information to the target cluster management system end, so that the target cluster management system end performs the corresponding processing operation on the resource object; according to the resource object processing operation feedback information of the target cluster management system end, send the operation feedback information of the asset processing operation to any portal system end, so as to realize the cluster management information interaction process; when the container resource processing operation information of any cluster management system end is obtained, the container resource processing operation information is processed. The asset object associated with the information is checked for asset processing feasibility; when the asset processing feasibility check is passed, the mapping relationship between the corresponding container resource and the asset object is pre-updated according to the container resource processing operation information; the mapping relationship between the container resource and the asset object is synchronized to the target portal system end associated with the container resource processing operation, so that the target portal system end updates the asset object; when the asset object update feedback information is update success information, the mapping relationship between the container resource and the asset object is updated according to the pre-updated result of the mapping relationship between the container resource and the asset object; with a preset time dimension, the asset object and resource object mapping usage records of each portal system are counted, and the statistical results are sent to the corresponding portal system. The technical solution of this embodiment adds the statistics of container resource processing operations and asset object and resource object mapping usage records, solves the problem of incompatibility and low flexibility of information interaction between the existing cluster management information interaction portal system and the cluster management system, and can interact with the portal system without the need to reconstruct multiple cluster management systems, reducing the complexity of cluster management information interaction, and can systematically, clearly and intuitively reflect the asset object and resource object mapping usage records, improve the flexibility and development efficiency of cluster management information interaction, thereby reducing the cost of cloud management platform access.
[0099] Figure 5 This is a structural block diagram of a cluster management information interaction device provided by an embodiment of the present invention. This embodiment is applicable to cluster management information interaction scenarios of cloud platforms. The device can be implemented in the form of hardware and / or software and integrated into an electronic device with application development functions.
[0100] like Figure 5 As shown, the cluster management information interaction device includes: an operation verification module 601, an operation instruction information processing module 602 and an operation feedback information processing module 603.
[0101] Among them, the operation verification module 601 is used to perform operation feasibility verification on the resource objects associated with the asset processing operation information when the asset processing operation information of any portal system end is obtained; the operation instruction information processing module 602 is used to send the resource processing operation instruction corresponding to the asset processing operation information to the target cluster management system end when the operation feasibility verification passes, so that the target cluster management system end performs corresponding processing operations on the resource objects; the operation feedback information processing module 603 is used to send the operation feedback information of the asset processing operation to any portal system end according to the resource object processing operation feedback information of the target cluster management system end, so as to realize the cluster management information interaction process.
[0102] The technical solution of this embodiment, through the mutual cooperation between various modules, when the asset processing operation information of any portal system end is obtained, the resource object associated with the asset processing operation information is checked for feasibility of operation; when the feasibility of operation is checked, the resource processing operation instruction corresponding to the asset processing operation information is sent to the target cluster management system end, so that the target cluster management system end performs corresponding processing operations on the resource object; according to the resource object processing operation feedback information of the target cluster management system end, the operation feedback information of the asset processing operation is sent to any portal system end to realize the cluster management information interaction process. The problem of incompatibility and low flexibility of information interaction between the existing cluster management information interaction portal system and the cluster management system is solved, and interaction with the portal system can be realized without the reconstruction of multiple cluster management systems, which reduces the complexity of cluster management information interaction, improves the flexibility and development efficiency of cluster management information interaction, and thus reduces the cost of cloud management platform access.
[0103] Optionally, the operation verification module 601 is further used for:
[0104] Determine whether the resource object exists according to the preset asset and resource mapping relationship table;
[0105] When the resource object exists, the operation feasibility check passes;
[0106] When the resource object does not exist, it is determined whether the resource object can be created on the target cluster management system side. If so, the operation feasibility check passes.
[0107] Optionally, the operation verification module 601 is further used for:
[0108] When the resource object processing operation feedback information is operation success information, the related asset and resource mapping relationship in the mapping relationship table is updated;
[0109] The related asset and resource mapping relationship is sent to any portal system end as operation feedback information of the asset processing operation, so that any portal system end updates the operation result of the asset processing operation.
[0110] Optionally, the operation verification module 601 is further configured to: when obtaining operation result update failure information sent by any portal system end, send the operation result update failure information to the target cluster management system end.
[0111] Optionally, the device further includes a processing and verification module, which is used to:
[0112] When the container resource processing operation information of any cluster management system is obtained, the asset processing feasibility check is performed on the asset object associated with the container resource processing operation information;
[0113] When the asset processing feasibility check passes, the mapping relationship between the corresponding container resources and asset objects is pre-updated according to the container resource processing operation;
[0114] Synchronize the mapping relationship between the container resource and the asset object to the target portal system end associated with the container resource processing operation, so that the target portal system end updates the asset object;
[0115] According to the asset object update feedback information sent by the target portal system, the mapping relationship between the container resources and the asset objects is updated.
[0116] Optionally, the processing verification module is also used to:
[0117] When the asset object update feedback information is update success information, updating the mapping relationship between the container resource and the asset object according to the pre-update result of the mapping relationship between the container resource and the asset object;
[0118] When the asset object update feedback information is update failure information, the pre-update result of the mapping relationship between the container resource and the asset object is canceled.
[0119] Optionally, the device further comprises a mapping statistics module, which is used to: count the asset object and resource object mapping usage records of each portal system in a preset time dimension, and send the statistical results to the corresponding portal system.
[0120] The cluster management information interaction device provided in the embodiment of the present invention can execute the cluster management information interaction method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0121] Figure 61 is a block diagram of an electronic device provided by an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, or other suitable computers. The electronic device 10 may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.), or other similar computing devices. The components shown herein, their connections, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0122] like Figure 6 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. The input / output (I / O) interface 15 is also connected to the bus 14.
[0123] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard or a mouse, etc.; an output unit 17, such as various types of displays or speakers, etc.; a storage unit 18, such as a disk or an optical disk, etc.; and a communication unit 19, such as a network card, a modem, or a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0124] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), any appropriate processor, controller or microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the cluster management information interaction method.
[0125] In some embodiments, the cluster management information interaction method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the cluster management information interaction method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the cluster management information interaction method in any other appropriate manner (e.g., by means of firmware).
[0126] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0127] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine or partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0128] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or apparatus. A computer-readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media may include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0129] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device 10 having: a display device (e.g., a CRT (Cathode Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device 10. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0130] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0131] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0132] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0133] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A cluster management information interaction method, characterized in that: include: When asset processing operation information is obtained from any portal system, the feasibility of the operation is checked for the resource objects associated with the asset processing operation information; When the operation feasibility check passes, sending a resource processing operation instruction corresponding to the asset processing operation to the target cluster management system end, so that the target cluster management system end performs a corresponding processing operation on the resource object; According to the resource object processing operation feedback information of the target cluster management system end, the operation feedback information of the asset processing operation is sent to any portal system end to realize the cluster management information interaction process; The sending the operation feedback information of the asset processing operation to any portal system end according to the resource object processing operation feedback information of the target cluster management system end includes: When the resource object processing operation feedback information is operation success information, updating the relevant asset and resource mapping relationship in the mapping relationship table; Sending the related asset-resource mapping relationship in the updated mapping relationship table as operation feedback information of the asset processing operation to any portal system end, so that any portal system end updates the operation result of the asset processing operation; When the update failure information of the operation result sent by any portal system is obtained, the update failure information of the operation result is sent to the target cluster management system to cancel the related asset and resource mapping relationship in the updated mapping relationship table.
2. The method according to claim 1, characterized in that The performing of an operation feasibility check on the resource object associated with the asset processing operation includes: When the asset processing operation is to create an asset, determining whether the resource object exists according to a preset asset-resource mapping relationship table; When the resource object exists, the operation feasibility check fails; When the resource object does not exist, it is determined whether the resource object can be created on the target cluster management system side, and if so, the operation feasibility check passes.
3. The method according to any one of claims 1-2, characterized in that: The method further comprises: When container resource processing operation information is obtained from any cluster management system, asset processing feasibility verification is performed on the asset object associated with the container resource processing operation information; When the asset processing feasibility check passes, pre-update the mapping relationship between the corresponding container resource and the asset object according to the container resource processing operation information; Synchronizing the mapping relationship between the container resource and the asset object to a target portal system end associated with the container resource processing operation information, so that the target portal system end updates the asset object; According to the asset object update feedback information sent by the target portal system, the mapping relationship between the container resource and the asset object is updated.
4. The method according to claim 3, characterized in that The updating of the mapping relationship between the container resource and the asset object according to the asset object update feedback information sent by the target portal system end includes: When the asset object update feedback information is update success information, updating the mapping relationship between the container resource and the asset object according to the pre-update result of the mapping relationship between the container resource and the asset object; When the asset object update feedback information is update failure information, the pre-update result of the mapping relationship between the container resource and the asset object is cancelled.
5. The method according to claim 1, characterized in that The method further comprises: The asset object and resource object mapping usage records of each portal system are counted based on the preset time dimension, and the statistical results are sent to the corresponding portal system.
6. A cluster management information interaction device, characterized in that: include: An operation verification module is used to verify the feasibility of the operation of the resource object associated with the asset processing operation information when the asset processing operation information of any portal system end is obtained; An operation instruction information processing module, used for sending a resource processing operation instruction corresponding to the asset processing operation information to a target cluster management system end when the operation feasibility check passes, so that the target cluster management system end performs a corresponding processing operation on the resource object; An operation feedback information processing module, used to process the operation feedback information according to the resource object of the target cluster management system end, send the operation feedback information of the asset processing operation to any portal system end, and realize the cluster management information interaction process; The operation verification module is further used for: When the resource object processing operation feedback information is operation success information, updating the relevant asset and resource mapping relationship in the mapping relationship table; Sending the related asset-resource mapping relationship in the updated mapping relationship table as operation feedback information of the asset processing operation to any portal system end, so that any portal system end updates the operation result of the asset processing operation; When the update failure information of the operation result sent by any portal system is obtained, the update failure information of the operation result is sent to the target cluster management system to cancel the related asset and resource mapping relationship in the updated mapping relationship table.
7. An electronic device, characterized in that: The electronic device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the cluster management information interaction method as described in any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the cluster management information interaction method as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Virtual network mapping system and method based on SDN
CN108923958A
Dynamic management of computing platform resources
US20160277310A1