CN115756594A - Dynamic cross resource pool operator deployment method, system and storage medium - Google Patents
Dynamic cross resource pool operator deployment method, system and storage medium Download PDFInfo
- Publication number
- CN115756594A CN115756594A CN202211705860.6A CN202211705860A CN115756594A CN 115756594 A CN115756594 A CN 115756594A CN 202211705860 A CN202211705860 A CN 202211705860A CN 115756594 A CN115756594 A CN 115756594A
- Authority
- CN
- China
- Prior art keywords
- version
- operator
- paas component
- paas
- cloud cluster
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000012544 monitoring process Methods 0.000 claims abstract 4
- 238000004590 computer program Methods 0.000 claims description 12
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000000694 effects Effects 0.000 abstract description 2
- 230000004913 activation Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Stored Programmes (AREA)
Abstract
Description
技术领域technical field
本发明涉及信息技术领域,具体涉及一种动态跨资源池operator部署方法、系统及存储介质。The present invention relates to the field of information technology, in particular to a method, system and storage medium for dynamically deploying operators across resource pools.
背景技术Background technique
Operator是一种封装、部署和管理 Kubernetes 应用的方法,基于特定于应用的控制器,可扩展 Kubernetes API 的功能,来代表 Kubernetes 用户创建、配置和管理复杂应用的实例。Operator 使用自定义资源CR管理应用及其组件,自定义资源是 Kubernetes中的 API 扩展机制。自定义资源定义CRD会明确 CR 并列出 Operator 用户可用的所有配置。 Operator 监视 CR 类型并采取特定于应用的操作,确保当前状态与该资源的理想状态相符。在PaaS平台应用场景中,基于operator来部署云原生PaaS组件,随着资源池和资源池中的容器云集群数量的增长,容器云集群中operator数量、版本也越来越多,如何进行operator的自动安装、升级、卸载等全生命周期管理也成为一个问题。因此亟需研究能够提高operator的管理效率的技术。Operator is a way to package, deploy and manage Kubernetes applications. Based on application-specific controllers, it can extend the functions of Kubernetes API to create, configure and manage instances of complex applications on behalf of Kubernetes users. Operator uses custom resource CR to manage applications and their components. Custom resource is an API extension mechanism in Kubernetes. A custom resource definition CRD will specify the CR and list all configurations available to the Operator user. Operators monitor CR types and take application-specific actions to ensure that the current state matches the desired state for that resource. In the PaaS platform application scenario, cloud-native PaaS components are deployed based on operators. With the growth of resource pools and the number of container cloud clusters in resource pools, the number and versions of operators in container cloud clusters are also increasing. How to implement operator deployment? Full lifecycle management such as automatic installation, upgrade, and uninstallation has also become a problem. Therefore, it is urgent to study technologies that can improve the management efficiency of operators.
发明内容Contents of the invention
本发明所要解决的技术问题:目前缺乏高效率的operator管控方案的技术问题。提出了一种动态跨资源池operator部署方法、系统及存储介质,能够高效的完成operator的安装、升级及卸载全生命周期的管控。The technical problem to be solved by the present invention: the current technical problem of lack of an efficient operator control solution. A dynamic cross-resource pool operator deployment method, system, and storage medium are proposed, which can efficiently complete the management and control of the entire life cycle of operator installation, upgrade, and uninstallation.
为解决上述技术问题,本发明采用如下技术方案:动态跨资源池operator部署方法,包括以下步骤:In order to solve the above-mentioned technical problems, the present invention adopts the following technical solutions: a dynamic cross-resource pool operator deployment method, comprising the following steps:
记录paas组件版本和operator版本的匹配关系;Record the matching relationship between paas component version and operator version;
接收所述云集群paas组件开通指令,部署与所述paas组件版本匹配的operator到所述云集群;receiving the activation instruction of the cloud cluster paas component, and deploying an operator matching the version of the paas component to the cloud cluster;
记录所述云集群的paas组件实例及使用的operator版本;Record the paas component instance of the cloud cluster and the operator version used;
监听新的operator版本发布消息,向需升级operator版本的组件实例发出operator版本升级任务;Listen for new operator version release messages, and send operator version upgrade tasks to component instances that need to upgrade the operator version;
监听paas组件实例注销消息,若存在operator版本未被任何paas组件实例使用,则从所述云集群上卸载对应版本的operator。Monitor the logout message of the paas component instance, and if there is an operator version that is not used by any paas component instance, uninstall the operator of the corresponding version from the cloud cluster.
作为优选,记录paas组件版本和operator版本的匹配关系的方法包括:建立paas组件版本和operator版本的匹配表,所述匹配表记录与paas组件版本匹配的operator版本。Preferably, the method for recording the matching relationship between the paas component version and the operator version includes: establishing a matching table between the paas component version and the operator version, and the matching table records the operator version that matches the paas component version.
作为优选,接收所述云集群的paas组件开通指令后,判断所述云集群是否已部署与所述paas组件版本匹配的operator,若已部署,则不做操作,反之,若未部署与所述paas组件版本匹配的operator,则根据所述云集群的paas组件版本,获得匹配的operator版本,将匹配的operator版本进行部署。As a preference, after receiving the paas component activation instruction of the cloud cluster, it is judged whether the cloud cluster has deployed an operator matching the paas component version, if it has been deployed, no operation is performed, otherwise, if it is not deployed For the operator whose paas component version matches, the matching operator version is obtained according to the paas component version of the cloud cluster, and the matching operator version is deployed.
作为优选,判断所述云集群是否已部署与所述paas组件版本匹配的operator的方法包括:Preferably, the method for judging whether the cloud cluster has deployed an operator matching the paas component version includes:
建立operator版本表,所述operator版本表记录当前所述云集群使用的operator版本;An operator version table is established, and the operator version table records the operator version currently used by the cloud cluster;
根据所述匹配表获得与所述paas组件版本匹配的operator版本;Obtain the operator version matching the paas component version according to the matching table;
查询所述operator版本表,若所述operator版本表未记录与所述paas组件版本匹配的operator版本,则判定所述云集群未部署与所述paas组件版本匹配的operator,反之,若所述operator版本表已记录与所述paas组件版本匹配的operator版本,则判定所述云集群已部署与所述paas组件版本匹配的operator;Query the operator version table, if the operator version table does not record the operator version matching the paas component version, it is determined that the cloud cluster has not deployed an operator matching the paas component version, otherwise, if the operator The version table has recorded the operator version matching the paas component version, then it is determined that the cloud cluster has deployed an operator matching the paas component version;
将匹配的operator版本进行部署后,更新所述operator版本表。After the matching operator version is deployed, the operator version table is updated.
作为优选,记录所述云集群的paas组件实例及使用的operator版本的方法包括:As preferably, the method for recording the paas component instance of the cloud cluster and the operator version used comprises:
建立paas组件版本表,所述paas组件版本表记录当前使用的paas组件版本和paas组件实例集合,所述paas组件实例集合记录paas组件实例及paas组件实例使用的operator版本。A paas component version table is established, the paas component version table records the currently used paas component version and the paas component instance set, and the paas component instance set records the paas component instance and the operator version used by the paas component instance.
作为优选,获得需升级operator版本的组件实例的方法包括:Preferably, the methods for obtaining component instances whose operator version needs to be upgraded include:
查询所述paas组件版本表,获得旧operator版本对应的paas组件实例集合,即为需升级operator版本的paas组件实例集合,所述paas组件实例集合中的paas组件实例即为需升级operator版本的paas组件实例。Query the paas component version table to obtain the paas component instance set corresponding to the old operator version, that is, the paas component instance set that needs to be upgraded to the operator version, and the paas component instance in the paas component instance set is the paas that needs to be upgraded to the operator version Component instance.
作为优选,判断operator版本是否被paas组件实例使用的方法包括:Preferably, the method for judging whether the operator version is used by the paas component instance includes:
查询所述paas组件版本表,获得operator版本对应的paas组件实例集合,若所述paas组件实例集合为空,则判定所述operator版本未被任何paas组件实例使用,反之,若所述paas组件实例集合不为空,则判定所述operator版本存在paas组件实例使用。Query the paas component version table to obtain the paas component instance set corresponding to the operator version. If the paas component instance set is empty, it is determined that the operator version is not used by any paas component instance. On the contrary, if the paas component instance If the collection is not empty, it is determined that the operator version exists in the paas component instance.
动态跨资源池operator部署系统,用于执行如前述的动态跨资源池operator部署方法,包括版本管理中心、operator自动部署单元、operator自动升级单元和operator自动卸载单元,The dynamic cross-resource pool operator deployment system is used to implement the aforementioned dynamic cross-resource pool operator deployment method, including a version management center, an operator automatic deployment unit, an operator automatic upgrade unit, and an operator automatic uninstall unit,
所述版本管理中心记录paas组件版本和operator版本的匹配关系,所述operator自动部署单元接收所述云集群paas组件开通指令,部署与所述paas组件版本匹配的operator到所述云集群,paas组件开通后所述版本管理中心记录记录所述云集群的paas组件实例及使用的operator版本,所述operator自动升级单元监听新的operator版本发布消息,向需升级operator版本的组件实例发出operator版本升级任务,所述operator自动卸载单元监听paas组件实例注销消息,若存在operator版本未被任何paas组件实例使用,则从所述云集群上卸载对应版本的operator。The version management center records the matching relationship between the paas component version and the operator version, the operator automatic deployment unit receives the cloud cluster paas component activation instruction, deploys the operator that matches the paas component version to the cloud cluster, and the paas component After opening, the version management center records the paas component instance of the cloud cluster and the operator version used, and the operator automatic upgrade unit monitors the new operator version release message, and sends an operator version upgrade task to the component instance that needs to upgrade the operator version , the operator automatic unloading unit monitors the logout message of the paas component instance, and if there is an operator version that is not used by any paas component instance, then uninstall the operator of the corresponding version from the cloud cluster.
作为优选,所述版本管理中心建立paas组件版本和operator版本的匹配表,所述匹配表记录与paas组件版本匹配的operator版本。Preferably, the version management center establishes a matching table of the paas component version and the operator version, and the matching table records the operator version matching the paas component version.
作为优选,所述operator自动部署单元接收所述云集群的paas组件开通指令后,判断所述云集群是否已部署与所述paas组件版本匹配的operator,若已部署,则不做操作,反之,若未部署与所述paas组件版本匹配的operator,则根据所述云集群的paas组件版本,获得匹配的operator版本,将匹配的operator版本进行部署;As preferably, after the operator automatic deployment unit receives the paas component activation instruction of the cloud cluster, it judges whether the cloud cluster has deployed an operator matching the paas component version, and if it has been deployed, no operation is performed, otherwise, If the operator matching the paas component version is not deployed, then according to the paas component version of the cloud cluster, a matching operator version is obtained, and the matching operator version is deployed;
所述版本管理中心建立operator版本表,所述operator版本表记录当前所述云集群使用的operator版本,所述operator自动部署单元根据所述匹配表获得与所述paas组件版本匹配的operator版本,所述operator自动部署单元查询所述operator版本表,若所述operator版本表未记录与所述paas组件版本匹配的operator版本,则判定所述云集群未部署与所述paas组件版本匹配的operator,反之,若所述operator版本表已记录与所述paas组件版本匹配的operator版本,则判定所述云集群已部署与所述paas组件版本匹配的operator,所述operator自动部署单元将匹配的operator版本进行部署后,通知所述版本管理中心更新所述operator版本表。The version management center establishes an operator version table, the operator version table records the operator version currently used by the cloud cluster, and the operator automatic deployment unit obtains the operator version matching the paas component version according to the matching table, so The operator automatic deployment unit queries the operator version table, if the operator version table does not record the operator version matching the paas component version, then it is determined that the cloud cluster has not deployed an operator matching the paas component version, otherwise , if the operator version table has recorded the operator version that matches the paas component version, it is determined that the cloud cluster has deployed an operator that matches the paas component version, and the operator automatic deployment unit performs the matching operator version After deployment, notify the version management center to update the operator version table.
作为优选,所述版本管理中心建立paas组件版本表,所述paas组件版本表记录当前使用的paas组件版本和paas组件实例集合,所述paas组件实例集合记录paas组件实例及paas组件实例使用的operator版本。As preferably, the version management center sets up a paas component version table, the paas component version table records the currently used paas component version and the paas component instance set, and the paas component instance set records the paas component instance and the operator used by the paas component instance Version.
一种计算机系统,所述计算机系统包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如前述的动态跨资源池operator部署方法。A computer system, the computer system includes a memory, a processor, and a computer program stored in the memory and operable on the processor, when the computer program is executed by the processor, the aforementioned dynamic The operator deployment method across resource pools.
一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如前述的动态跨资源池operator部署方法。A computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the aforementioned method for dynamically deploying operators across resource pools is implemented.
本发明的有益技术效果包括:通过版本管理中心来管理组件版本和operator版本的约束关系,在组件开通、operator新版本发布、组件注销时自动触发operator的部署、升级、卸载,实现跨资源池多容器云集群中的operator生命周期的动态管理。The beneficial technical effects of the present invention include: managing the constraint relationship between the component version and the operator version through the version management center, automatically triggering the deployment, upgrading, and uninstallation of the operator when the component is activated, the new version of the operator is released, and the component is canceled, so as to realize multiple resources across resource pools. Dynamic management of operator life cycle in container cloud cluster.
本发明的其他特点和优点将会在下面的具体实施方式、附图中详细的揭露。Other features and advantages of the present invention will be disclosed in detail in the following specific embodiments and drawings.
附图说明Description of drawings
下面结合附图对本发明做进一步的说明:Below in conjunction with accompanying drawing, the present invention will be further described:
图1为本发明实施例动态跨资源池operator部署方法流程示意图。FIG. 1 is a schematic flowchart of a method for dynamically deploying operators across resource pools according to an embodiment of the present invention.
图2为本发明实施例判断云集群版本匹配方法示意图。FIG. 2 is a schematic diagram of a method for judging cloud cluster version matching according to an embodiment of the present invention.
图3为本发明实施例动态跨资源池operator部署系统结构示意图。FIG. 3 is a schematic structural diagram of a system for dynamically deploying operators across resource pools according to an embodiment of the present invention.
图4为本发明实施例计算机系统结构示意图。FIG. 4 is a schematic structural diagram of a computer system according to an embodiment of the present invention.
其中:10、版本管理中心,20、operator自动部署单元,30、operator自动升级单元,40、operator自动卸载单元,50、计算机系统,51、存储器,52、计算机程序,53、处理器。Among them: 10. version management center, 20. operator automatic deployment unit, 30. operator automatic upgrade unit, 40. operator automatic uninstall unit, 50. computer system, 51. memory, 52. computer program, 53. processor.
具体实施方式Detailed ways
下面结合本发明实施例的附图对本发明实施例的技术方案进行解释和说明,但下述实施例仅为本发明的优选实施例,并非全部。基于实施方式中的实施例,本领域技术人员在没有做出创造性劳动的前提下所获得其他实施例,都属于本发明的保护范围。The technical solutions of the embodiments of the present invention will be explained and described below in conjunction with the accompanying drawings of the embodiments of the present invention, but the following embodiments are only preferred embodiments of the present invention, not all of them. Based on the examples in the implementation manners, other examples obtained by those skilled in the art without making creative efforts all belong to the protection scope of the present invention.
在下文描述中,出现诸如术语“内”、“外”、“上”、“下”、“左”、“右”等指示方位或者位置关系仅是为了方便描述实施例和简化描述,而不是指示或暗示所指的装置或者元件必须具有特定的方位、以特定的方位构造和操作,因此不能理解为对本发明的限制。In the following description, terms such as "inner", "outer", "upper", "lower", "left", "right" etc. appearing to indicate orientation or positional relationship are only for the convenience of describing the embodiment and simplifying the description, rather than Nothing indicating or implying that a referenced device or element must have a particular orientation, be constructed, and operate in a particular orientation should therefore not be construed as limiting the invention.
介绍本实施例技术方案前,对本实施例应用场景作介绍。Before introducing the technical solution of this embodiment, the application scenario of this embodiment is introduced.
Operator基于特定于应用的控制器,可扩展 Kubernetes API 的功能,来代表用户创建、配置和管理复杂应用的实例。Operator 使用自定义资源(CR)管理应用及其组件,自定义资源是 Kubernetes 中的 API 扩展机制。自定义资源定义(CRD)会明确 CR 并列出Operator 用户可用的所有配置。 Operator 监视 CR 类型并采取特定于应用的操作,确保当前状态与该资源的理想状态相符。在PaaS平台应用场景中,基于operator来部署云原生PaaS组件,随着资源池和资源池中的容器云集群数量的增长,容器云集群中operator数量、版本也越来越多。Operators are based on application-specific controllers that extend the capabilities of the Kubernetes API to create, configure, and manage instances of complex applications on behalf of users. Operators manage applications and their components using Custom Resources (CR), an API extension mechanism in Kubernetes. A Custom Resource Definition (CRD) specifies a CR and lists all configurations available to Operator users. Operators monitor CR types and take application-specific actions to ensure that the current state matches the desired state for that resource. In the PaaS platform application scenario, cloud-native PaaS components are deployed based on operators. As the number of resource pools and container cloud clusters in resource pools increases, the number and versions of operators in container cloud clusters also increase.
动态跨资源池operator部署方法,请参阅附图1,包括以下步骤:For the dynamic cross-resource pool operator deployment method, please refer to Figure 1, including the following steps:
步骤A01)记录paas组件版本和operator版本的匹配关系;Step A01) Record the matching relationship between the paas component version and the operator version;
步骤A02)接收云集群paas组件开通指令,部署与paas组件版本匹配的operator到云集群;Step A02) Receive the cloud cluster paas component activation instruction, and deploy the operator that matches the paas component version to the cloud cluster;
步骤A03)记录云集群的paas组件实例及使用的operator版本;Step A03) record the instance of the paas component of the cloud cluster and the operator version used;
步骤A04)监听新的operator版本发布消息,向需升级operator版本的组件实例发出operator版本升级任务;Step A04) Listen for new operator version release messages, and send operator version upgrade tasks to component instances that need to upgrade the operator version;
步骤A05)监听paas组件实例注销消息,若存在operator版本未被任何paas组件实例使用,则从云集群上卸载对应版本的operator。Step A05) Monitor the logout message of the paas component instance, and if there is an operator version that is not used by any paas component instance, uninstall the operator of the corresponding version from the cloud cluster.
记录paas组件版本和operator版本的匹配关系的方法包括:建立paas组件版本和operator版本的匹配表,匹配表记录与paas组件版本匹配的operator版本。The method for recording the matching relationship between the paas component version and the operator version includes: establishing a matching table between the paas component version and the operator version, and the matching table records the operator version that matches the paas component version.
本实施例中,版本管理中心10:公共区版本管理中心10提供paas组件版本、operator版本管理功能,并维护paas组件版本和operator版本之间的约束关系。In this embodiment, version management center 10: the public area version management center 10 provides paas component version and operator version management functions, and maintains the constraint relationship between the paas component version and operator version.
operator自动部署: 当用户当选中某个资源池的某个容器云集群开通paas组件,paas组件开通引擎首先判断容器云集群是否部署operator,如果没有部署,根据当前需要部署的paas组件版本,获取匹配的最新的operator版本,然后自动下发operator的部署自动部署operator,并在实例中心记录容器云集群实例和组件operator的版本关系,后续为operator版本自动升级提供依据。Operator automatic deployment: When the user selects a container cloud cluster in a certain resource pool to activate the paas component, the paas component activation engine first determines whether the operator is deployed in the container cloud cluster. The latest operator version, and then automatically distribute the deployment of the operator, automatically deploy the operator, and record the version relationship between the container cloud cluster instance and the component operator in the instance center, and then provide the basis for the automatic upgrade of the operator version.
operator自动升级:发布新的operator版本时,版本发布成功后,会发送一条通知消息给operator管理调度中心,operator管理调度中心,会获取所有安装了operator的容器云集群,为每个容器云集群生成operator升级任务, operator升级任务会首先获取容器云集群中的实例版本,判断是否都匹配最新的operator版本,如果匹配,则下发operator升级chart到资源池容器集群自动拉起新版本operator。Operator automatic upgrade: When a new operator version is released, a notification message will be sent to the operator management dispatching center after the version is released successfully. The operator management dispatching center will obtain all container cloud clusters with the operator installed and generate The operator upgrade task, the operator upgrade task will first obtain the instance version in the container cloud cluster, and judge whether they match the latest operator version. If they match, the operator upgrade chart will be delivered to the resource pool container cluster to automatically pull up the new version of the operator.
operator自动卸载:当完成某个资源池某个容器云集群中的paas组件实例的注销,判断容器云集群中是否还存在该组件的实例,如果不存在,则触发operator卸载。Operator automatic unloading: When the deregistration of the paas component instance in a certain container cloud cluster of a certain resource pool is completed, it is judged whether there is an instance of the component in the container cloud cluster, and if it does not exist, the unloading of the operator is triggered.
接收云集群的paas组件开通指令后,判断云集群是否已部署与paas组件版本匹配的operator,若已部署,则不做操作,反之,若未部署与paas组件版本匹配的operator,则根据云集群的paas组件版本,获得匹配的operator版本,将匹配的operator版本进行部署。After receiving the activation command of the paas component of the cloud cluster, it is judged whether the operator matching the version of the paas component has been deployed in the cloud cluster. The version of the paas component, obtain the matching operator version, and deploy the matching operator version.
判断云集群是否已部署与paas组件版本匹配的operator的方法,请参阅附图2,包括:For the method of judging whether the cloud cluster has deployed an operator that matches the version of the paas component, please refer to Figure 2, including:
步骤B01)建立operator版本表,operator版本表记录当前云集群使用的operator版本;Step B01) Establishing an operator version table, which records the operator version used by the current cloud cluster;
步骤B02)根据匹配表获得与paas组件版本匹配的operator版本;Step B02) Obtain the operator version matching the paas component version according to the matching table;
步骤B03)查询operator版本表,若operator版本表未记录与paas组件版本匹配的operator版本,则判定云集群未部署与paas组件版本匹配的operator,反之,若operator版本表已记录与paas组件版本匹配的operator版本,则判定云集群已部署与paas组件版本匹配的operator;Step B03) Query the operator version table. If the operator version table does not record the operator version that matches the paas component version, it is determined that the cloud cluster has not deployed an operator that matches the paas component version. Conversely, if the operator version table has records that match the paas component version operator version, it is determined that the operator that matches the paas component version has been deployed in the cloud cluster;
步骤B04)将匹配的operator版本进行部署后,更新operator版本表。Step B04) After deploying the matching operator version, update the operator version table.
记录云集群的paas组件实例及使用的operator版本的方法包括:The methods for recording the paas component instance of the cloud cluster and the operator version used include:
建立paas组件版本表,paas组件版本表记录当前使用的paas组件版本和paas组件实例集合,paas组件实例集合记录paas组件实例及paas组件实例使用的operator版本。Create a paas component version table, the paas component version table records the currently used paas component version and the paas component instance set, the paas component instance set records the paas component instance and the operator version used by the paas component instance.
获得需升级operator版本的组件实例的方法包括:Methods for obtaining component instances whose operator version needs to be upgraded include:
查询paas组件版本表,获得旧operator版本对应的paas组件实例集合,即为需升级operator版本的paas组件实例集合,paas组件实例集合中的paas组件实例即为需升级operator版本的paas组件实例。Query the paas component version table to obtain the paas component instance set corresponding to the old operator version, that is, the paas component instance set that needs to be upgraded to the operator version, and the paas component instances in the paas component instance set are the paas component instances that need to be upgraded to the operator version.
判断operator版本是否被paas组件实例使用的方法包括:The methods for judging whether the operator version is used by the paas component instance include:
查询paas组件版本表,获得operator版本对应的paas组件实例集合,若paas组件实例集合为空,则判定operator版本未被任何paas组件实例使用,反之,若paas组件实例集合不为空,则判定operator版本存在paas组件实例使用。Query the paas component version table to obtain the paas component instance set corresponding to the operator version. If the paas component instance set is empty, it is determined that the operator version is not used by any paas component instance. Conversely, if the paas component instance set is not empty, it is determined that the operator The version is used by the paas component instance.
通过版本管理中心10来管理组件版本和operator版本的约束关系,在组件开通、operator新版本发布、组件注销时自动触发operator的部署、升级、卸载,实现跨资源池多容器云集群中的operator生命周期的动态管理。The constraint relationship between the component version and the operator version is managed through the version management center 10, and the deployment, upgrade, and uninstallation of the operator are automatically triggered when the component is activated, the new version of the operator is released, and the component is deregistered, so as to realize the life of the operator in the multi-container cloud cluster across resource pools Cycle dynamic management.
另一方面,本实施例提供了一种动态跨资源池operator部署系统,用于执行如前述的动态跨资源池operator部署方法,请参阅附图3,包括版本管理中心10、operator自动部署单元20、operator自动升级单元30和operator自动卸载单元40,On the other hand, this embodiment provides a dynamic inter-resource pool operator deployment system, which is used to implement the aforementioned dynamic inter-resource pool operator deployment method, please refer to FIG. 3 , including a version management center 10 and an operator automatic deployment unit 20 , operator automatic upgrading unit 30 and operator automatic unloading unit 40,
版本管理中心10记录paas组件版本和operator版本的匹配关系,operator自动部署单元20接收云集群paas组件开通指令,部署与paas组件版本匹配的operator到云集群,paas组件开通后版本管理中心10记录记录云集群的paas组件实例及使用的operator版本,operator自动升级单元30监听新的operator版本发布消息,向需升级operator版本的组件实例发出operator版本升级任务,operator自动卸载单元40监听paas组件实例注销消息,若存在operator版本未被任何paas组件实例使用,则从云集群上卸载对应版本的operator。The version management center 10 records the matching relationship between the paas component version and the operator version, the operator automatic deployment unit 20 receives the cloud cluster paas component activation instruction, deploys the operator that matches the paas component version to the cloud cluster, and the version management center 10 records the record after the paas component is activated The paas component instance of the cloud cluster and the operator version used, the operator automatic upgrade unit 30 monitors the release message of the new operator version, sends the operator version upgrade task to the component instance that needs to upgrade the operator version, and the operator automatic uninstall unit 40 monitors the logout message of the paas component instance , if there is an operator version that is not used by any paas component instance, uninstall the operator of the corresponding version from the cloud cluster.
版本管理中心10建立paas组件版本和operator版本的匹配表,匹配表记录与paas组件版本匹配的operator版本。The version management center 10 establishes a matching table of the paas component version and the operator version, and the matching table records the operator version matching the paas component version.
operator自动部署单元20接收云集群的paas组件开通指令后,判断云集群是否已部署与paas组件版本匹配的operator,若已部署,则不做操作,反之,若未部署与paas组件版本匹配的operator,则根据云集群的paas组件版本,获得匹配的operator版本,将匹配的operator版本进行部署;After the operator automatic deployment unit 20 receives the paas component activation instruction of the cloud cluster, it judges whether the cloud cluster has deployed an operator that matches the paas component version, and if it has been deployed, no operation is performed; otherwise, if the operator that matches the paas component version has not been deployed , get the matching operator version according to the paas component version of the cloud cluster, and deploy the matching operator version;
版本管理中心10建立operator版本表,operator版本表记录当前云集群使用的operator版本,operator自动部署单元20根据匹配表获得与paas组件版本匹配的operator版本,operator自动部署单元20查询operator版本表,若operator版本表未记录与paas组件版本匹配的operator版本,则判定云集群未部署与paas组件版本匹配的operator,反之,若operator版本表已记录与paas组件版本匹配的operator版本,则判定云集群已部署与paas组件版本匹配的operator,operator自动部署单元20将匹配的operator版本进行部署后,通知版本管理中心10更新operator版本表。The version management center 10 establishes an operator version table, the operator version table records the operator version used by the current cloud cluster, the operator automatic deployment unit 20 obtains the operator version matching the paas component version according to the matching table, the operator automatic deployment unit 20 queries the operator version table, if If the operator version table does not record the operator version that matches the paas component version, it is determined that the cloud cluster has not deployed an operator that matches the paas component version. Conversely, if the operator version table has recorded an operator version that matches the paas component version, it is determined that the cloud cluster has Deploy the operator that matches the version of the paas component. After the operator automatic deployment unit 20 deploys the matched operator version, it notifies the version management center 10 to update the operator version table.
版本管理中心10建立paas组件版本表,paas组件版本表记录当前使用的paas组件版本和paas组件实例集合,paas组件实例集合记录paas组件实例及paas组件实例使用的operator版本。The version management center 10 establishes a paas component version table, and the paas component version table records the currently used paas component version and the paas component instance set, and the paas component instance set records the paas component instance and the operator version used by the paas component instance.
另一方面,本申请实施例提供了一种计算机系统,请参阅附图4,计算机系统50包括存储器51、处理器53以及存储在存储器51中并可在处理器53上运行的计算机程序52,计算机程序52被处理器53执行时实现如前述的动态跨资源池operator部署方法。On the other hand, the embodiment of the present application provides a computer system, referring to FIG. 4 , the
计算机系统可以是一个通用计算机系统或一个专用计算机系统。在具体实现中,计算机系统可以是包括有多个服务器的服务器集群,如可以是包括有多个节点的区块链系统。本领域技术人员可以理解,图4仅仅是计算机系统的举例,并不构成对计算机系统的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,比如还可以包括输入输出设备、网络接入设备等。The computer system can be a general purpose computer system or a special purpose computer system. In a specific implementation, the computer system may be a server cluster including multiple servers, such as a blockchain system including multiple nodes. Those skilled in the art can understand that FIG. 4 is only an example of a computer system, and does not constitute a limitation to the computer system. It may include more or less components than those shown in the illustration, or combine certain components, or different components, such as It may also include input and output devices, network access devices, etc.
处理器53可以是中央处理单元(Central Processing Unit,CPU),处理器53还可以是其他通用处理器53、数字信号处理器53(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器53可以是微处理器53或者也可以是任何常规的处理器53。The
存储器51在一些实施例中可以是计算机系统的内部存储单元,比如计算机系统的硬盘或内存。存储器51在另一些实施例中也可以是计算机系统的外部存储设备,比如计算机系统上配备的插接式硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(SecureDigital,SD)卡、闪存卡(Flash Card)等。进一步地,存储器51还可以既包括计算机系统的内部存储单元也包括外部存储设备。存储器51用于存储操作系统、应用程序、引导装载程序(Boot Loader)、数据以及其他程序等。存储器51还可以用于暂时地存储已经输出或者将要输出的数据。The
另一方面,本申请实施例提供了一种计算机可读存储介质,计算机可读存储介质存储有计算机程序52,计算机程序52被处理器53执行时实现如前述的动态跨资源池operator部署方法。On the other hand, the embodiment of the present application provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program 52 , and when the computer program 52 is executed by the
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,熟悉该本领域的技术人员应该明白本发明包括但不限于附图和上面具体实施方式中描述的内容。任何不偏离本发明的功能和结构原理的修改都将包括在权利要求书的范围中。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and those skilled in the art should understand that the present invention includes but is not limited to the accompanying drawings and the description in the above specific embodiments content. Any modifications that do not depart from the functional and structural principles of the present invention will be included in the scope of the claims.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211705860.6A CN115756594A (en) | 2022-12-29 | 2022-12-29 | Dynamic cross resource pool operator deployment method, system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211705860.6A CN115756594A (en) | 2022-12-29 | 2022-12-29 | Dynamic cross resource pool operator deployment method, system and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115756594A true CN115756594A (en) | 2023-03-07 |
Family
ID=85347915
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211705860.6A Pending CN115756594A (en) | 2022-12-29 | 2022-12-29 | Dynamic cross resource pool operator deployment method, system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115756594A (en) |
-
2022
- 2022-12-29 CN CN202211705860.6A patent/CN115756594A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10275270B2 (en) | Method and apparatus to scale application deployments in cloud computing environments using virtual machine pools | |
US8910138B2 (en) | Hot pluggable extensions for access management system | |
US8645672B2 (en) | Configuring a computer system for a software package installation | |
WO2012122884A1 (en) | Open plug-in management platform and plug-in management method implemented on browser | |
CN106789250A (en) | A kind of service multi version based on container coexists implementation method | |
US11979686B2 (en) | Method and system for software-defined camera and camera | |
US11385879B2 (en) | Dynamic extension of restricted software applications after an operating system mode switch | |
CN111262908A (en) | Task construction method and system based on jenkins | |
CN111443985A (en) | Method and apparatus for instantiating virtual network functions | |
WO2020062914A1 (en) | Method and device for updating algorithm | |
WO2021057605A1 (en) | Device management method, device, system and device, and storage medium | |
US20240345829A1 (en) | Mobile service upgrade method and apparatus, and terminal | |
CN112688794A (en) | YANG model management method, device, system, equipment and storage medium | |
CN116155978A (en) | Multi-registry adaptation method, device, electronic equipment and storage medium | |
WO2022140945A1 (en) | Container cluster management method and apparatus | |
US8612963B2 (en) | Guided problem resolution in deploying an application | |
CN118760480A (en) | Android-based application plug-in method, device, storage medium and electronic device | |
US7979531B2 (en) | Method and system for network management data collection | |
CN115756594A (en) | Dynamic cross resource pool operator deployment method, system and storage medium | |
US6711737B1 (en) | Data processing system, data processing method, and program-providing medium therewith | |
CN112015515B (en) | Instantiation method and device of virtual network function | |
CN109218259B (en) | License management method and device, APPLM functional entity and computer readable storage medium | |
CN114327781B (en) | Virtual terminal control method and device, system, electronic device, and storage medium | |
CN105827567B (en) | Service management and control method and capability open platform | |
WO2023050410A1 (en) | Workflow operation method and apparatus |
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 |