CN109933338A - Block chain dispositions method, device, computer equipment and storage medium - Google Patents

Block chain dispositions method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN109933338A
CN109933338A CN201910087407.5A CN201910087407A CN109933338A CN 109933338 A CN109933338 A CN 109933338A CN 201910087407 A CN201910087407 A CN 201910087407A CN 109933338 A CN109933338 A CN 109933338A
Authority
CN
China
Prior art keywords
block chain
installation kit
component
chain component
configuration file
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.)
Granted
Application number
CN201910087407.5A
Other languages
Chinese (zh)
Other versions
CN109933338B (en
Inventor
田中宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Number Chain Technology Co Ltd
Original Assignee
Zhejiang Number Chain Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Number Chain Technology Co Ltd filed Critical Zhejiang Number Chain Technology Co Ltd
Priority to CN201910087407.5A priority Critical patent/CN109933338B/en
Publication of CN109933338A publication Critical patent/CN109933338A/en
Application granted granted Critical
Publication of CN109933338B publication Critical patent/CN109933338B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

This application involves a kind of block chain dispositions method, device, computer equipment and storage mediums.The described method includes: obtaining the configuration file of each block chain component in multiple block chain components;The configuration file of block chain component each in multiple block chain components is combined into modular installation kit;Block chain is disposed in a reservoir according to modular installation kit.Block chain deployment efficiency can be improved using the scheme of the application.

Description

Block chain dispositions method, device, computer equipment and storage medium
Technical field
This application involves field of computer technology, more particularly to a kind of block chain dispositions method, device, computer equipment And storage medium.
Background technique
With the development of computer technology, there is block chain technology.According to the type of block chain substantially divide publicly-owned chain, Privately owned chain and alliance's chain.Wherein, publicly-owned chain is opened to the outside world completely, and privately owned chain is only for enterprises use without opening to the outside world, connection Alliance's chain has permission open to few members.Block chain no matter what type, traditional block chain deployment way are mainly adopted The method of extracting container singly installs various components.However, current block chain deployment way treatment effeciency is low.
Summary of the invention
Based on this, it is necessary to which, for the low problem of the treatment effeciency of block chain deployment way, providing one kind can be improved area Block chain dispositions method, device, computer equipment and the computer storage medium of block chain deployment efficiency.
A kind of block chain dispositions method, which comprises obtain each block chain component in multiple block chain components Configuration file;The configuration file of block chain component each in multiple block chain components is combined into modular installation kit;According to Modular installation kit disposes block chain in a reservoir.
Block chain is disposed according to modular installation kit in a reservoir in one of the embodiments, comprising: work as installation kit In a block chain component Profile Up success when, operation with block chain component have dependence block chain component Configuration file;It is complete in a reservoir when the configuration file of block chain component each in multiple block chain components, which is run, to be finished It is disposed at block chain.
In one of the embodiments, when the success of the Profile Up of the block chain component in installation kit, operation There is the configuration file of the block chain component of dependence with block chain component, comprising: obtain each block according to dependence The operation of the configuration file of the configuration file of chain component and the block chain component with each block chain component with dependence is suitable Sequence;When the success of the Profile Up of the block chain component in installation kit, run and block chain component in running order The configuration file of block chain component with dependence.
Block chain dispositions method in one of the embodiments, further include: block is generated according to modular installation kit The deployment train of chain;Obtain back-off instruction or destruction operation instruction;It is retracted according to back-off instruction corresponding to modular installation kit Deployment train;Alternatively, according to destruction operation instruction revocation to the corresponding deployment train of modular installation kit.
Block chain dispositions method in one of the embodiments, further include: in the deployment of all block chains of terminal display The colophon of version;It is retracted deployment train corresponding to modular installation kit according to back-off instruction, comprising: referred to according to rollback Enable the deployment train to retract to the corresponding block chain of back-off instruction.
Block chain dispositions method in one of the embodiments, further include: block is generated according to modular installation kit The deployment train of chain;Obtain revocation version command;The corresponding deployment version of modular installation kit is cancelled according to revocation version command This.
Block chain dispositions method in one of the embodiments, further includes: obtain the corresponding public affairs of multiple block chain components Parameter File altogether;Obtain metadata information file;It combines the configuration file of block chain component each in multiple block chain components At modular installation kit, comprising: by the common parameter file of block chain component, metadata information file and multiple block chain groups The configuration file of each block chain component is saved into same file folder in part, and is combined into modular installation kit.
A kind of block chain deployment device, described device includes: acquisition module, each in multiple block chain components for obtaining The configuration file of block chain component;Composite module, for by the configuration file of block chain component each in multiple block chain components It is combined into modular installation kit;Deployment module, for disposing block chain in a reservoir according to modular installation kit.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing Device performs the steps of the configuration text for obtaining each block chain component in multiple block chain components when executing the computer program Part;The configuration file of block chain component each in multiple block chain components is combined into modular installation kit;According to modularization Installation kit dispose block chain in a reservoir.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The configuration file for obtaining each block chain component in multiple block chain components is performed the steps of when row;By multiple block chain groups The configuration file of each block chain component is combined into modular installation kit in part;According to modular installation kit portion in a reservoir Affix one's name to block chain.
Above-mentioned block chain dispositions method, device, computer equipment and storage medium, by the configuration for obtaining block chain component File, and it is combined into modular installation kit, block chain is disposed according to modular installation kit in a reservoir, can be adopted in a reservoir Block chain is disposed with modular mode, and can disposably install multiple components, block chain is improved and disposes efficiency.
Detailed description of the invention
Fig. 1 is the applied environment figure of block chain dispositions method in one embodiment;
Fig. 2 is the flow diagram of block chain dispositions method in one embodiment;
Fig. 3 is the configuration diagram of Kubernetes package manager in one embodiment;
Fig. 4 is the flow diagram of block chain dispositions method in another embodiment;
Fig. 5 is the structural block diagram that block chain disposes device in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
The block chain dispositions method provided in the embodiment of the present application, can be applied in application environment as shown in Figure 1.Its In, terminal 102 is communicated by network with server 104, carries same system in server 104 and server 106.Its In, terminal 102 can be, but not limited to be various personal computers, laptop, smart phone, tablet computer and it is portable can Wearable device, server 104 and server 106 can use the server of the either multiple server compositions of independent server Cluster is realized.
In one embodiment, as shown in Fig. 2, providing a kind of block chain dispositions method, it is applied in Fig. 1 in this way Server 104 for be illustrated, comprising the following steps:
Step 202, the configuration file of each block chain component in multiple block chain components is obtained.
Wherein, component is the simplified package to data and method.Block chain component refers to the component of composition block chain.Block Chain component includes Zookeeper (distributed coordination service) component, Kafka (distributed message service) component, (area Orderer Block chain is known together node) component and Peer (block chain node) component.The configuration file of block chain component refers to for configuring block The file of chain component.Each block chain component has a configuration file, such as can be yaml (YAML Ain't Markup Language, another markup language) file.
Zookeeper component is mainly a Distributed Services coordinating frame, it can be achieved that synchronous service, configuring maintenance and life Name service distributed application.The yaml file configuration of Zookeeper has mainly arranged the port information in cluster.
Kafka component is used to support the data transmitting of mass data, can be by message duration into disk, and creates for message Build backup file.Orderer component can provide sequence service in a network.By taking super account book as an example, Peer component both possessed Account book also possesses chain code.Since account book and chain code are in Peer component, terminal can pass through Peer component accesses resource.
Specifically, each block chain component has a configuration file.Configuration file can configure completion at the terminal.Service Device obtains the configuration file of each block chain component in multiple block chain components from terminal.
In the present embodiment, block chain component can also include CouchDB (Cluster Of Unreliable Commodity Hardware, distributed data base) component, CLI (Command-line interface, command-line tool) group One of part and CA (Certificate Authority, authorization identifying) component are a variety of.Wherein, CouchDB (Cluster Of Unreliable Commodity Hardware, distributed data base) component is for storing data.
Step 204, the configuration file of block chain component each in multiple block chain components is combined into modular installation Packet.
Wherein, modularization refers to the top-down mistake for successively system being divided into several modules when one challenge of solution Journey.Each module completes a specific subfunction, and all modules are assembled by some way, become an entirety, complete At function required by whole system.Modular installation kit refers to according to installation kit made of module assembled one by one.
Specifically, server can be by the command-line tool that package manager provides by each block in multiple block chain components The configuration file of chain component and the corresponding same common parameter file of multiple block chain components are saved to same file and are pressed from both sides In, and it is combined into modular installation kit.
Step 206, block chain is disposed according to modular installation kit in a reservoir.
Wherein, container (Container) is will can be then published on any Linux machine using being transplanted in container, It may be implemented to virtualize.It is mutually isolated between each container, each container has the file system of oneself, and process will not between container It influences each other, computing resource can be distinguished.Relative to virtual machine, container energy rapid deployment, due to container and bottom facilities, machine text Part system decoupling, so it can be migrated between different clouds, different editions operating system.Container can also refer to Kubernetes and Docker etc..Wherein Kubernetes abbreviation K8s is one for managing in cloud platform in multiple main frames The application of containerization.The major responsibility of K8s is container layout (Container Orchestration), i.e., in one group of server Upper starting, monitoring or returnable.
Specifically, server disposes block according to the modular installation kit that multiple configuration files are combined into a reservoir Chain.
In the present embodiment, server disposes block chain according to modular installation kit in Kubernetes.Specifically, it takes Device be engaged in by Kubernetes package manager Client command row submission installation kit to Kubernetes cluster, and Block chain is disposed in Kubernetes cluster.Wherein, Kubernetes usually disposes block chain in a manner of cluster comprising extremely A few host node and multiple working nodes.Each node can be the physical server or void of operation Kubernetes platform Quasi- machine etc..Host node provides the unique perspective of cluster, and possesses a series of components, provides external application programming interfaces.
In above-mentioned block chain dispositions method, by obtaining the configuration file of block chain component, and it is combined into modular peace Dress packet, disposes block chain according to modular installation kit in a reservoir, can dispose block using modular mode in a reservoir Chain, and multiple components can be disposably installed, it improves block chain and disposes efficiency.
In one embodiment, as shown in figure 3, being the architecture diagram of Kubernetes package manager in one embodiment.Its In include Zookeeper component, Kafka component, Orderer component, Peer component, CouchDB component, CLI component and CA group Part etc..There are three important concepts for Kubernetes package manager: (1) Chart: defining one kind can be deployed in The upper software package format of Kubernetes.One Chart is contained and can be described one of Kubernetes related resource and match Set file.(2) Config: the configuration information for storing software comes together to create Release with Chart.(3) Release: It is that one of Chart runs the example.
Kubernetes package manager is made of two important functional units: package manager client and package manager clothes Business end.Wherein, packet management client is the command-line tool used to terminal user, is mainly used to: exploitation is local Chart, the management warehouse Chart and package manager server-side interact.Packet management server end is mounted to Kubernetes collection In group, on the one hand it receives the request that package manager client is sent, and on the other hand carries out with Kubernetes API SERVER Interaction, including response package manager client request, combination Chart and Config create Release, are installed to Chart In Kubernetes and keep track state, upgrading, the mounted Chart of unloading.Peer0 indicate the 1st block chain node or 0th block chain node, PeerN indicate n-th block chain node or the N+1 block chain node.Orderer0 indicates the 1st Block chain common recognition node or the 0th block chain common recognition node, OrdererM indicate the M+1 block chain common recognition node or m-th Block chain common recognition node.
Pod (Plain old data structure) is the most basic operating unit of Kubernetes, comprising one or Multiple containers being closely related, a Pod can be regarded as " the logic host " of application layer by the environment of a containerization.It is same It only needs to communicate with each other by localhost (host name) between container in a Pod.Service refers to service, can also be by The Outside Access interface of the Pod of one group of offer same services is provided as.(Persistent Volume Claim, persistently rolls up Shen to PVC It is please) the inner resource of Namespace (NameSpace), describes the request to PV.PV (Persistent Volume, persistence Volume) to represent one piece of storage region solicited message in cluster include storage size, access module etc..The life cycle of PV is independent PV is not influenced in Pod, such as when the Pod destruction using PV.NFS (Network File System) i.e. network file System is one of file system, it allows to pass through network shared resource between the computer in network.
In above-mentioned block chain dispositions method, by obtaining the configuration file of block chain component, and it is combined into modular peace Dress packet, disposes block chain according to modular installation kit in a reservoir, can dispose deployment using modular mode in a reservoir As Fig. 3 architecture diagram in block chain, improve block chain dispose efficiency.
In one embodiment, block chain is disposed according to modular installation kit in a reservoir, comprising: when in installation kit When the Profile Up success of one block chain component, matching for the block chain component that there is dependence with block chain component is run Set file;When the configuration file of block chain component each in multiple block chain components, which is run, to be finished, area is completed in a reservoir The deployment of block chain.
Wherein, dependence refers to the connection between class and class, indicates that a class depends on the definition of another class, according to Bad relationship is unidirectional.It is simple to understand be exactly that class A has used class B, it is this to rely on contingency and provisional.But class B Variation influence whether class A.Block chain component with dependence is also block chain component, can refer to Kafka component according to Rely Zookeeper component, Orderer component relies on Kafka component, and Peer component relies on Orderer component.
Specifically, when the success of the Profile Up of a certain block chain component in installation kit, server runs and should Block chain component has the configuration file of the block chain component of dependence.When each block chain component in multiple block chains Configuration file is run when finishing, and is determined and is completed the deployment of block chain in a reservoir.For example, as the Zookeeper in installation kit When assembly operating success, the Kafka component of server operation and Zookeeper component with dependence.When Kafka component is transported When going successfully, server operation has the Orderer component of dependence with Kafka component.When the success of Orderer assembly operating When, server operation has the Peer component of dependence with Orderer component.When Zookeeper component, Kafka component, Orderer component and Peer component are run when finishing, it is determined that server completes the deployment of block chain in a reservoir.
In the present embodiment, multiple block chain component can also include in CouchDB component, CLI component and CA component It is one or more.Then when the configuration of the configuration file of Zookeeper component, the configuration file of Kafka component, Orderer component The configuration file and CA component of the configuration file of the configuration file and CouchDB component of file and Peer component, CLI component One of configuration file or the configuration file of multiple assembly run when finishing, server completes block chain in a reservoir Deployment.
In above-mentioned block chain dispositions method, when the block chain component in modular installation kit Profile Up at Function, then operation has the block chain component of dependence, when having run the configuration file of all components, completes the deployment of block chain, The deployment of block chain can be carried out automatically according to dependence, improved block chain and disposed efficiency.
In one embodiment, when the success of the Profile Up of the block chain component in installation kit, operation and area Block chain component has the configuration file of the block chain component of dependence, comprising: obtains each block chain group according to dependence The operation order of the configuration file of the configuration file of part and the block chain component with each block chain component with dependence;When A block chain component in installation kit Profile Up success when, in running order operation with block chain component have according to The configuration file of the block chain component for the relationship of relying.
Specifically, server obtains the configuration text of each block chain component according to the dependence between block chain component Part, and with the block chain component have dependence block chain component configuration file operation order.When in installation kit Some block chain component Profile Up success when, server run in running order with the block chain component tool There is the configuration file of the block chain component of dependence.
In above-mentioned block chain dispositions method, according to dependence obtain each block chain component configuration file and have according to The operation order of the configuration file for the relationship of relying, it is suitable according to running when the block chain Profile Up success in installation kit Sort run has the configuration file of the block chain component of dependence, can carry out block chain deployment in running order automatically, It improves block chain and disposes efficiency.
In one embodiment, block chain dispositions method further include: block chain is generated according to modular installation kit Deployment train;Obtain back-off instruction or destruction operation instruction;It is retracted portion corresponding to modular installation kit according to back-off instruction Affix one's name to version;Alternatively, according to destruction operation instruction revocation to the corresponding deployment train of modular installation kit.
Wherein, the deployment train of block chain refers to server one modular installation kit of every acquisition, will generate one The deployment train of block chain.It retracts and refers to a version change or edit to the movement of a Versions.Rollback operation refers to In some condition, as a period of time limitation under, the operation of revocation last time or sequence of operations, and return one it is previously known State.Destruction operation instruction refers to the instruction for cancelling previous operation.
Specifically, server generates the deployment train of block chain according to modular installation kit.When server is obtained from terminal When getting back-off instruction, retracted by Kubernetes package manager order line to modular installation kit pair according to back-off instruction The deployment train answered.Server can return back to the corresponding upper deployment train of modular installation kit according to back-off instruction, It can retract without being limited thereto to the corresponding installation kit deployment train of back-off instruction etc..When server gets destruction operation from terminal When instruction, instructed according to destruction operation cancelled by Kubernetes package manager order line it is corresponding to modular installation kit Deployment train.
In above-mentioned block chain dispositions method, the deployment train of block chain can be generated according to modular installation kit, is obtained back Instruction or destruction operation instruction are moved back, can be retracted according to back-off instruction to the deployment version of the corresponding block chain of modular installation kit This, can cancel to the deployment train of the corresponding block chain of modular installation kit according to destruction operation instruction, can disposably retract Or cancel to the deployment train of the entirely corresponding block chain of modular installation kit, rather than block chain component carries out version one by one Rollback or destruction operation, improve the rollback of the deployment train of block chain and the efficiency of destruction operation.
In one embodiment, block chain dispositions method further include: in the deployment train of all block chains of terminal display Colophon;It is retracted deployment train corresponding to modular installation kit according to back-off instruction, comprising: returned according to back-off instruction Retreat to the deployment train of the corresponding block chain of back-off instruction.
Specifically, server is remembered in the version of the deployment train of the corresponding all block chains of terminal display modularization installation kit Record.Terminal can be recorded by the inquiry of command line of Kubernetes package manager to all Release listing versions.When rollback refers to When carrying specified version in order, after server obtains back-off instruction, Kubernetes package manager is passed through according to back-off instruction Order line retracts to the deployment train of the corresponding block chain of the back-off instruction.
In above-mentioned block chain dispositions method, in the colophon of the deployment train of all block chains of terminal display, according to returning It moves back instruction to retract to the deployment train of the corresponding block chain of back-off instruction, can more show the portion of block chain comprehensively and intuitively History is affixed one's name to, and the deployment train of the specified block chain of back-off instruction can be return back to, improves returning for the deployment train of block chain Move back efficiency.
In one embodiment, block chain dispositions method further include: block chain is generated according to modular installation kit Deployment train;Obtain revocation version command;The corresponding deployment train of modular installation kit is cancelled according to revocation version command.
Wherein, revocation version command refers to deletion version command.
Specifically, server generates the deployment train of block chain according to modular installation kit.Server gets revocation Version command cancels the corresponding deployment train of modular installation kit according to revocation version command.
In above-mentioned block chain dispositions method, the deployment train of block chain can be generated according to modular installation kit, acquisition is removed Pin instruction disposably cancels the deployment train of the corresponding block chain of entire modular installation kit according to cancel an order, rather than Block chain component carries out the revocation of version one by one, improves the revocation efficiency of the deployment train of block chain.
In one embodiment, block chain dispositions method, further includes: obtain the corresponding public ginseng of multiple block chain components Number file;Obtain metadata information file;The configuration file of block chain component each in multiple block chain components is combined into mould The installation kit of block, comprising: will be in the common parameter file of block chain component, metadata information file and multiple block chain components The configuration file of each block chain component is saved into same file folder, and is combined into modular installation kit.
Wherein, common parameter file is the file of a common parameter that can configure multiple block chain components, such as Values.yaml file.Metadata (Metadata), also known as broker data, relaying data, for the data (data for describing data About data), the information of data attribute (property) is mainly described, for supporting as indicated storage location, history number According to, functions such as resource lookup, file record.Metadata information file can be Chart.yaml file.
Specifically, terminal is according to the grammer configuration common parameter file of package manager, metadata information file and each group The corresponding configuration file of the parameter of part, for example, Zookeeper component, Kafka component, Orderer component, CouchDB component, Peer component, CLI component and CA component.Wherein, certain components need to be arranged additional parameter or tuning refine after parameter with Operation under operation under adapted receptacles environment, such as adaptation Kubernetes environment.Server obtains configured good parameter The corresponding same common parameter file of multiple block chain components.Server obtains metadata information file.Server is by block The configuration file of each block chain component in the common parameter file of chain component, metadata information file and multiple block chain components It saves into same file folder, and is combined into modular installation kit.
In above-mentioned block chain dispositions method, the corresponding common parameter file of multiple components and metadata information file are obtained, The configuration file of the common parameter file of block chain component, metadata information file and each block chain component is saved to same In file, it is combined into modular installation kit, block chain can be disposed, and can show the corresponding member of the installation kit according to installation kit Data information.
In one embodiment, block chain dispositions method, as shown in Figure 4, comprising the following steps:
Step 402, the corresponding common parameter file of multiple block chain components is obtained.
Step 404, metadata information file is obtained.
It step 406, will be every in the common parameter file of block chain component, metadata information file and multiple block chain components The configuration file of a block chain component is saved into same file folder, and is combined into modular installation kit.
Step 408, the configuration file of each block chain component is obtained according to dependence and have with each block chain component There is the operation order of the configuration file of the block chain component of dependence;
Step 410, it when the success of the Profile Up of the block chain component in installation kit, runs in running order There is the configuration file of the block chain component of dependence with block chain component.
Step 412, when the configuration file of block chain component each in multiple block chain components, which is run, to be finished, in container Middle completion block chain deployment.
Step 414, in the colophon of the deployment train of all block chains of terminal display.
Step 416, back-off instruction is obtained.
Step 418, it is retracted according to back-off instruction to the deployment train of the corresponding block chain of back-off instruction.
In above-mentioned block chain dispositions method, by obtaining the configuration file of block chain component, and it is combined into modular peace Dress packet, disposes block chain according to modular installation kit in a reservoir, can dispose block using modular mode in a reservoir Chain, and multiple components can be disposably installed in sequence, the deployment history of block chain can be more shown comprehensively and intuitively, And it can be return back to the deployment train of the specified block chain of back-off instruction, block chain is improved and dispose efficiency.
It should be understood that although each step in the flow chart of Fig. 2 and Fig. 4 is successively shown according to the instruction of arrow, But these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these There is no stringent sequences to limit for the execution of step, these steps can execute in other order.Moreover, in Fig. 2 and Fig. 4 At least part step may include that perhaps these sub-steps of multiple stages or stage are not necessarily same to multiple sub-steps One moment executed completion, but can execute at different times, and the execution in these sub-steps or stage sequence is also not necessarily Be successively carry out, but can at least part of the sub-step or stage of other steps or other steps in turn or Alternately execute.
In one embodiment, as shown in figure 5, providing a kind of block chain deployment device, comprising: obtain module 502, group Mold block 504 and deployment module 506, in which:
Module 502 is obtained, for obtaining the configuration file of each block chain component in multiple block chain components.
Composite module 504, for the configuration file of block chain component each in multiple block chain components to be combined into module The installation kit of change.
Deployment module 506, for disposing block chain in a reservoir according to modular installation kit.
In above-mentioned block chain deployment device, by obtaining the configuration file of block chain component, and it is combined into modular peace Dress packet, disposes block chain according to modular installation kit in a reservoir, can dispose block using modular mode in a reservoir Chain, and multiple components can be disposably installed, it improves block chain and disposes efficiency.
In one embodiment, deployment module 506 is used for the Profile Up when the block chain component in installation kit When success, operation has the configuration file of the block chain component of dependence with block chain component;When in multiple block chain components The configuration file of each block chain component is run when finishing, and completes the deployment of block chain in a reservoir.
In above-mentioned block chain deployment device, when the block chain component in modular installation kit Profile Up at Function, then operation has the block chain component of dependence, when having run the configuration file of all components, completes the deployment of block chain, The deployment of block chain can be carried out automatically according to dependence, improved block chain and disposed efficiency.
In one embodiment, deployment module 506 is also used to obtain the configuration of each block chain component according to dependence The operation order of the configuration file of file and the block chain component with each block chain component with dependence;When in installation kit A block chain component Profile Up success when, run has dependence with block chain component in running order The configuration file of block chain component.
In above-mentioned block chain deployment device, according to dependence obtain the configuration file of each block chain component and have according to The operation order of the configuration file for the relationship of relying, it is suitable according to running when the block chain Profile Up success in installation kit Sort run has the configuration file of the block chain component of dependence, can carry out block chain deployment in running order automatically, It improves block chain and disposes efficiency.
In one embodiment, block chain deployment device further includes generation module, and generation module is used for according to modularization Installation kit generate block chain deployment train.Obtain module 502 for obtain back-off instruction or destruction operation instruction, according to return Instruction is moved back to retract to the corresponding deployment train of modular installation kit.Module 502 is obtained to be also used to be removed according to destruction operation instruction It sells to the corresponding deployment train of modular installation kit.
In above-mentioned block chain deployment device, the deployment train of block chain can be generated according to modular installation kit, is obtained back Instruction or destruction operation instruction are moved back, can be retracted according to back-off instruction to the deployment version of the corresponding block chain of modular installation kit This, can cancel to the deployment train of the corresponding block chain of modular installation kit according to destruction operation instruction, can disposably retract Or cancel to the deployment train of the entirely corresponding block chain of modular installation kit, rather than block chain component carries out version one by one Rollback or destruction operation, improve the rollback and destruction operation efficiency of the deployment train of block chain.
In one embodiment, block chain deployment device further includes display module, and wherein display module is used in terminal Show the colophon of the deployment train of all block chains.Module 502 is obtained for retracting according to back-off instruction to back-off instruction The deployment train of corresponding block chain.
In above-mentioned block chain deployment device, in the colophon of the deployment train of all block chains of terminal display, according to returning It moves back instruction to retract to the deployment train of the corresponding block chain of back-off instruction, can more show the portion of block chain comprehensively and intuitively History is affixed one's name to, and the deployment train of the specified block chain of back-off instruction can be return back to, improves returning for the deployment train of block chain Move back efficiency.
In one embodiment, block chain deployment device further includes generation module.Wherein, generation module is used for according to mould The installation kit of block generates the deployment train of block chain.Module 502 is obtained for obtaining revocation version command, according to revocation version Instruction cancels the corresponding deployment train of modular installation kit.
In above-mentioned block chain deployment device, the deployment train of block chain can be generated according to modular installation kit, acquisition is removed Pin instruction disposably cancels the deployment train of the corresponding block chain of entire modular installation kit according to cancel an order, rather than Block chain component carries out the revocation of version one by one, improves the revocation efficiency of the deployment train of block chain.
In one embodiment, it obtains module 502 and is also used to obtain the corresponding common parameter file of multiple block chain components, Obtain metadata information file.Assembling module 504 is also used to the common parameter file of block chain component, metadata information file It saves with the configuration file of block chain component each in multiple block chain components into same file folder, and is combined into modular Installation kit.
In above-mentioned block chain deployment device, the corresponding common parameter file of multiple components and metadata information file are obtained, The configuration file of the common parameter file of block chain component, metadata information file and each block chain component is saved to same In file, it is combined into modular installation kit, block chain can be disposed, and can show the corresponding member of the installation kit according to installation kit Data information.
Specific about block chain deployment device limits the restriction that may refer to that device is disposed above for block chain, This is repeated no more.Modules in above-mentioned block chain deployment device can come fully or partially through software, hardware and combinations thereof It realizes.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with software Form is stored in the memory in computer equipment, executes the corresponding operation of the above modules in order to which processor calls.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 6.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment disposes data for memory block chain.The network interface of the computer equipment is used for logical with external terminal Cross network connection communication.To realize a kind of block chain dispositions method when the computer program is executed by processor.
It will be understood by those skilled in the art that structure shown in Fig. 6, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, which performs the steps of when executing computer program obtains each block in multiple block chain components The configuration file of chain component;The configuration file of block chain component each in multiple block chain components is combined into modular installation Packet;Block chain is disposed in a reservoir according to modular installation kit.
In one embodiment, it also performs the steps of when processor executes computer program when mono- area installation kit Zhong When the Profile Up success of block chain component, operation has the configuration text of the block chain component of dependence with block chain component Part;When the configuration file of block chain component each in multiple block chain components, which is run, to be finished, block chain is completed in a reservoir Deployment.
In one embodiment, it also performs the steps of when processor executes computer program and is obtained according to dependence The configuration file of the configuration file of each block chain component and the block chain component with each block chain component with dependence Operation order;When the block chain component in installation kit Profile Up success when, in running order operation and area Block chain component has the configuration file of the block chain component of dependence.
In one embodiment, it also performs the steps of when processor executes computer program according to modular installation Packet generates the deployment train of block chain;Obtain back-off instruction or destruction operation instruction;It is retracted according to back-off instruction to modular The corresponding deployment train of installation kit;Alternatively, according to destruction operation instruction revocation to the corresponding deployment train of modular installation kit.
In one embodiment, it also performs the steps of when processor executes computer program in all areas of terminal display The colophon of the deployment train of block chain;It is retracted according to back-off instruction to the deployment train of the corresponding block chain of back-off instruction.
In one embodiment, it also performs the steps of when processor executes computer program according to modular installation Packet generates the deployment train of block chain;Obtain revocation version command;Modular installation kit pair is cancelled according to revocation version command The deployment train answered.
In one embodiment, it is also performed the steps of when processor executes computer program and obtains multiple block chain groups The corresponding common parameter file of part;Obtain metadata information file;By common parameter file, the metadata information of block chain component The configuration file of each block chain component is saved into same file folder in file and multiple block chain components, and is combined into module The installation kit of change.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of the configuration text for obtaining each block chain component in multiple block chain components when being executed by processor Part;The configuration file of block chain component each in multiple block chain components is combined into modular installation kit;According to modularization Installation kit dispose block chain in a reservoir.
In one embodiment, it also performs the steps of when computer program is executed by processor as one in installation kit When the Profile Up success of block chain component, operation has the configuration of the block chain component of dependence with block chain component File;When the configuration file of block chain component each in multiple block chain components, which is run, to be finished, block is completed in a reservoir Chain deployment.
In one embodiment, it also performs the steps of when computer program is executed by processor and is obtained according to dependence It takes the configuration file of each block chain component and there is the configuration text of the block chain component of dependence with each block chain component The operation order of part;When the block chain component in installation kit Profile Up success when, in running order operation with Block chain component has the configuration file of the block chain component of dependence.
In one embodiment, it also performs the steps of when computer program is executed by processor according to modular peace Dress packet generates the deployment train of block chain;Obtain back-off instruction or destruction operation instruction;It is retracted according to back-off instruction to modularization The corresponding deployment train of installation kit;Alternatively, according to destruction operation instruction revocation to the corresponding deployment version of modular installation kit This.
In one embodiment, it is also performed the steps of when computer program is executed by processor all in terminal display The colophon of the deployment train of block chain;It is retracted according to back-off instruction to the deployment train of the corresponding block chain of back-off instruction.
In one embodiment, it also performs the steps of when computer program is executed by processor according to modular installation Packet generates the deployment train of block chain;Obtain revocation version command;Modular installation kit pair is cancelled according to revocation version command The deployment train answered.
In one embodiment, it is also performed the steps of when computer program is executed by processor and obtains multiple block chains The corresponding common parameter file of component;Obtain metadata information file;The common parameter file of block chain component, metadata are believed The configuration file of each block chain component is saved into same file folder in breath file and multiple block chain components, and is combined into mould The installation kit of block.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of block chain dispositions method, which comprises
Obtain the configuration file of each block chain component in multiple block chain components;
The configuration file of block chain component each in the multiple block chain component is combined into modular installation kit;
Block chain is disposed in a reservoir according to the modular installation kit.
2. the method according to claim 1, wherein described according to modular installation kit portion in a reservoir Affix one's name to block chain, comprising:
When the success of the Profile Up of the block chain component in the installation kit, operation has with the block chain component The configuration file of the block chain component of dependence;
It is complete in the above-described container when the configuration file of block chain component each in the multiple block chain component, which is run, to be finished It is disposed at block chain.
3. according to the method described in claim 2, it is characterized in that, the block chain component when in the installation kit is matched When setting running paper success, operation has the configuration file of the block chain component of dependence with the block chain component, comprising:
It obtains the configuration file of each block chain component according to dependence and has to rely on each block chain component and close The operation order of the configuration file of the block chain component of system;
When the success of the Profile Up of the block chain component in the installation kit, according to operation order operation and institute State the configuration file of block chain component of the block chain component with dependence.
4. the method according to claim 1, wherein the method also includes:
The deployment train of block chain is generated according to the modular installation kit;
Obtain back-off instruction or destruction operation instruction;
It is retracted deployment train corresponding to the modular installation kit according to the back-off instruction;
Alternatively, according to destruction operation instruction revocation to the corresponding deployment train of the modular installation kit.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
In the colophon of the deployment train of all block chains of terminal display;
It is described to be retracted deployment train corresponding to the modular installation kit according to the back-off instruction, comprising:
It is retracted according to the back-off instruction to the deployment train of the corresponding block chain of the back-off instruction.
6. the method according to claim 1, wherein the method also includes:
The deployment train of block chain is generated according to the modular installation kit;
Obtain revocation version command;
The corresponding deployment train of the modular installation kit is cancelled according to the revocation version command.
7. the method according to claim 1, wherein the method also includes:
Obtain the corresponding common parameter file of the multiple block chain component;
Obtain metadata information file;
The configuration file by block chain component each in the multiple block chain component is combined into modular installation kit, packet It includes:
It will be every in the common parameter file of the block chain component, the metadata information file and the multiple block chain component The configuration file of a block chain component is saved into same file folder, and is combined into modular installation kit.
8. a kind of block chain disposes device, which is characterized in that described device includes:
Module is obtained, for obtaining the configuration file of each block chain component in multiple block chain components;
Composite module, it is modular for the configuration file of block chain component each in the multiple block chain component to be combined into Installation kit;
Deployment module, for disposing block chain in a reservoir according to the modular installation kit.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201910087407.5A 2019-01-29 2019-01-29 Block chain deployment method, device, computer equipment and storage medium Active CN109933338B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910087407.5A CN109933338B (en) 2019-01-29 2019-01-29 Block chain deployment method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910087407.5A CN109933338B (en) 2019-01-29 2019-01-29 Block chain deployment method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109933338A true CN109933338A (en) 2019-06-25
CN109933338B CN109933338B (en) 2023-06-06

Family

ID=66985316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910087407.5A Active CN109933338B (en) 2019-01-29 2019-01-29 Block chain deployment method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109933338B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110601896A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and equipment based on block chain nodes
CN112486518A (en) * 2020-12-01 2021-03-12 北京微芯区块链与边缘计算研究院 Consensus algorithm assembling method and device
CN114128214A (en) * 2019-07-24 2022-03-01 国际商业机器公司 Security layer for configuring block chains
CN114253628A (en) * 2021-12-22 2022-03-29 金蝶软件(中国)有限公司 Automatic deployment device and automatic deployment method for middleware
WO2022160904A1 (en) * 2021-01-29 2022-08-04 蚂蚁区块链科技(上海)有限公司 Method and apparatus for automatic deployment of blockchain network, and cloud computing platform

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120101801A1 (en) * 2010-10-26 2012-04-26 Rudolf Erik Van Dorsselaer System and method for deploying a software program
US20130117424A1 (en) * 2011-11-08 2013-05-09 Vmware, Inc. Computer Device and Method of Providing Configuration Files in a Computer Device
CN105704188A (en) * 2014-11-27 2016-06-22 华为软件技术有限公司 Deployment method and apparatus of applications and services
WO2018053048A1 (en) * 2016-09-13 2018-03-22 Nutanix, Inc. Massively parallel autonomous reimaging of nodes in a computing cluster
US9983891B1 (en) * 2017-03-21 2018-05-29 Veritas Technologies Llc Systems and methods for distributing configuration templates with application containers
US20180260201A1 (en) * 2017-03-08 2018-09-13 International Business Machines Corporation Intelligent software deployment on an iaas platform
CN108762769A (en) * 2018-06-04 2018-11-06 万惠投资管理有限公司 Micro services application layout and dispositions method, device and terminal
CN108964982A (en) * 2018-06-13 2018-12-07 众安信息技术服务有限公司 For realizing the method, apparatus and storage medium of the deployment of the multinode of block chain
CN109062655A (en) * 2018-06-05 2018-12-21 腾讯科技(深圳)有限公司 A kind of containerization cloud platform and server
CN109165020A (en) * 2018-07-25 2019-01-08 山东中创软件商用中间件股份有限公司 Using method of combination, device, equipment and computer readable storage medium
CN109194506A (en) * 2018-08-16 2019-01-11 北京京东尚科信息技术有限公司 Block chain network dispositions method, platform and computer storage medium
CN109271170A (en) * 2018-09-05 2019-01-25 杭州数梦工场科技有限公司 A kind of distributed system dispositions method, system, electronic equipment and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120101801A1 (en) * 2010-10-26 2012-04-26 Rudolf Erik Van Dorsselaer System and method for deploying a software program
US20130117424A1 (en) * 2011-11-08 2013-05-09 Vmware, Inc. Computer Device and Method of Providing Configuration Files in a Computer Device
CN105704188A (en) * 2014-11-27 2016-06-22 华为软件技术有限公司 Deployment method and apparatus of applications and services
WO2018053048A1 (en) * 2016-09-13 2018-03-22 Nutanix, Inc. Massively parallel autonomous reimaging of nodes in a computing cluster
US20180260201A1 (en) * 2017-03-08 2018-09-13 International Business Machines Corporation Intelligent software deployment on an iaas platform
US9983891B1 (en) * 2017-03-21 2018-05-29 Veritas Technologies Llc Systems and methods for distributing configuration templates with application containers
CN108762769A (en) * 2018-06-04 2018-11-06 万惠投资管理有限公司 Micro services application layout and dispositions method, device and terminal
CN109062655A (en) * 2018-06-05 2018-12-21 腾讯科技(深圳)有限公司 A kind of containerization cloud platform and server
CN108964982A (en) * 2018-06-13 2018-12-07 众安信息技术服务有限公司 For realizing the method, apparatus and storage medium of the deployment of the multinode of block chain
CN109165020A (en) * 2018-07-25 2019-01-08 山东中创软件商用中间件股份有限公司 Using method of combination, device, equipment and computer readable storage medium
CN109194506A (en) * 2018-08-16 2019-01-11 北京京东尚科信息技术有限公司 Block chain network dispositions method, platform and computer storage medium
CN109271170A (en) * 2018-09-05 2019-01-25 杭州数梦工场科技有限公司 A kind of distributed system dispositions method, system, electronic equipment and storage medium

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
HGFGOODCREATE: "helm 部署和简单使用", 《HTTPS://MY.OSCHINA.NET/HGFDOING/BLOG/2254445》 *
WEIXIN_34227447: "Helm介绍", 《HTTPS://BLOG.CSDN.NET/WEIXIN_34227447/ARTICLE/DETAILS/86085606》 *
企鹅号 – DOCKER: "使用Helm在Kubernetes上部署区块链", 《HTTPS://CLOUD.TENCENT.COM/DEVELOPER/NEWS/136162》 *
武少波等: "分布式系统自动部署中的组件依赖配置", 《信息技术》 *
菲宇: "kubernetes之helm简介、安装、配置、使用指南", 《HTTPS://BLOG.CSDN.NET/BBWANGJ/ARTICLE/DETAILS/81087911》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114128214A (en) * 2019-07-24 2022-03-01 国际商业机器公司 Security layer for configuring block chains
CN110601896A (en) * 2019-09-20 2019-12-20 腾讯科技(深圳)有限公司 Data processing method and equipment based on block chain nodes
CN112486518A (en) * 2020-12-01 2021-03-12 北京微芯区块链与边缘计算研究院 Consensus algorithm assembling method and device
CN112486518B (en) * 2020-12-01 2024-03-12 北京微芯区块链与边缘计算研究院 Consensus algorithm assembling method and device
WO2022160904A1 (en) * 2021-01-29 2022-08-04 蚂蚁区块链科技(上海)有限公司 Method and apparatus for automatic deployment of blockchain network, and cloud computing platform
CN114253628A (en) * 2021-12-22 2022-03-29 金蝶软件(中国)有限公司 Automatic deployment device and automatic deployment method for middleware

Also Published As

Publication number Publication date
CN109933338B (en) 2023-06-06

Similar Documents

Publication Publication Date Title
CN109933338A (en) Block chain dispositions method, device, computer equipment and storage medium
CN104793946B (en) Dispositions method and system are applied based on cloud computing platform
EP1857946B1 (en) Systems and methods for migrating data
US7716254B2 (en) System for modeling architecture for business systems and methods thereof
CN109445802B (en) Privatized Paas platform based on container and method for publishing application thereof
CN102193807B (en) Method for upgrading image file, server and computer network system
KR101863398B1 (en) Method and system for synchronization mechanism on multi-server reservation system
US9477727B2 (en) Abstracting data for use by a mobile device having occasional connectivity
US9836297B2 (en) Computer implemented method and system for automatically deploying and versioning scripts in a computing environment
CN109947773A (en) Change of the deployment to key mode in multi-tenant database system
CN102158540A (en) System and method for realizing distributed database
CN109669709A (en) A kind of data migration method and data mover system of the upgrading of block chain
CN104517181B (en) Enterprise content management system and method for nuclear power station
CN105808428A (en) Method for performing unified performance test on distributed file system
WO2009042911A2 (en) Search based data management
US20210286799A1 (en) Automated transaction engine
US20230359446A1 (en) Systems and method for creating enterprise software
CN102355499B (en) Cloud computing system
CN109299172A (en) It is a kind of based on Spring Boot varying environment data source cut-in method and device
US20150178122A1 (en) Method and system for providing a high-availability application
EP2343658A1 (en) Federation as a process
CN108196831A (en) The construction method and device of operation system
CN115576903B (en) File system construction method, computing device and storage medium
CN1828596B (en) File system represented inside a database
Makki et al. Scalable and manageable customization of workflows in multi-tenant saas offerings

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