CN115913954A - Cluster management information interaction method, device, equipment and storage medium - Google Patents

Cluster management information interaction method, device, equipment and storage medium Download PDF

Info

Publication number
CN115913954A
CN115913954A CN202211709864.1A CN202211709864A CN115913954A CN 115913954 A CN115913954 A CN 115913954A CN 202211709864 A CN202211709864 A CN 202211709864A CN 115913954 A CN115913954 A CN 115913954A
Authority
CN
China
Prior art keywords
asset
cluster management
processing operation
resource
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
CN202211709864.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.)
Shanghai Pudong Development Bank Co Ltd
Original Assignee
Shanghai Pudong Development Bank 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 Shanghai Pudong Development Bank Co Ltd filed Critical Shanghai Pudong Development Bank Co Ltd
Priority to CN202211709864.1A priority Critical patent/CN115913954A/en
Publication of CN115913954A publication Critical patent/CN115913954A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a cluster management information interaction method, a device, equipment and a storage medium. The method comprises the following steps: when asset processing operation information of any portal system end is acquired, operation feasibility verification is carried out on a resource object associated with the asset processing operation information; when the operation feasibility verification is passed, 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 corresponding processing operation on the resource object; and processing operation feedback information according to the resource object of the target cluster management system end, and sending the operation feedback information of the asset processing operation to any portal system end to realize the interaction process of the cluster management information. The technical scheme of the embodiment solves the problems of incompatibility and low flexibility of information interaction between the portal system and the cluster management system, reduces the complexity of cluster management information interaction, and improves the flexibility and the development efficiency of cluster management information interaction.

Description

Cluster management information interaction method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of cloud services, in particular to a cluster management information interaction method, a device, equipment and a storage medium.
Background
The Kubernetes multi-cluster management platform is a container cloud product management system and is provided with an independent user system, independent asset management and quota management and an independent charging system. Because the Kubernetes multi-cluster management system and the management object-container cloud management platform thereof cannot be directly compatible, the problem of information docking between the Kubernetes multi-cluster management system and the management object-container cloud management platform needs to be considered.
In the prior art, the compatibility of the connection with the cloud management platform is mostly realized by reconstructing the Kubernetes multi-cluster management system, but the scheme has the advantages of large system transformation amount, complex access and low efficiency, and the access cost of the cloud management platform is increased.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for cluster management information interaction, which reduce the complexity of cluster management information interaction and improve the flexibility and development efficiency of cluster management information interaction.
According to an aspect of the present invention, a cluster management information interaction method is provided, where the method includes:
when asset processing operation information of any portal system end is acquired, operation feasibility verification is carried out on a resource object associated with the asset processing operation information;
when the operation feasibility verification is passed, sending a 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 corresponding processing operation on the resource object;
and processing operation feedback information according to the resource object of the target cluster management system end, and sending the operation feedback information of the asset processing operation to any portal system end to realize the interaction process of the cluster management information.
According to another aspect of the present invention, there is provided a cluster management information interaction apparatus, applied to a resource management server, the apparatus including:
the operation checking module is used for carrying out operation feasibility checking on the resource object 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 is used for sending a resource processing operation instruction corresponding to the asset processing operation information to the target cluster management system end when the operation feasibility verification is passed so as to enable the target cluster management system end to perform corresponding processing operation on the resource object;
and the operation feedback information processing module is used for processing operation feedback information according to the resource object of the target cluster management system end and sending the operation feedback information of the asset processing operation to any portal system end so as to realize the interaction process of the cluster management information.
According to another aspect of the present invention, there is provided a server apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the cluster management information interaction method of any of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the cluster management information interaction method according to any one of the embodiments of the present invention when executed.
According to the technical scheme of the embodiment of the invention, when the asset processing operation information of any portal system end is acquired, operation feasibility verification is carried out on the resource object associated with the asset processing operation information; when the operation feasibility verification is passed, sending a 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 corresponding processing operation on the resource object; and processing operation feedback information according to the resource object of the target cluster management system end, and sending the operation feedback information of the asset processing operation to any portal system end to realize the interaction process of the cluster management information. The problem that information interaction between an existing cluster management information interaction portal system and a cluster management system is incompatible and low in flexibility is solved, interaction can be achieved between the existing cluster management information interaction portal system and the cluster management system without reconfiguration of a plurality of cluster management systems, complexity of cluster management information interaction is reduced, flexibility of cluster management information interaction and development efficiency are improved, and accordingly cost of cloud management platform access is reduced.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a cluster management information interaction method according to an embodiment of the present invention;
fig. 2 is a flowchart of another cluster management information interaction method according to an embodiment of the present invention;
fig. 3 is a flowchart of another cluster management information interaction method provided by an embodiment of the present invention;
fig. 4 is a flowchart of a specific cluster management information interaction method according to an embodiment of the present invention;
fig. 5 is a block diagram of a cluster management information interaction apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. 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 invention.
It should be noted that the terms "object" and "any" and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in other sequences than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a flowchart of a cluster management information interaction method provided in an embodiment of the present invention, which is applicable to a cluster management information interaction scenario of a cloud platform in this embodiment. The method can be executed by a cluster management information interaction device, which can be implemented by software and/or hardware, and is integrated in an electronic device with an application development function.
As shown in fig. 1, the cluster management information interaction method includes the following steps:
s110, when the asset processing operation information of any portal system end is acquired, operation feasibility verification is carried out on the resource object related to the asset processing operation information.
The portal system end is a cloud portal system end accessed to the cloud platform, and a user can process the portal system assets through a human-computer interaction interface of the portal system end, such as adding, deleting or updating operation. The assets include SaaS (Software-as-a-Service) resources, computing resources of the system, network configuration resources, and the like.
Wherein the asset processing operation information is generated in response to an asset processing operation of the user, such as an add, delete or update operation.
The resource object is a resource object which has a mapping relation with the asset object in the asset processing operation in the multi-cluster management system, and can be a container resource object in the multi-cluster management system. When a user processes a corresponding asset object at a portal system end, the corresponding container resource object mapped to the multi-cluster management system is synchronously processed, so that the consistency between the portal system and the corresponding multi-cluster management system is maintained.
Further, the operational feasibility verification objective is to determine the feasibility of a processing operation on an asset. The feasibility check of the operation may be specifically performed by determining whether the relevant processing operation may be performed on the associated resource object. For example, it is determined whether the associated resource object exists and whether the specific operation content of the asset processing operation matches the presence status of the associated resource object. Illustratively, when the asset processing operation is to create an asset, it is determined whether a corresponding resource object exists, and if the corresponding resource object exists, the creation is not needed, and the operation feasibility check fails; and if the corresponding resource object does not exist and the corresponding resource object can be established in the multi-cluster management system, the operation feasibility verification is passed.
And S120, when the operation feasibility verification is passed, sending a 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 corresponding processing operation on the resource object.
The target cluster management system end is a cluster management system end corresponding to the resource object associated with the asset processing operation information, and may be, for example, a cluster management platform based on kubernets (K8 s), elasticsearch, swarm, or the like.
The cluster management information interaction device can be simultaneously connected with a plurality of cluster management systems in an expansion mode, and can comprise multi-cluster management systems with different service levels and multi-cluster management systems with different service objects. The target cluster management system end can be determined according to the identification information of the multi-cluster management system carried in the asset processing operation information.
The resource processing operation instruction is consistent with the asset processing operation, for example, the asset processing operation is to delete a certain asset object, and the corresponding resource processing operation instruction in the cluster management system may be to delete a container resource object having a mapping relationship with a certain asset object, so that the target cluster management system end performs a corresponding processing operation on the resource object.
Specifically, the resource processing operation instruction is used to implement a corresponding processing operation on the corresponding resource object. And when the operation feasibility verification is passed, sending a resource processing operation instruction corresponding to the asset processing operation information 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 corresponding processing operation on the resource object.
S130, processing operation feedback information according to the resource object of the target cluster management system end, and sending operation feedback information of asset processing operation to any portal system end to realize a cluster management information interaction process.
The feedback information is used to describe a state of the target cluster management system executing the processing operation on the resource object according to the resource processing operation instruction, and may be feedback information of successful processing operation or feedback information of failed processing operation.
It can be understood that the resource object processing operation of the target cluster management system end may be successful or may fail, and may generate corresponding feedback information of success/failure of the resource processing operation according to the resource object processing operation of the target cluster management system end, and send the feedback information about success/failure of the resource processing operation to the corresponding portal system end, so that the states of the management objects corresponding to the portal system and the corresponding target cluster management system are kept consistent so far, thereby implementing the cluster management information interaction process.
According to the technical scheme of the embodiment, when asset processing operation information of any portal system end is acquired, operation feasibility verification is carried out on a resource object associated with the asset processing operation information; when the operation feasibility verification is passed, sending a 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 corresponding processing operation on the resource object; and processing operation feedback information according to the resource object of the target cluster management system end, and sending the operation feedback information of the asset processing operation to any portal system end to realize the interaction process of the cluster management information. The problem that information interaction between an existing cluster management information interaction portal system and a cluster management system is incompatible and low in flexibility is solved, interaction can be achieved between the existing cluster management information interaction portal system and the cluster management system without reconfiguration of a plurality of cluster management systems, complexity of cluster management information interaction is reduced, flexibility of cluster management information interaction and development efficiency are improved, and accordingly cost of cloud management platform access is reduced.
Fig. 2 is a flowchart of another cluster management information interaction method provided in the embodiment of the present invention, and the cluster management information interaction method in the embodiment and the above embodiment belong to the same inventive concept. The embodiment is applicable to a cluster management information interaction scene of a cloud platform, and particularly, the embodiment is applicable to a cluster management information interaction scene of a 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 is integrated in an electronic device with an application development function.
As shown in fig. 2, the method comprises the steps of:
s210, when the asset processing operation information of any portal system end is acquired, whether a resource object exists or not is determined according to a preset asset and resource mapping relation table, and operation feasibility verification is carried out.
Specifically, a mapping relationship between the assets of the portal system end and the resource objects of the multi-cluster management system end is preset, for example, the mapping relationship may be a mapping relationship between the assets in the asset processing operation and the container resource objects in the multi-cluster management system, and a mapping relationship table of the corresponding assets and resource objects is generated.
When the asset processing operation information of any portal system end is acquired, whether a resource object corresponding to the asset processing operation information exists is determined according to a preset mapping relation table of assets and resource objects, and operation feasibility verification is achieved according to a determination result and operation contents of asset processing operation. Illustratively, when the asset processing operation is to create an asset, whether a corresponding resource object exists is judged, if the corresponding resource object exists, the creation is not needed, and the operation feasibility check is not passed; and if the corresponding resource object does not exist and the corresponding resource object can be established in the multi-cluster management system, the operation feasibility verification is passed.
And S220, when the operation feasibility verification is passed, sending a 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 corresponding processing operation on the resource object.
And S230, when the resource object processing operation feedback information is operation success information, updating the mapping relation between the related assets and the resources in the mapping relation table.
And when the resource object processing operation feedback information is operation success information, updating according to the mapping relation table of the assets and the resource objects corresponding to the asset processing operation information, and generating the corresponding feedback information of the successful asset processing operation.
S240, sending the mapping relation of the related assets and resources to any portal system terminal as operation feedback information of the asset processing operation so that the portal system terminal can update the operation result of the asset processing operation.
And sending the mapping relation between the related asset object and the resource object in the updated mapping relation table as operation feedback information of the asset processing operation to the corresponding portal system end so that the corresponding portal system end updates the operation result of the asset processing operation according to the mapping relation between the related asset object and the resource object in the updated mapping relation table.
Further, the method comprises the following steps:
and S250, when the update failure information of the operation result sent by any portal system end is obtained, sending the update failure information of the operation result to a target cluster management system end.
It can be understood that, when the update failure information corresponding to the operation result sent by the portal system side is received, the update failure information corresponding to the operation result needs to be sent to the target cluster management system side, the mapping relationship between the asset object and the resource object in the updated mapping relationship table is restored to the non-updated mapping relationship table, the operation is ended, and the cluster management information interaction process is achieved.
According to the technical scheme of the embodiment, when asset processing operation information of any portal system end is acquired, whether a resource object exists or not is determined according to a preset asset and resource mapping relation table, and operation feasibility verification is carried out; when the operation feasibility verification is passed, 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 corresponding processing operation on the resource object; when the resource object processing operation feedback information is operation success information, updating the mapping relation between the related assets and the resources in the mapping relation table; sending the mapping relation of the related assets and resources to any portal system end as operation feedback information of asset processing operation so that the portal system end updates the operation result of the asset processing operation; and when the update failure information of the operation result sent by any one portal system end is acquired, sending the update failure information of the operation result to a target cluster management system end. According to the technical scheme, feedback information about resource object processing operation is added, the problems that information interaction between an existing cluster management information interaction portal system and a cluster management system is incompatible and low in flexibility are solved, interaction can be achieved between the portal system without reconfiguration of a multi-cluster management system, the complexity of cluster management information interaction is reduced, the flexibility and the development efficiency of cluster management information interaction are further improved, and therefore the cost of cloud management platform access is reduced.
Fig. 3 is a flowchart of another cluster management information interaction method provided in an embodiment of the present invention, where the cluster management information interaction method in this embodiment and the cluster management information interaction method in the foregoing embodiment belong to the same inventive concept. The embodiment is applicable to a cluster management information interaction scene of a cloud platform, and particularly, the embodiment is applicable to an information interaction scene of a 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 is integrated in an electronic device with an application development function.
As shown in fig. 3, the method for interacting cluster management information includes the following steps:
s310, when the asset processing operation information of any portal system end is acquired, operation feasibility verification is carried out on the resource object related to the asset processing operation information.
And S320, when the operation feasibility verification is passed, sending a 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 corresponding processing operation on the resource object.
S330, processing operation feedback information according to the resource object of the target cluster management system end, and sending operation feedback information of asset processing operation to any portal system end to realize a cluster management information interaction process.
Furthermore, the portal system and the multi-cluster management system have a certain time of parallel period, and when the manager of the multi-cluster management system performs processing operation on the container resources in the system, the asset objects in the corresponding portal system need to be updated synchronously.
And S340, when the container resource processing operation information of any cluster management system end is acquired, asset processing feasibility verification is carried out on the asset object related to the container resource processing operation information.
A container is a process running in the isolated environment, and if the process stops, the container will be destroyed and the corresponding asset objects in the portal system will also need to be processed. Specifically, when the container resource processing operation information of any cluster management system is acquired, according to a preset mapping relationship between an asset object and a container resource, for example, an intelligent contract on two networks (such as a TRON and a BTTC) may be used to perform one-to-one correspondence between the asset object and the container resource, so as to facilitate container resource processing operations such as locking, destroying, and transferring, determine whether an asset object having a mapping relationship with the container resource exists in the container resource to be processed, and determine a result of the asset processing feasibility check according to a specific content of the operation and a result of whether an associated asset object exists.
And S350, when the asset processing feasibility verification passes, pre-updating the mapping relation between the corresponding container resource and the asset object according to the container resource processing operation information.
And when the asset processing feasibility verification passes, performing corresponding pre-updating on the mapping relation according to the mapping relation between the container resource corresponding to the container resource processing operation information and the asset object. The pre-updating means that the updated mapping relation is cached, the updated mapping relation is not written into the corresponding mapping relation table, and the mapping relation updating result is finally determined after the mapping relation updating result is determined in the corresponding portal system, so that the situation that only one side of the cluster management system end completes the updating of the mapping relation is avoided.
And S360, synchronizing the mapping relation between the container resources and the asset objects to a target portal system end associated with the container resource processing operation information so that the target portal system end updates the asset objects.
Specifically, after the mapping relationship between the container resource and the asset object is pre-updated, the pre-updated content is sent to the target portal system, and the portal system is informed to update the mapping relationship between the corresponding resource object and the asset object.
And S370, when the asset object updating feedback information sent by the target portal system end is updating success information, updating the mapping relation between the container resource and the asset object according to the pre-updating result of the mapping relation between the container resource and the asset object.
And when the asset object updating feedback information sent by the target portal system end is successful updating information, sending feedback information about successful updating of the asset processing operation to the target cluster management system end, and finishing updating of the mapping relation between the container resource and the asset object according to the pre-updating result of the mapping relation between the container resource and the asset object.
It can be understood that, when the asset object update feedback information sent by the target portal system side is update failure information, the cluster management information interaction device sends feedback information about the update failure of the asset processing operation to the target cluster management system side, so as to cancel the update of the mapping relationship between the container resource and the asset object in the cache.
Furthermore, it is understood that S340 and S310, S320 and S330 do not have a temporal execution sequence, and when the portal system or the cluster management system is operated by the processing of the corresponding asset object or resource object, respectively, the corresponding information interaction process is triggered.
Further, the method further comprises:
and S380, counting the asset object and resource object mapping use records of each portal system according to a preset time dimension, and sending the counting result to the corresponding portal system.
The preset time dimension may be a day, week, month, quarter or year dimension.
It can be understood that the asset object and resource object mapping usage records of each portal system need to be counted for the time dimension of day, week, month, quarter or year, and the statistical results are sent to the corresponding portal systems. The method has the advantages that the resource objects and the asset objects are convenient to manage, the mapping use records of the asset objects and the resource objects can be systematically, clearly and intuitively reflected, and the method is used for realizing functions of cloud service charging and the like.
Fig. 4 is a flowchart of a specific cluster management information interaction method provided in an embodiment of the present invention, and as shown in fig. 4, the cluster management information interaction method includes the following steps:
s410, when the portal system terminal initiates asset processing operation and generates asset processing operation information, the cluster management information interaction system terminal determines whether a resource object exists according to a preset asset and resource mapping relation table, and operation feasibility verification is carried out on the resource object related to the asset processing operation.
The cluster management information interaction system end can be used as a uniform interface between the portal system ends of the plurality of cloud platforms and the cluster management system end, and can be understood as a front-end system of the cluster management system for data transmission and conversion.
Specifically, when any portal system terminal sends out an asset processing operation, the portal system terminal generates asset processing operation information and determines whether a resource object exists according to a preset asset and resource mapping relation table, and operation feasibility verification is performed on the resource object associated with the asset processing operation; 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 is passed, and the operation proceeds to S420.
And S420, the cluster management information interaction system end sends a resource processing operation instruction corresponding to the asset processing operation information to the cluster management system end, so that the cluster management system end performs corresponding processing operation on the resource object, and updates the mapping relation between the related asset and the resource in the mapping relation table.
And S430, the cluster management information interaction system terminal sends the related asset and resource mapping relation serving as operation feedback information of asset processing operation to the corresponding portal system terminal so that the corresponding portal system terminal updates the operation result of the asset processing operation.
And S440, when the cluster management information interaction system end acquires the operation result updating success information sent by the corresponding portal system end, the cluster management information interaction system end updates the mapping relation between the related assets and resources in the mapping relation table.
Specifically, the cluster management information interaction system sends the updated asset and resource mapping relationship to the corresponding portal system as operation feedback information of asset processing operation, and generates corresponding operation feedback information at the same time, where the feedback information may be operation result update success information or operation result update failure information. And when the operation result updating success information sent by the corresponding portal system end is acquired, the cluster management information interaction system end updates the mapping relation between the related assets and resources in the mapping relation table.
It can be understood that, when the cluster management information interaction system end obtains the operation result update failure information sent by the corresponding portal system end, the operation result update failure information is sent to the cluster management system end through the cluster management information interaction system end, and the mapping relation between the assets and the resources related in the updated mapping relation table is cancelled.
Furthermore, the portal system and the multi-cluster management system have a certain time of parallel period, and when the manager of the multi-cluster management system performs processing operation on the container resource in the system, the corresponding asset object in the portal system is also updated synchronously, and the method further comprises the following steps:
and S510, when the cluster management information interaction system terminal acquires the container resource processing operation information of any cluster management system terminal, the cluster management information interaction system terminal performs asset processing feasibility verification on the asset object associated with the container resource processing operation information.
Specifically, when a cluster management information interaction system side acquires container resource processing operation information of any cluster management system side, the cluster management information interaction system side determines whether an asset object exists according to a preset asset and resource mapping relation table, and performs asset processing feasibility verification, exemplarily, when the resource processing operation is to create one resource, whether a corresponding asset object exists is judged, if the corresponding asset object exists, creation is not needed, the operation feasibility verification fails, and the current operation is ended; if no corresponding asset object exists and a corresponding asset object can be created at the portal system end, the operation feasibility verification is passed and the process enters S520.
And S520, when the asset processing feasibility verification is passed, the cluster management information interaction system end pre-updates the mapping relation between the corresponding container resource and the asset object according to the container resource processing operation information.
And S530, the portal system side updates the asset object so as to synchronize the mapping relation between the container resource and the asset object to the portal system side associated with the container resource processing operation information.
Specifically, the portal system side updates the asset object, and the cluster management information interaction system side synchronizes the mapping relationship between the container resource and the asset object to the portal system side associated with the container resource processing operation information, so that the portal system side updates the asset object according to the mapping relationship between the container resource and the asset object.
And S540, when the cluster management information interaction system end acquires the updating success information sent by the corresponding portal system end, the cluster management information interaction system end updates the mapping relation between the related assets and resources in the mapping relation table.
Specifically, the cluster management information interaction system sends the updated asset and resource mapping relationship to the cluster management system as update feedback information of asset processing operation, and generates corresponding asset object update feedback information, where the feedback information may be update success information or update failure information. When the asset object updating feedback information corresponding to the portal system end is updating failure information, the cluster management information interaction system end cancels the pre-updating result of the mapping relation between the container resource and the asset object; when the asset object update feedback information is update failure information, sending feedback information about the update failure of the asset processing operation to the cluster management system end, and canceling the update of the mapping relation between the container resource and the asset object by the cluster management information interaction system end according to the pre-update result of the mapping relation between the container resource and the asset object, so that the mapping relation between the container resource and the asset object is restored to the mapping relation before the pre-update.
And S550, the cluster management information interaction system side counts the asset object and resource object mapping use records of each portal system in a preset time dimension, and sends the counting result to the corresponding portal system.
The cluster management information interaction system end needs to count the mapping use records of the asset objects and the resource objects of each portal system in the dimensions of day, week, month, quarter or year, and send the counting results to the corresponding portal systems.
According to the technical scheme, when asset processing operation information of any portal system end is acquired, operation feasibility verification is carried out on a resource object associated with the asset processing operation information; when the operation feasibility verification is passed, sending a 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 corresponding processing operation on the resource object; processing operation feedback information according to the resource object of the target cluster management system end, and sending operation feedback information of asset processing operation to any portal system end to realize a cluster management information interaction process; when container resource processing operation information of any cluster management system end is acquired, asset processing feasibility verification is carried out on an asset object associated with the container resource processing operation information; when the asset processing feasibility verification passes, pre-updating the mapping relation between the corresponding container resource and the asset object according to the container resource processing operation information; synchronizing the mapping relation between the container resource and the asset object to a 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 updating feedback information is updating success information, updating the mapping relation between the container resource and the asset object according to the pre-updating result of the mapping relation between the container resource and the asset object; and counting the mapping use records of the asset objects and the resource objects of each portal system according to a preset time dimension, and sending the counting result to the corresponding portal system. According to the technical scheme, container resource processing operation and statistics of mapping use records of asset objects and resource objects are added, the problems that information interaction between an existing cluster management information interaction portal system and a cluster management system is incompatible and low in flexibility are solved, interaction between the portal system and the cluster management system can be achieved without reconstructing a multi-cluster management system, the complexity of cluster management information interaction is reduced, the mapping use records of the asset objects and the resource objects can be reflected systematically, clearly and visually, the flexibility of the cluster management information interaction and the development efficiency are improved, and therefore the access cost of a cloud management platform is reduced.
Fig. 5 is a block diagram of a cluster management information interaction device according to an embodiment of the present invention, where the embodiment is applicable to a cluster management information interaction scenario of a cloud platform. The device can be realized in the form of hardware and/or software and is integrated in the electronic equipment with the application development function.
As shown in fig. 5, the cluster management information interacting device includes: an operation checking module 601, an operation instruction information processing module 602, and an operation feedback information processing module 603.
The operation checking module 601 is configured to, when asset processing operation information of any portal system end is acquired, perform operation feasibility checking on a resource object associated with the asset processing operation information; an operation instruction information processing module 602, configured 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 operation on the resource object; the operation feedback information processing module 603 is configured to process the operation feedback information according to the resource object of the target cluster management system end, and send the operation feedback information of the asset processing operation to any portal system end, so as to implement a cluster management information interaction process.
According to the technical scheme of the embodiment, through mutual cooperation of all modules, when asset processing operation information of any portal system end is acquired, operation feasibility verification is carried out on a resource object associated with the asset processing operation information; when the operation feasibility verification is passed, sending a 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 corresponding processing operation on the resource object; and processing operation feedback information according to the resource object of the target cluster management system end, and sending the operation feedback information of the asset processing operation to any portal system end to realize the interaction process of the cluster management information. The problem that information interaction between an existing cluster management information interaction portal system and a cluster management system is incompatible and low in flexibility is solved, interaction can be achieved between the existing cluster management information interaction portal system and the cluster management system without reconfiguration of a plurality of cluster management systems, complexity of cluster management information interaction is reduced, flexibility of cluster management information interaction and development efficiency are improved, and accordingly cost of cloud management platform access is reduced.
Optionally, the operation checking module 601 is further configured to:
determining whether a resource object exists according to a preset asset and resource mapping relation table;
when the resource object exists, the operation feasibility verification is passed;
and when the resource object does not exist, determining whether the resource object can be created at the target cluster management system end, and if so, passing the operation feasibility verification.
Optionally, the operation checking module 601 is further configured to:
when the resource object processing operation feedback information is operation success information, updating the mapping relation between the related assets and the resources in the mapping relation table;
and sending the mapping relation of the related assets and resources to any portal system end as operation feedback information of the asset processing operation so that the portal system end updates the operation result of the asset processing operation.
Optionally, the operation checking module 601 is further configured to: and when the operation result update failure information sent by any portal system end is acquired, sending the operation result update failure information to the target cluster management system end.
Optionally, the apparatus further includes a processing and checking module, where the processing and checking module is configured to:
when container resource processing operation information of any cluster management system end is acquired, asset processing feasibility verification is carried out on an asset object associated with the container resource processing operation information;
when the asset processing feasibility verification passes, pre-updating the mapping relation between the corresponding container resource and the asset object according to the container resource processing operation;
synchronizing the mapping relation between the container resource and the asset object to a target portal system end associated with the container resource processing operation so that the target portal system end updates the asset object;
and updating the mapping relation between the container resource and the asset object according to the asset object updating feedback information sent by the target portal system terminal.
Optionally, the processing and checking module is further configured to:
when the asset object updating feedback information is updating success information, updating the mapping relation between the container resource and the asset object according to the pre-updating result of the mapping relation between the container resource and the asset object;
and when the asset object updating feedback information is updating failure information, canceling the pre-updating result of the mapping relation between the container resource and the asset object.
Optionally, the apparatus further includes a mapping statistics module, where the mapping statistics module is configured to: and counting the mapping use records of the asset objects and the resource objects of each portal system according to a preset time dimension, and sending the counting result to the corresponding portal system.
The cluster management information interaction device provided by the embodiment of the invention can execute the cluster management information interaction method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 6 is a block diagram of an electronic device according to an embodiment of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, or other appropriate computers. The electronic device 10 may also represent various forms of mobile devices, such as a personal digital assistant, a cellular telephone, a smart phone, a wearable device (e.g., a helmet, glasses, watch, etc.), or other similar computing device. The components shown herein, their connections, and their functions are exemplary only, and are not intended to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 6, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 may also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
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; an output unit 17 such as various types of displays or speakers; a storage unit 18 such as a magnetic disk or an optical disk; and a communication unit 19 such as a network card, modem, or wireless communication transceiver. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), any suitable processor, controller or microcontroller, and so forth. The processor 11 performs the various methods and processes described above, such as the cluster management information interaction method.
In some embodiments, the cluster management information interaction method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto 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 perform the cluster management information interaction method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program 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, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine or partly on a machine, partly on a machine and partly on a remote machine or entirely on a remote machine or server as a stand-alone software package.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described herein may be implemented on a server device 10, the server device 10 having: a Display device (e.g., a CRT (Cathode Ray Tube) or LCD (Liquid Crystal Display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the server apparatus 10. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can 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, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A cluster management information interaction method is characterized by comprising the following steps:
when asset processing operation information of any portal system end is acquired, operation feasibility verification is carried out on a resource object associated with the asset processing operation information;
when the operation feasibility verification is passed, sending a resource processing operation instruction corresponding to the asset processing operation to a target cluster management system end so that the target cluster management system end performs corresponding processing operation on the resource object;
and processing operation feedback information according to the resource object of the target cluster management system end, and sending the operation feedback information of the asset processing operation to any portal system end to realize a cluster management information interaction process.
2. The method of claim 1, wherein performing the operation feasibility check on the resource object associated with the asset handling operation comprises:
determining whether the resource object exists according to a preset asset and resource mapping relation table;
when the resource object exists, the operation feasibility check passes;
and when the resource object does not exist, determining whether the resource object can be created at the target cluster management system end, if so, passing the operation feasibility verification.
3. The method according to claim 2, wherein the sending operation feedback information of the asset processing operation to any portal system side according to the resource object processing operation feedback information of the target cluster management system side comprises:
when the resource object processing operation feedback information is operation success information, updating the mapping relation between the related assets and the resources in the mapping relation table;
and sending the related asset and resource mapping relation as operation feedback information of the asset processing operation to any portal system end so that the portal system end updates the operation result of the asset processing operation.
4. The method of claim 3, further comprising:
and when the update failure information of the operation result sent by any one portal system end is obtained, sending the update failure information of the operation result to the target cluster management system end.
5. The method according to any one of claims 1-4, further comprising:
when container resource processing operation information of any cluster management system end is acquired, asset processing feasibility verification is carried out on an asset object associated with the container resource processing operation information;
when the asset processing feasibility verification passes, pre-updating the mapping relation between the corresponding container resource and the asset object according to the container resource processing operation information;
synchronizing the mapping relation 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;
and updating the mapping relation between the container resource and the asset object according to the asset object updating feedback information sent by the target portal system terminal.
6. The method according to claim 5, wherein the updating 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 side comprises:
when the asset object updating feedback information is updating success information, updating the mapping relation between the container resource and the asset object according to the pre-updating result of the mapping relation between the container resource and the asset object;
and when the asset object updating feedback information is updating failure information, canceling the pre-updating result of the mapping relation between the container resource and the asset object.
7. The method of claim 1, further comprising:
and counting the mapping use records of the asset objects and the resource objects of each portal system according to a preset time dimension, and sending the counting result to the corresponding portal system.
8. A cluster management information interaction device is characterized by comprising:
the operation checking module is used for carrying out operation feasibility checking on the resource object associated with the asset processing operation information when the asset processing operation information of any portal system end is acquired;
the operation instruction information processing module is 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 as to enable the target cluster management system end to perform corresponding processing operation on the resource object;
and the operation feedback information processing module is used for processing operation feedback information according to the resource object of the target cluster management system end and sending the operation feedback information of the asset processing operation to any portal system end so as to realize a cluster management information interaction process.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the cluster management information interaction method of any of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a cluster management information interaction method according to any one of claims 1 to 7.
CN202211709864.1A 2022-12-29 2022-12-29 Cluster management information interaction method, device, equipment and storage medium Pending CN115913954A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211709864.1A CN115913954A (en) 2022-12-29 2022-12-29 Cluster management information interaction method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211709864.1A CN115913954A (en) 2022-12-29 2022-12-29 Cluster management information interaction method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115913954A true CN115913954A (en) 2023-04-04

Family

ID=86479905

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211709864.1A Pending CN115913954A (en) 2022-12-29 2022-12-29 Cluster management information interaction method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115913954A (en)

Similar Documents

Publication Publication Date Title
CN113641457B (en) Container creation method, device, apparatus, medium, and program product
CN113364877B (en) Data processing method, device, electronic equipment and medium
CN112905314A (en) Asynchronous processing method and device, electronic equipment, storage medium and road side equipment
CN113608765A (en) Data processing method, device, equipment and storage medium
CN113590329A (en) Resource processing method and device
CN115061947B (en) Resource management method, device, equipment and storage medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN115617511A (en) Resource data processing method and device, electronic equipment and storage medium
CN115913954A (en) Cluster management information interaction method, device, equipment and storage medium
CN112817992A (en) Method, device, electronic equipment and readable storage medium for executing change task
CN114070889A (en) Configuration method, traffic forwarding method, device, storage medium, and program product
CN112799642A (en) Method, apparatus, device and storage medium for processing data
CN113360689B (en) Image retrieval system, method, related device and computer program product
CN110262756B (en) Method and device for caching data
CN115617454A (en) Containerization service deployment method, device, equipment and storage medium
CN115543953A (en) Quota control method, device, system, equipment and medium
CN114185552A (en) Application deployment processing method and device, equipment, medium and product
CN115268790A (en) Data reading and writing method and device, electronic equipment and storage medium
CN115309568A (en) Method, device, equipment and medium for realizing multi-process file sharing
CN114416040A (en) Page construction method, device, equipment and storage medium
CN116594764A (en) Application program updating method and device, electronic equipment and storage medium
CN113595870A (en) Push message processing method and device, electronic equipment and storage medium
CN115390992A (en) Virtual machine creating method, device, equipment and storage medium
CN114356505A (en) Method, apparatus, device, medium and product for scheduling groups of containers
CN113934581A (en) Method and device for acquiring disk fault information of storage system, electronic equipment and medium

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