CN115550375B - System, method and equipment for realizing block chain light weight based on containerization technology - Google Patents
System, method and equipment for realizing block chain light weight based on containerization technology Download PDFInfo
- Publication number
- CN115550375B CN115550375B CN202211058876.2A CN202211058876A CN115550375B CN 115550375 B CN115550375 B CN 115550375B CN 202211058876 A CN202211058876 A CN 202211058876A CN 115550375 B CN115550375 B CN 115550375B
- Authority
- CN
- China
- Prior art keywords
- block chain
- blockchain
- data
- unit
- mirror image
- 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
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000005516 engineering process Methods 0.000 title claims abstract description 38
- 230000006870 function Effects 0.000 claims abstract description 23
- 239000013585 weight reducing agent Substances 0.000 claims abstract description 23
- 238000004891 communication Methods 0.000 claims description 15
- 238000013500 data storage Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 12
- 230000004913 activation Effects 0.000 claims description 5
- 230000004044 response Effects 0.000 claims description 4
- 230000003213 activating effect Effects 0.000 claims description 2
- 238000012545 processing Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 7
- 238000010276 construction Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002688 persistence Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000012549 training Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
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
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- 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
- H04L67/104—Peer-to-peer [P2P] networks
-
- 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
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention provides a system, a method and equipment for realizing the weight reduction of a blockchain based on a containerization technology, belongs to the technical field of computers, and can reduce the storage pressure of an edge side end unit. The invention discloses a system for realizing the weight reduction of a blockchain based on a containerization technology, wherein a blockchain container deployment module is configured to cut part of functions in the blockchain to generate a blockchain configuration file; the block chain container deployment module is further configured to pack a basic class library of block chain operation, attribute information of each side unit and a block chain configuration file by adopting a containerization technology, generate a block chain container mirror image, and send the block chain container mirror image to a mirror image warehouse for storage; the cloud edge collaboration module is configured to issue the blockchain container images in the image warehouse to at least one edge unit and operate the same, so that the edge unit searches other edge units according to the blockchain configuration files in the blockchain container images, and the edge side blockchain network is formed in a consensus mode.
Description
Technical Field
The invention belongs to the technical field of computers, and particularly relates to a system, a method and equipment for realizing block chain weight reduction based on a containerization technology.
Background
Along with the deep advancement of national industrial Internet, internet plus action plans, cloud computing and big data strategy, various industries are accelerating the construction of intelligent Internet of things systems, and the interactive construction of massive edge sides and cloud ends is advanced. The cloud edge cooperative technology provides a solution to the problems, and the core idea is to deploy partial data processing, analysis and related application programs into an edge layer close to a data source so as to reduce data processing time delay and relieve resource pressure of a cloud platform.
However, the existing blockchain deployed on the edge device has the problem of higher storage pressure of the edge device because the blockchain system generates a large amount of data when running.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person of ordinary skill in the art.
Disclosure of Invention
The invention aims to reduce the storage pressure of an edge side end unit and provides a system, a method and equipment for realizing the weight reduction of a blockchain based on a containerization technology.
In a first aspect, an embodiment of the present invention provides a system for implementing blockchain lightweight based on a containerization technology, including a cloud unit and at least one side unit; the cloud unit comprises a blockchain container deployment module, a mirror warehouse and a cloud edge cooperative module; the cloud end unit is in communication connection with the side end unit;
the block chain container deployment module is connected with the mirror image warehouse; the block chain container deployment module is configured to cut part of functions in the block chain to generate a block chain configuration file;
the block chain container deployment module is further configured to pack a basic class library of block chain operation, attribute information of each side unit and a block chain configuration file by adopting a containerization technology, generate a block chain container mirror image, and send the block chain container mirror image to the mirror image warehouse for storage;
the cloud edge cooperation module is connected with the mirror image warehouse and is configured to issue the block chain container mirror image in the mirror image warehouse to at least one side unit and operate the side unit so that the side unit searches other side units according to the block chain configuration file in the block chain container mirror image and commonly recognizes the side unit to form an edge side block chain network.
Optionally, the cloud edge collaboration module adopts a Kubernetes architecture.
Optionally, the mirror repository is Registry.
Optionally, the blockchain container deployment module is a BaaS platform.
Optionally, each side unit comprises a data archiving module, a query module and a data clipping service module; wherein,
the data archiving module is configured to archive the data stored by the side unit and upload the data to the cloud unit for storage;
the inquiring module is configured to inquire the data storage service usage amount of the side unit, and when the data storage service usage amount reaches a preset threshold value, an activating instruction is sent to the data clipping service module;
the data clipping service module clips other types of data except the state data stored by the side unit in response to the activation instruction sent by the query module; wherein the status data comprises block header data and transaction hash data.
In a second aspect, an embodiment of the present invention provides a method for implementing blockchain lightweight based on a containerization technique, including:
the cloud unit cuts part of functions in the blockchain to obtain a blockchain configuration file;
the cloud unit adopts a containerization technology to pack a basic class library of the block chain operation, attribute information of each side unit and a block chain configuration file, generates a block chain container mirror image, and sends the block chain container mirror image to the mirror image warehouse for storage;
and the cloud unit issues the blockchain container mirror image in the mirror image warehouse to at least one side unit and operates the side unit so that the side unit searches other side units according to the blockchain configuration file in the blockchain container mirror image and commonly forms an edge side blockchain network.
Optionally, the method for realizing the weight reduction of the blockchain based on the containerization technology further comprises the following steps:
each side unit files the stored data and uploads the data to the cloud unit for storage;
each side unit inquires the data storage service usage amount, and when the data storage service usage amount reaches a preset threshold value, other types of data except the state data stored by the side unit are cut off; wherein the status data comprises block header data and transaction hash data.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described above.
In a fourth aspect, embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the above-described method.
In a fifth aspect, embodiments of the present invention provide a computer program product comprising a computer program which, when executed by a processor, implements the method described above.
Drawings
Fig. 1 is a schematic structural diagram of a system for realizing blockchain weight reduction based on a containerization technology according to an embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating another system for achieving blockchain lightweight based on containerization techniques according to an embodiment of the present invention;
FIG. 3 illustrates a flow chart of a method for achieving blockchain lightweight based on containerization techniques provided by embodiments of the present invention;
FIG. 4 illustrates a flowchart of another method for achieving blockchain lightweight based on containerization techniques provided by embodiments of the present invention;
FIG. 5 shows a schematic block diagram of an example electronic device that may be used to implement an embodiment of the invention.
Detailed Description
The present invention will be described in further detail below with reference to the drawings and detailed description for the purpose of better understanding of the technical solution of the present invention to those skilled in the art.
Unless defined otherwise, technical or scientific terms used herein should be given the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The terms "first," "second," and the like, as used herein, do not denote any order, quantity, or importance, but rather are used to distinguish one element from another. Likewise, the terms "a," "an," or "the" and similar terms do not denote a limitation of quantity, but rather denote the presence of at least one. The word "comprising" or "comprises", and the like, means that elements or items preceding the word are included in the element or item listed after the word and equivalents thereof, but does not exclude other elements or items. The terms "connected" or "connected," and the like, are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", etc. are used merely to indicate relative positional relationships, which may also be changed when the absolute position of the object to be described is changed.
It should be noted that, a blockchain is a chain data structure that combines data blocks in a sequential manner according to a time sequence, and the blockchain is also equal to a blockplus chain, and a block can be generally divided into a block header (header) and a block body (body). The block header generally includes a hash value (parent hash), a timestamp, and other information of a previous block, and the block body includes information corresponding to the block itself, and the entire blockchain system may include the following technical features:
(1) Point-to-point transmission: all nodes in the blockchain are connected together through a point-to-point network in which all nodes are peer-to-peer, sharing part of the computing resources and communicating information through a specific software protocol, unlike the centralized network model.
(2) And (3) distributed data storage: as a distributed ledger, all participating nodes in the blockchain system may contain a complete copy of the ledger information for the blockchain, and whether the information of one ledger is tampered or not may be compared with the ledger copy information of other nodes by comparison.
(3) Consensus mechanism: all the block link points maintain their own block account book and can collect transaction information newly generated in the block chain in a period of time and store the transaction information in their own block account book, if all the nodes in the whole network keep the block information added in the period of time consistent and verified and approved by all the nodes together, the process of determining the block of the stored block information to be verified and approved by all the nodes is called as a consensus mechanism, which is achieved by a distributed consensus algorithm.
For example, in the current stage of companies such as power grids, water conservancy and the like, cloud edge cooperative architecture is adopted, and the core idea is to deploy partial data processing, analysis and related services in a cloud layer to an edge layer close to a data source so as to reduce data processing time delay and relieve resource pressure of the cloud platform. Along with the deep advancement of national industrial Internet, internet plus action plans, cloud computing and big data strategy, various industries are accelerating the construction of intelligent Internet of things systems, and the interactive construction of massive edge sides and cloud ends is advanced. The cloud edge cooperative technology provides a solution to the problems, and the core idea is to deploy partial data processing, analysis and related application programs into an edge layer close to a data source so as to reduce data processing time delay and relieve resource pressure of a cloud platform. The blockchain is an emerging technology, has the characteristics of decentralization, time sequence data, collective maintenance, programmability, safety, credibility and the like, and is very suitable for scenes with high safety requirements such as transaction data consensus, transmission and the like. However, the existing blockchain deployed on the edge device has the problem of higher storage pressure of the edge device because the blockchain system generates a large amount of data when running.
In order to at least one of the above technical problems, the embodiments of the present invention provide a system, a method and an apparatus for implementing blockchain weight reduction based on a containerization technology, and the system, the method and the apparatus for implementing blockchain weight reduction based on a containerization technology provided by the embodiments of the present invention are described in further detail below with reference to the accompanying drawings and detailed description.
It should be noted that, the implementation subject of the system for implementing blockchain weight reduction based on the containerization technology in the embodiments of the present application is a device for implementing blockchain weight reduction based on the containerization technology, and the device for implementing blockchain weight reduction based on the containerization technology may be applied to any computer device, so that the computer device may implement the function of implementing blockchain weight reduction based on the containerization technology. The computer device may be a personal computer (Personal Computer, abbreviated as PC), a side device, a mobile device, a server, etc., and the mobile device may be a mobile phone, a tablet computer, a personal digital assistant, a wearable device, an in-vehicle device, etc. with various hardware devices including an operating system, a touch screen, and/or a display screen.
Fig. 1 is a schematic structural diagram of a system for implementing blockchain weight reduction based on a containerization technology according to an embodiment of the present invention, and as shown in fig. 1, the system for implementing blockchain weight reduction based on the containerization technology includes a cloud unit 10 and at least one edge unit 20. The cloud unit 10 includes a blockchain container deployment module 11, a mirror warehouse 12 and a cloud edge collaboration module 13, and the cloud unit 10 is in communication connection with the edge unit 20.
Specifically, the blockchain container deployment module 11 is coupled to the mirror repository 12. The blockchain container deployment module 11 is configured to clip some of the functions in the blockchain to generate a blockchain configuration file. The block chain configuration file only comprises signature information, communication information, intelligent contract information and consensus algorithm information. Thus, it will be appreciated that the blockchain container deployment module 11 only tailors functions other than signature functions, communication with cloud units, intelligent contract operating environment EVM, consensus algorithm functions.
The blockchain container deployment module 11 is further configured to package the base class library for the blockchain operation, the attribute information of each side unit 20, and the blockchain configuration file using a containerization technique, generate a blockchain container image, and send the blockchain container image to the image repository for storage. Wherein the attribute information of the edge unit 20 includes, but is not limited to, ID, name, model number, etc. information of the edge.
The embodiment of the invention does not limit the type of the container, and can be set according to actual needs. For convenience of description, the following description will be given by taking a container type as a Docker as an example. Wherein, dock is an open source application container engine, which allows the developer to package their applications and rely on packages into a portable image, then release them to any popular Linux or Windows machine, and also implement virtualization. The different containers share the bottom operating system and hardware resources, but the applications are isolated from each other, the performance cost is low, the cross-platform characteristic is good, the one-time compiling and the everywhere running are truly realized, and the portability of service application deployment is greatly improved.
Mirror store 12 is a store (or collection of stores) and mirror store 12 comprises a public container mirror store and a private container mirror store, with the private container mirror store being preferred for use with the present invention. The type of the mirror warehouse 12 may be selected according to circumstances, and is not particularly limited herein. In view of the safety aspect of the grid system, the mirror warehouse is preferably a Registry.
Similarly, the architecture of the blockchain container deployment module 11 may be selected according to circumstances, which is not limited herein, and in this embodiment, the blockchain container deployment module 11 is preferably a BaaS platform.
The cloud edge collaboration module 13 is connected with the mirror warehouse 12, and the cloud edge collaboration module 13 is configured to issue the blockchain container mirror image in the mirror warehouse 12 to at least one edge unit 20 and operate the same, so that the edge unit 20 searches other edge units according to the blockchain configuration file in the blockchain container mirror image, and commonly forms an edge side blockchain network.
Specifically, the cloud edge collaboration module 13 is configured to issue the blockchain container image in the image repository 12 to at least one edge unit 20 and operate the same, so that the edge unit 20 searches other edge units according to the blockchain configuration file in the blockchain container image, and forms an edge-side blockchain network with other edge units based on a consensus algorithm in the configuration file. Optionally, the cloud edge collaboration module 13 adopts a Kubernetes architecture.
In this embodiment, the blockchain container deployment module 11 of the cloud unit 10 is used to cut part of functions in the blockchain to generate a blockchain configuration file, and the base class library operated by the blockchain, attribute information of each side unit and the blockchain configuration file are packaged by adopting a containerization technology to generate a blockchain container mirror image, and then the blockchain container mirror image is sent to the mirror image warehouse 12 for storage, and the cloud-side collaboration module 13 is used to send the blockchain container mirror image in the mirror image warehouse 12 to at least one side unit 20 for operation, so that the storage pressure of the edge side unit 20 is reduced, and the lightweight arrangement of the edge side blockchain is realized.
Fig. 2 is a schematic structural diagram of another system for implementing blockchain weight reduction based on a containerization technology according to an embodiment of the present invention, and as shown in fig. 2, an edge unit 20 in the system for implementing blockchain weight reduction based on a containerization technology includes a data archiving module 21, a query module 22 and a data clipping service module 23.
Specifically, the data archiving module 21 is configured to archive the data stored in the side unit 20, and upload the data to the cloud unit 10 for storage. The querying module 22 is configured to query the data storage service usage of the border end unit 20 and send an activation instruction to the data clipping service module 23 when the data storage service usage reaches a predetermined threshold. The data clipping service module 23 clips out other types of data except for the state data stored in the edge unit 20 in response to the activation instruction transmitted from the inquiry module 22. Wherein the status data comprises block header data and transaction hash data. Other types of data include, but are not limited to, consensus logs, operation logs, block persistence data, and the like.
In this embodiment, the data stored in the side unit 20 is archived by the data archiving module 21 of the side unit 20 and uploaded to the cloud unit 10 for storage, and other types of data except the state data stored in the side unit 20 are cut out by the data cutting service module 23 in response to the activation instruction sent by the query module 22, so that the storage pressure of the side unit 20 can be further reduced.
The embodiment of the invention also provides a method for realizing the weight reduction of the blockchain based on the containerization technology, and fig. 3 is a flowchart of the method for realizing the weight reduction of the blockchain based on the containerization technology, as shown in fig. 3, the method for realizing the weight reduction of the blockchain based on the containerization technology comprises the following steps: s101, the cloud unit cuts out part of functions in the blockchain to obtain a blockchain configuration file. S102, the cloud unit adopts a containerization technology to pack the basic class library of the blockchain operation, the attribute information of each side unit and the blockchain configuration file, generates a blockchain container mirror image, and sends the blockchain container mirror image to a mirror image warehouse for storage. And S103, the cloud unit transmits the block chain container mirror image in the mirror image warehouse to at least one side unit and operates the side unit so that the side unit searches other side units according to the block chain configuration file in the block chain container mirror image and commonly forms an edge side block chain network.
In this embodiment, a cloud unit is used to cut part of functions in a blockchain to generate a blockchain configuration file, and a container technology is used to pack the attribute information of a base class library, each side unit and the blockchain configuration file of the blockchain operation to generate a blockchain container mirror image and store the mirror image, and the cloud unit issues the blockchain container mirror image in the mirror image warehouse to at least one side unit and operates, so that the storage pressure of the edge side unit is reduced, and the lightweight arrangement of the edge side blockchain is realized.
FIG. 4 is a flowchart of another method for implementing blockchain weight reduction based on a containerization technique according to an embodiment of the present invention, where, as shown in FIG. 4, the method for implementing blockchain weight reduction based on a containerization technique further includes: s201, each side unit files the stored data and uploads the data to the cloud unit for storage. S201, each side unit inquires the data storage service usage amount, and when the data storage service usage amount reaches a preset threshold value, other types of data except the state data stored by the side unit are cut off; wherein the status data comprises block header data and transaction hash data.
In this embodiment, since each side unit files the data stored in the side unit and uploads the data to the cloud unit for storage, each side unit queries the usage amount of the data storage service, and when the usage amount of the data storage service reaches a predetermined threshold, other types of data except the state data stored in the side unit are cut out, so that the storage pressure of the side unit at the edge can be further reduced.
According to embodiments of the present invention, there is also provided an electronic device, a readable storage medium and a computer program product.
Fig. 5 shows a schematic block diagram of an example electronic device 500 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the apparatus 500 includes a computing unit 501 that can perform various suitable actions and processes according to a computer program stored in a Read Only Memory (ROM) 502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, ROM 502, and RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Various components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, etc.; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508 such as a magnetic disk, an optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as a method for achieving blockchain lightweighting based on containerization techniques. For example, in some embodiments, the method for achieving blockchain lightweight based on containerization techniques may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM 503 and executed by computing unit 501, one or more steps of the method for achieving blockchain weight reduction based on containerization techniques described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured by any other suitable means (e.g., by means of firmware) to perform a method for achieving blockchain lightness based on containerization techniques.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present invention may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable 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. 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 portable 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 here can be implemented on a computer 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 pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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), and the internet.
Cloud computing (cloud computing) refers to a technical architecture that allows access to a shared physical or virtual resource pool that is elastically extensible through a network, where resources may include servers, operating systems, networks, software, applications, or storage devices, etc., and may be deployed and managed in an on-demand, self-service manner. Through cloud computing technology, high-efficiency and powerful data processing capability can be provided for technical application such as artificial intelligence and blockchain, and model training.
The computer system may include a client and a server. The client and server are typically 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 may be a cloud server, a server of a distributed system, or a server incorporating a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
It is to be understood that the above embodiments are merely illustrative of the application of the principles of the present invention, but not in limitation thereof. Various modifications and improvements may be made by those skilled in the art without departing from the spirit and substance of the invention, and are also considered to be within the scope of the invention.
Claims (10)
1. The system for realizing the block chain light weight based on the containerization technology is characterized by comprising a cloud end unit and at least one side end unit; the cloud unit comprises a blockchain container deployment module, a mirror warehouse and a cloud edge cooperative module; the cloud end unit is in communication connection with the side end unit;
the block chain container deployment module is connected with the mirror image warehouse; the block chain container deployment module is configured to cut part of functions in the block chain to generate a block chain configuration file;
the block chain container deployment module is further configured to pack a basic class library of block chain operation, attribute information of each side unit and a block chain configuration file by adopting a containerization technology, generate a block chain container mirror image, and send the block chain container mirror image to the mirror image warehouse for storage;
the cloud edge cooperative module is connected with the mirror image warehouse and is configured to issue the block chain container mirror image in the mirror image warehouse to at least one side unit and operate the side unit so that the side unit searches other side units according to the block chain configuration file in the block chain container mirror image and commonly recognizes the side unit to form an edge side block chain network;
the blockchain container deployment module only cuts functions except a signature function, a communication function with a cloud unit, an intelligent contract operating environment EVM and a consensus algorithm function.
2. The system for realizing blockchain weight reduction based on the containerization technology of claim 1, wherein the cloud edge collaboration module adopts a Kubernetes architecture.
3. The system for achieving blockchain lightweight based on containerization techniques of claim 1 wherein the mirrored repository is Registry.
4. The system for achieving blockchain lightweight based on containerization technology of claim 1, wherein the blockchain container deployment module is a BaaS platform.
5. The system for achieving blockchain lightweight based on containerization techniques of any of claims 1-4 wherein each of the side units includes a data archiving module, a query module, and a data clipping service module; wherein,
the data archiving module is configured to archive the data stored by the side unit and upload the data to the cloud unit for storage;
the inquiring module is configured to inquire the data storage service usage amount of the side unit, and when the data storage service usage amount reaches a preset threshold value, an activating instruction is sent to the data clipping service module;
the data clipping service module clips other types of data except the state data stored by the side unit in response to the activation instruction sent by the query module; wherein the status data comprises block header data and transaction hash data.
6. A method for implementing blockchain lightweight based on containerization technology, comprising:
the method is realized through a cloud unit, wherein the cloud unit comprises a blockchain container deployment module, a mirror image warehouse and a cloud edge cooperative module;
the block chain container deployment module cuts part of functions in the block chain to obtain a block chain configuration file;
the block chain container deployment module adopts a containerization technology to pack a basic class library operated by a block chain, attribute information of each side unit and a block chain configuration file, generates a block chain container mirror image, and sends the block chain container mirror image to the mirror image warehouse for storage;
the cloud edge cooperative module issues the block chain container mirror image in the mirror image warehouse to at least one side unit and operates the side unit so that the side unit searches other side units according to the block chain configuration file in the block chain container mirror image and commonly forms an edge side block chain network;
the blockchain container deployment module only cuts functions except a signature function, a communication function with a cloud unit, an intelligent contract operating environment EVM and a consensus algorithm function.
7. The method for achieving blockchain lightweight based on containerization techniques of claim 6, further comprising:
each side unit files the stored data and uploads the data to the cloud unit for storage;
each side unit inquires the data storage service usage amount, and when the data storage service usage amount reaches a preset threshold value, other types of data except the state data stored by the side unit are cut off; wherein the status data comprises block header data and transaction hash data.
8. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 6-7.
9. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 6-7.
10. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any of claims 6-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211058876.2A CN115550375B (en) | 2022-08-31 | 2022-08-31 | System, method and equipment for realizing block chain light weight based on containerization technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211058876.2A CN115550375B (en) | 2022-08-31 | 2022-08-31 | System, method and equipment for realizing block chain light weight based on containerization technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115550375A CN115550375A (en) | 2022-12-30 |
CN115550375B true CN115550375B (en) | 2024-03-15 |
Family
ID=84725829
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211058876.2A Active CN115550375B (en) | 2022-08-31 | 2022-08-31 | System, method and equipment for realizing block chain light weight based on containerization technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115550375B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965468A (en) * | 2018-08-16 | 2018-12-07 | 北京京东尚科信息技术有限公司 | Block chain network service platform and its chain code installation method, storage medium |
CN111324599A (en) * | 2020-01-20 | 2020-06-23 | 中国科学院计算技术研究所 | Block chain experiment system and management method |
CN111597043A (en) * | 2020-05-14 | 2020-08-28 | 行星算力(深圳)科技有限公司 | Method, device and system for calculating edge of whole scene |
CN111787116A (en) * | 2020-07-07 | 2020-10-16 | 上海道客网络科技有限公司 | System and method for trusted authentication of container mirror image based on block chain technology |
CN112698921A (en) * | 2021-01-08 | 2021-04-23 | 腾讯科技(深圳)有限公司 | Logic code operation method and device, computer equipment and storage medium |
CN113079159A (en) * | 2021-04-01 | 2021-07-06 | 北京邮电大学 | Edge computing network architecture based on block chain |
CN113169952A (en) * | 2018-09-29 | 2021-07-23 | 北京连云决科技有限公司 | Container cloud management system based on block chain technology |
CN113434254A (en) * | 2021-06-30 | 2021-09-24 | 深圳平安智汇企业信息管理有限公司 | Client deployment method, client deployment apparatus, computer device, and storage medium |
WO2021228102A1 (en) * | 2020-05-11 | 2021-11-18 | 厦门潭宏信息科技有限公司 | Method, device, and storage medium |
CN113742031A (en) * | 2021-08-27 | 2021-12-03 | 北京百度网讯科技有限公司 | Node state information acquisition method and device, electronic equipment and readable storage medium |
CN114116899A (en) * | 2021-11-19 | 2022-03-01 | 西安微电子技术研究所 | Block chain-based satellite cluster distributed data secure storage method |
CN114185566A (en) * | 2021-12-10 | 2022-03-15 | 招联消费金融有限公司 | Containerized deployment method, apparatus, computer device and storage medium |
CN114675934A (en) * | 2022-03-30 | 2022-06-28 | 蚂蚁区块链科技(上海)有限公司 | Method and system for deploying chain code in alliance chain |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11645632B2 (en) * | 2020-05-26 | 2023-05-09 | Derek Norman La Salle | System and method for a decentralized portable information container supporting privacy protected digital information credentialing, remote administration, local validation, access control and remote instruction signaling utilizing blockchain distributed ledger and container wallet technologies |
-
2022
- 2022-08-31 CN CN202211058876.2A patent/CN115550375B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108965468A (en) * | 2018-08-16 | 2018-12-07 | 北京京东尚科信息技术有限公司 | Block chain network service platform and its chain code installation method, storage medium |
CN113169952A (en) * | 2018-09-29 | 2021-07-23 | 北京连云决科技有限公司 | Container cloud management system based on block chain technology |
CN111324599A (en) * | 2020-01-20 | 2020-06-23 | 中国科学院计算技术研究所 | Block chain experiment system and management method |
WO2021228102A1 (en) * | 2020-05-11 | 2021-11-18 | 厦门潭宏信息科技有限公司 | Method, device, and storage medium |
CN111597043A (en) * | 2020-05-14 | 2020-08-28 | 行星算力(深圳)科技有限公司 | Method, device and system for calculating edge of whole scene |
CN111787116A (en) * | 2020-07-07 | 2020-10-16 | 上海道客网络科技有限公司 | System and method for trusted authentication of container mirror image based on block chain technology |
CN112698921A (en) * | 2021-01-08 | 2021-04-23 | 腾讯科技(深圳)有限公司 | Logic code operation method and device, computer equipment and storage medium |
CN113079159A (en) * | 2021-04-01 | 2021-07-06 | 北京邮电大学 | Edge computing network architecture based on block chain |
CN113434254A (en) * | 2021-06-30 | 2021-09-24 | 深圳平安智汇企业信息管理有限公司 | Client deployment method, client deployment apparatus, computer device, and storage medium |
CN113742031A (en) * | 2021-08-27 | 2021-12-03 | 北京百度网讯科技有限公司 | Node state information acquisition method and device, electronic equipment and readable storage medium |
CN114116899A (en) * | 2021-11-19 | 2022-03-01 | 西安微电子技术研究所 | Block chain-based satellite cluster distributed data secure storage method |
CN114185566A (en) * | 2021-12-10 | 2022-03-15 | 招联消费金融有限公司 | Containerized deployment method, apparatus, computer device and storage medium |
CN114675934A (en) * | 2022-03-30 | 2022-06-28 | 蚂蚁区块链科技(上海)有限公司 | Method and system for deploying chain code in alliance chain |
Non-Patent Citations (3)
Title |
---|
Yuzhou Huang,Kaiyu cai,Ran Zong,Yugang Mao.Design and implementation of an edge computing platform architecture using Docker and Kubernetes for machine learning.《ACM 》.2019,全文. * |
云边协同关键技术及应用场景研究;杨绍光;房秉毅;王增森;郭澄宇;曲秀超;;信息通信技术;20200815(04);全文 * |
数字经济环境下的私有云平台设计探讨;张晓龙;;智能物联技术;20180918(02);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN115550375A (en) | 2022-12-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20140082136A1 (en) | Method and system for transmission of application status between different devices | |
CN104584563A (en) | Online collaborative suite | |
CN112905537B (en) | File processing method and device, electronic equipment and storage medium | |
US20230153141A1 (en) | Cloud cost-based resource development system and method | |
CN113961311A (en) | Service data processing method, device, electronic equipment and medium | |
CN113656423A (en) | Method and device for updating data, electronic equipment and storage medium | |
CN113656198B (en) | Copying and pasting method and device from client to cloud mobile phone | |
KR20220091441A (en) | Data synchronization method and device, electronic device, storage media, and computer program | |
CN115550375B (en) | System, method and equipment for realizing block chain light weight based on containerization technology | |
CN115934076B (en) | Cross-platform client micro-service providing device and method and electronic equipment | |
US20160070609A1 (en) | Automatically generating efficient remote procedure call (rpc) code for heterogeneous systems | |
CN112783447A (en) | Method, apparatus, device, medium, and article of manufacture for processing snapshots | |
US10999393B2 (en) | Cloud broker for connecting with enterprise applications | |
US20140359463A1 (en) | Data templates for default data in data binding | |
EP4102361A2 (en) | Method and apparatus for managing functions of a query engine | |
CN114884880B (en) | Data transmission method and system | |
CN113326038B (en) | Method, apparatus, device, storage medium and program product for providing service | |
US20220405203A1 (en) | Method and apparatus for ingesting data, device and storage medium | |
CN113760487B (en) | Service processing method and device | |
KR20220026603A (en) | File handling methods, devices, electronic devices and storage media | |
CN114327271B (en) | Lifecycle management method, apparatus, device and storage medium | |
CN113656144B (en) | Data release system, method and device, electronic equipment and storage medium | |
CN115563183B (en) | Query method, query device and program product | |
CN111258954B (en) | Data migration method, device, equipment and storage medium | |
CN113556402B (en) | Data downloading scheduling method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |