CN112968897B - A Container Computing Method Running in a Decentralized System - Google Patents
A Container Computing Method Running in a Decentralized System Download PDFInfo
- Publication number
- CN112968897B CN112968897B CN202110214577.2A CN202110214577A CN112968897B CN 112968897 B CN112968897 B CN 112968897B CN 202110214577 A CN202110214577 A CN 202110214577A CN 112968897 B CN112968897 B CN 112968897B
- Authority
- CN
- China
- Prior art keywords
- container
- task
- node
- computing
- blockchain
- 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.)
- Active
Links
- 238000004364 calculation method Methods 0.000 title claims abstract description 13
- 238000000034 method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/50—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明属于去中心化系统的容器计算技术领域,具体涉及一种在去中心化系统中运行的容器计算方法。The invention belongs to the technical field of container computing in a decentralized system, and in particular relates to a container computing method running in a decentralized system.
背景技术Background technique
容器的大规模部署已在共有云常见。在这种环境下,一般是中心化的管理器来管理服务器上的容器部署,是主从关系。Mass deployment of containers is already common in public clouds. In this environment, a centralized manager is generally used to manage the deployment of containers on the server, which is a master-slave relationship.
在远程去中心化的系统中,一般也使用Kubenetes(容器集群管理系统)部署和管理容器。但去中心化的环境中,管理器与服务器间的互信是价值上的,不是主从关系,这样原有的中心化的管理器来部署服务器上的容器就会无法实现。In remote decentralized systems, Kubenetes (container cluster management system) is also generally used to deploy and manage containers. However, in a decentralized environment, the mutual trust between the manager and the server is of value, not a master-slave relationship, so the original centralized manager to deploy containers on the server will not be able to achieve.
因此,针对上述问题,予以进一步改进。Therefore, in view of the above problems, further improvements are made.
发明内容SUMMARY OF THE INVENTION
本发明的主要目的在于提供一种在去中心化系统中运行的容器计算方法,其通过区块链系统的去中心化机制来实现管理器与服务器之间平等关系,使得本发明可以在第三方计算机中执行容器的部署和运行,其与在现有的中心云方式相比,提供了一种更加灵活的部署场景和方法。The main purpose of the present invention is to provide a container computing method running in a decentralized system, which realizes the equal relationship between the manager and the server through the decentralized mechanism of the blockchain system, so that the present invention can be used in third-party applications. The deployment and operation of the container is performed in the computer, which provides a more flexible deployment scenario and method compared with the existing central cloud method.
为达到以上目的,本发明提供一种在去中心化系统中运行的容器计算方法,用于授权容器在去中心化(计算)系统中进行运行,包括以下步骤:In order to achieve the above purpose, the present invention provides a container computing method running in a decentralized system for authorizing a container to run in a decentralized (computing) system, including the following steps:
步骤S1:将一次登录任务中的第一登录用户信息移送至区块链系统的显示界面的系统登陆区域;Step S1: transfer the first login user information in a login task to the system login area of the display interface of the blockchain system;
步骤S2:接收区块链系统的浏览信息(在本发明区块链系统用于发布任务);Step S2: receiving the browsing information of the blockchain system (used in the blockchain system of the present invention to issue tasks);
步骤S3:基于接收到的浏览信息,在区块链系统的主节点(管理器)上部署容器集群管理系统(Kubernetes Master),并且使用第一登录用户信息所对应的区块链ID启动在主节点上的第一运行程序(Chain Daemon);Step S3: Based on the received browsing information, deploy the container cluster management system (Kubernetes Master) on the master node (manager) of the blockchain system, and use the blockchain ID corresponding to the first login user information to start the system on the master node. The first running program (Chain Daemon) on the node;
步骤S4:计算节点系统(服务器)与区块链系统进行信息交互,并且将容器的任务与计算节点的资源进行匹配;Step S4: the computing node system (server) exchanges information with the blockchain system, and matches the task of the container with the resources of the computing node;
步骤S5:计算机节点接收到容器的任务后,判断当前任务所携带的签名是否为授权的主节点通过第一运行程序进行标记的;Step S5: after receiving the task of the container, the computer node determines whether the signature carried by the current task is marked by the authorized master node through the first running program;
步骤S6:启动任务并且执行,在执行完成任务后,把完成任务的信息记录于区块链系统。Step S6: Start the task and execute it. After the task is completed, the information of the completed task is recorded in the blockchain system.
作为上述技术方案的进一步优选的技术方案,步骤S3具体实施为以下步骤:As a further preferred technical solution of the above technical solution, step S3 is specifically implemented as the following steps:
步骤S3.1:第一运行程序用于将容器的调度任务进行签名;Step S3.1: the first running program is used to sign the scheduling task of the container;
步骤S3.2:主节点用于正常调度分配容器的任务。Step S3.2: The master node is used to normally schedule the task of allocating containers.
作为上述技术方案的进一步优选的技术方案,步骤S4具体实施为以下步骤:As a further preferred technical solution of the above technical solution, step S4 is specifically implemented as the following steps:
步骤S4.1:将一次登录任务中的第二登录用户信息移送至计算节点系统的显示界面的系统登陆区域;Step S4.1: transfer the second login user information in the first login task to the system login area of the display interface of the computing node system;
步骤S4.2:接收计算节点系统的浏览信息(在本发明中,计算节点系统为计算节点客户端,用于计算区块链系统发布的任务);Step S4.2: Receive browsing information of the computing node system (in the present invention, the computing node system is a computing node client, used for computing tasks issued by the blockchain system);
步骤S4.3:计算节点系统的若干计算节点与区块链系统的主节点进行信息交互;Step S4.3: Several computing nodes of the computing node system interact with the master node of the blockchain system;
步骤S4.4:通过在主节点上启动的第一运行程序,将容器的任务与计算节点的资源进行匹配。Step S4.4: Match the task of the container with the resources of the computing node through the first running program started on the master node.
作为上述技术方案的进一步优选的技术方案,步骤S5具体实施为以下步骤:As a further preferred technical solution of the above technical solution, step S5 is specifically implemented as the following steps:
步骤S5.1:当前任务所携带的签名为授权的主节点通过第一运行程序进行标记的,则执行步骤S6,并且把当前任务分配的信息记录于区块链系统;Step S5.1: if the signature carried by the current task is marked by the authorized master node through the first running program, then step S6 is performed, and the information of the current task assignment is recorded in the blockchain system;
步骤S5.2:当前任务所携带的签名不是为授权的主节点通过第一运行程序进行标记的,则执行步骤S4,并且把当前任务分配的信息记录于区块链系统。Step S5.2: If the signature carried by the current task is not marked by the authorized master node through the first running program, then step S4 is performed, and the information of the current task assignment is recorded in the blockchain system.
作为上述技术方案的进一步优选的技术方案,计算机节点包括容器集群管理系统(kuberlet)、应用容器引擎(docker)和第一运行程序(Chain Daemon)。As a further preferred technical solution of the above technical solution, the computer node includes a container cluster management system (kuberlet), an application container engine (docker) and a first running program (Chain Daemon).
附图说明Description of drawings
图1是本发明的一种在去中心化系统中运行的容器计算方法的示意图。FIG. 1 is a schematic diagram of a container computing method running in a decentralized system according to the present invention.
具体实施方式Detailed ways
以下描述用于揭露本发明以使本领域技术人员能够实现本发明。以下描述中的优选实施例只作为举例,本领域技术人员可以想到其他显而易见的变型。在以下描述中界定的本发明的基本原理可以应用于其他实施方案、变形方案、改进方案、等同方案以及没有背离本发明的精神和范围的其他技术方案。The following description serves to disclose the invention to enable those skilled in the art to practice the invention. The preferred embodiments described below are given by way of example only, and other obvious modifications will occur to those skilled in the art. The basic principles of the invention defined in the following description may be applied to other embodiments, variations, improvements, equivalents, and other technical solutions without departing from the spirit and scope of the invention.
参见附图的图1,图1是本发明的一种在去中心化系统中运行的容器计算方法的示意图。Referring to FIG. 1 of the accompanying drawings, FIG. 1 is a schematic diagram of a container computing method running in a decentralized system according to the present invention.
在本发明的优选实施例中,本领域技术人员应注意,本发明所涉及的集群管理系统(kuberlet)、应用容器引擎(docker)和第一运行程序(Chain Daemon)等可被视为现有技术。In the preferred embodiment of the present invention, those skilled in the art should note that the cluster management system (kuberlet), the application container engine (docker), the first running program (Chain Daemon), etc. involved in the present invention can be regarded as existing technology.
优选实施例。Preferred embodiment.
本发明公开了一种在去中心化系统中运行的容器计算方法,用于授权容器在去中心化(计算)系统中进行运行,包括以下步骤:The invention discloses a container computing method running in a decentralized system, which is used for authorizing a container to run in a decentralized (computing) system, including the following steps:
步骤S1:将一次登录任务中的第一登录用户信息移送至区块链系统的显示界面的系统登陆区域;Step S1: transfer the first login user information in a login task to the system login area of the display interface of the blockchain system;
步骤S2:接收区块链系统的浏览信息(在本发明区块链系统用于发布任务);Step S2: receiving the browsing information of the blockchain system (used in the blockchain system of the present invention to issue tasks);
步骤S3:基于接收到的浏览信息,在区块链系统的主节点(管理器)上部署容器集群管理系统(Kubernetes Master),并且使用第一登录用户信息所对应的区块链ID启动在主节点上的第一运行程序(Chain Daemon);Step S3: Based on the received browsing information, deploy the container cluster management system (Kubernetes Master) on the master node (manager) of the blockchain system, and use the blockchain ID corresponding to the first login user information to start the system on the master node. The first running program (Chain Daemon) on the node;
步骤S4:计算节点系统(服务器)与区块链系统进行信息交互,并且将容器的任务与计算节点的资源进行匹配;Step S4: the computing node system (server) exchanges information with the blockchain system, and matches the task of the container with the resources of the computing node;
步骤S5:计算机节点接收到容器的任务后,判断当前任务所携带的签名是否为授权的主节点通过第一运行程序进行标记的;Step S5: after receiving the task of the container, the computer node determines whether the signature carried by the current task is marked by the authorized master node through the first running program;
步骤S6:启动任务并且执行,在执行完成任务后,把完成任务的信息记录于区块链系统。Step S6: Start the task and execute it. After the task is completed, the information of the completed task is recorded in the blockchain system.
具体的是,步骤S3具体实施为以下步骤:Specifically, step S3 is specifically implemented as the following steps:
步骤S3.1:第一运行程序用于将容器的调度任务进行签名;Step S3.1: the first running program is used to sign the scheduling task of the container;
步骤S3.2:主节点用于正常调度分配容器的任务。Step S3.2: The master node is used to normally schedule the task of allocating containers.
更具体的是,步骤S4具体实施为以下步骤:More specifically, step S4 is specifically implemented as the following steps:
步骤S4.1:将一次登录任务中的第二登录用户信息移送至计算节点系统的显示界面的系统登陆区域;Step S4.1: transfer the second login user information in the first login task to the system login area of the display interface of the computing node system;
步骤S4.2:接收计算节点系统的浏览信息(在本发明中,计算节点系统为计算节点客户端,用于计算区块链系统发布的任务);Step S4.2: Receive browsing information of the computing node system (in the present invention, the computing node system is a computing node client, used for computing tasks issued by the blockchain system);
步骤S4.3:计算节点系统的若干计算节点与区块链系统的主节点进行信息交互;Step S4.3: Several computing nodes of the computing node system interact with the master node of the blockchain system;
步骤S4.4:通过在主节点上启动的第一运行程序,将容器的任务与计算节点的资源进行匹配。Step S4.4: Match the task of the container with the resources of the computing node through the first running program started on the master node.
进一步的是,步骤S5具体实施为以下步骤:Further, step S5 is specifically implemented as the following steps:
步骤S5.1:当前任务所携带的签名为授权的主节点通过第一运行程序进行标记的,则执行步骤S6,并且把当前任务分配的信息记录于区块链系统;Step S5.1: if the signature carried by the current task is marked by the authorized master node through the first running program, then step S6 is performed, and the information of the current task assignment is recorded in the blockchain system;
步骤S5.2:当前任务所携带的签名不是为授权的主节点通过第一运行程序进行标记的,则执行步骤S4,并且把当前任务分配的信息记录于区块链系统。Step S5.2: If the signature carried by the current task is not marked by the authorized master node through the first running program, then step S4 is performed, and the information of the current task assignment is recorded in the blockchain system.
更进一步的是,计算机节点包括容器集群管理系统(kuberlet)、应用容器引擎(docker)和第一运行程序(Chain Daemon)。Furthermore, the computer node includes a container cluster management system (kuberlet), an application container engine (docker) and a first running program (Chain Daemon).
值得一提的是,本发明专利申请涉及的集群管理系统(kuberlet)、应用容器引擎(docker)和第一运行程序(Chain Daemon)等技术特征应被视为现有技术,这些技术特征的具体结构、工作原理以及可能涉及到的控制方式、空间布置方式采用本领域的常规选择即可,不应被视为本发明专利的发明点所在,本发明专利不做进一步具体展开详述。It is worth mentioning that the technical features such as the cluster management system (kuberlet), the application container engine (docker) and the first running program (Chain Daemon) involved in the patent application of the present invention should be regarded as the prior art. The structure, working principle, and possible related control methods and space layout methods can be selected by conventional choices in the field, and should not be regarded as the invention point of the patent of the present invention, and the patent of the present invention will not be further detailed.
对于本领域的技术人员而言,依然可以对前述各实施例所记载的技术方案进行修改,或对其中部分技术特征进行等同替换,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围。For those skilled in the art, the technical solutions described in the foregoing embodiments can still be modified, or some technical features thereof can be equivalently replaced. Any modifications made within the spirit and principles of the present invention, Equivalent replacements, improvements, etc., should all be included in the protection scope of the present invention.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110214577.2A CN112968897B (en) | 2021-02-25 | 2021-02-25 | A Container Computing Method Running in a Decentralized System |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202110214577.2A CN112968897B (en) | 2021-02-25 | 2021-02-25 | A Container Computing Method Running in a Decentralized System |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112968897A CN112968897A (en) | 2021-06-15 |
| CN112968897B true CN112968897B (en) | 2022-04-08 |
Family
ID=76275747
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202110214577.2A Active CN112968897B (en) | 2021-02-25 | 2021-02-25 | A Container Computing Method Running in a Decentralized System |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112968897B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107579998A (en) * | 2017-10-17 | 2018-01-12 | 光载无限(北京)科技有限公司 | Personal data center and digital identification authentication method based on block chain, digital identity and intelligent contract |
| CN111614490A (en) * | 2020-04-29 | 2020-09-01 | 北京金山云网络技术有限公司 | Management system and method for managed container cluster based on top-level container cluster |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105245373B (en) * | 2015-10-12 | 2017-08-04 | 天津市普迅电力信息技术有限公司 | A kind of container cloud platform system is built and operation method |
| CN107025136A (en) * | 2016-01-29 | 2017-08-08 | 中兴通讯股份有限公司 | A kind of decentralization resource regulating method and system |
| CN110417558B (en) * | 2018-06-28 | 2022-12-09 | 腾讯科技(深圳)有限公司 | Signature verification method and device, storage medium and electronic device |
| US11159327B2 (en) * | 2018-08-06 | 2021-10-26 | Tyson York Winarski | Blockchain augmentation of a material exchange format MXF file |
| CN109194506B (en) * | 2018-08-16 | 2021-10-15 | 北京京东尚科信息技术有限公司 | Block chain network deployment method, platform and computer storage medium |
| CN109409738A (en) * | 2018-10-25 | 2019-03-01 | 平安科技(深圳)有限公司 | Method, the electronic device of deep learning are carried out based on block platform chain |
| CN109582452B (en) * | 2018-11-27 | 2021-03-02 | 北京邮电大学 | A container scheduling method, scheduling device and electronic device |
| CN109800056A (en) * | 2019-01-16 | 2019-05-24 | 杭州趣链科技有限公司 | A kind of block chain dispositions method based on container |
| CN109951561A (en) * | 2019-03-28 | 2019-06-28 | 浙江数值跳跃网络科技有限公司 | Decentralized basic operation environment management system based on cloud container technology |
| CN109933420A (en) * | 2019-04-02 | 2019-06-25 | 深圳市网心科技有限公司 | Node task scheduling method, electronic device and system |
| CN110601896B (en) * | 2019-09-20 | 2021-08-24 | 腾讯科技(深圳)有限公司 | Data processing method and equipment based on block chain nodes |
| CN111866000A (en) * | 2020-07-24 | 2020-10-30 | 宁夏政安信息科技有限公司 | Account password management method of computer medium management system |
| CN112256388A (en) * | 2020-10-15 | 2021-01-22 | 深圳壹账通智能科技有限公司 | Container-based blockchain network deployment method, device, equipment and storage medium |
| CN112199178B (en) * | 2020-10-21 | 2022-12-16 | 中国电子科技集团公司第十五研究所 | Cloud service dynamic scheduling method and system based on lightweight container |
-
2021
- 2021-02-25 CN CN202110214577.2A patent/CN112968897B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107579998A (en) * | 2017-10-17 | 2018-01-12 | 光载无限(北京)科技有限公司 | Personal data center and digital identification authentication method based on block chain, digital identity and intelligent contract |
| CN111614490A (en) * | 2020-04-29 | 2020-09-01 | 北京金山云网络技术有限公司 | Management system and method for managed container cluster based on top-level container cluster |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112968897A (en) | 2021-06-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12360821B2 (en) | Deploying cloud-native services across control planes | |
| CN109194506B (en) | Block chain network deployment method, platform and computer storage medium | |
| CN113382077B (en) | Micro-service scheduling method, micro-service scheduling device, computer equipment and storage medium | |
| JP6819296B2 (en) | Virtualization management / orchestration equipment, virtualization management / orchestration method, and programs | |
| EP2875439B1 (en) | Migrating applications between networks | |
| CN106375101B (en) | A life cycle management method and device | |
| CN110737442A (en) | edge application management method and system | |
| JP7674487B2 (en) | Management method and apparatus for a container cluster - Patents.com | |
| CN113645071B (en) | Cluster deployment method, system, medium and electronic terminal | |
| Gogouvitis et al. | Seamless computing in industrial systems using container orchestration | |
| CN108984272A (en) | The control method and device of OpenStack cloud computing management platform | |
| CN105426208A (en) | OpenStack offline automatic installation method of cloud computing system | |
| US20230188427A1 (en) | Multi-domain and multi-tenant network topology model generation and deployment | |
| US11353855B1 (en) | Configuring and deploying gateway connectors and workflows for data sources at client networks | |
| US20170060722A1 (en) | Test of the execution of workloads in a computing system | |
| CN112968897B (en) | A Container Computing Method Running in a Decentralized System | |
| US7953776B2 (en) | Discovery directives | |
| US12117975B2 (en) | Linking, deploying, and executing distributed analytics with distributed datasets | |
| EP3387533B1 (en) | Disaster recovery of cloud resources | |
| US11907075B2 (en) | Method and system for continuous mapping of protection policies to data cluster components | |
| CN117273924A (en) | Transaction execution method and device and electronic equipment | |
| CN115098259A (en) | Resource management method and device, cloud platform, equipment and storage medium | |
| CN118786421A (en) | Service map conversion with preserved history information | |
| CN113742646A (en) | Compiling a single language compound function into a single entity | |
| CN115485677A (en) | Secure Data Replication in Distributed Data Storage Environment |
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 | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |