CN109413211A - A kind of framework and its implementation of EOS block chain super node - Google Patents

A kind of framework and its implementation of EOS block chain super node Download PDF

Info

Publication number
CN109413211A
CN109413211A CN201811550741.1A CN201811550741A CN109413211A CN 109413211 A CN109413211 A CN 109413211A CN 201811550741 A CN201811550741 A CN 201811550741A CN 109413211 A CN109413211 A CN 109413211A
Authority
CN
China
Prior art keywords
intelligent
service device
contract
bond service
interface
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
CN201811550741.1A
Other languages
Chinese (zh)
Other versions
CN109413211B (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.)
Shaanxi Medicine Chain Group Co Ltd
Original Assignee
Shaanxi Medicine Chain Group 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 Shaanxi Medicine Chain Group Co Ltd filed Critical Shaanxi Medicine Chain Group Co Ltd
Priority to CN201811550741.1A priority Critical patent/CN109413211B/en
Publication of CN109413211A publication Critical patent/CN109413211A/en
Application granted granted Critical
Publication of CN109413211B publication Critical patent/CN109413211B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses the frameworks and its implementation of a kind of EOS block chain super node, including for providing the block production module, the more intelligent bond service devices for the contract scheduler module of intelligent contract scheduling distribution and for executing intelligent contract and being connected with the contract scheduler module that block produces in EOS block chain.The contract scheduler module includes registration center ETCD, the registration interface for the registration of intelligent bond service device, the cancellation interface for the cancellation of intelligent bond service device, the more new interface for the update of intelligent bond service device and the query interface for the inquiry of intelligent bond service device;The registration interface, cancellation interface, more new interface and query interface are connected with registration center ETCD.The present invention solves the problems, such as intelligent bond service device memory source bottleneck, improves the utilization rate of resource.

Description

A kind of framework and its implementation of EOS block chain super node
Technical field
The present invention relates to block chain fields, specifically, being to be related to a kind of framework and in fact of EOS block chain super node Existing method.
Background technique
Since intelligent contract has, processing is more efficient when trading, irreversible, safe transaction and full-automatic stream The advantages of journey, has obtained extensive concern and quickly development in recent years.It at present should on the same node of EOS block chain The undertaking block production of the task will also undertake the executing intelligent contract of the task, the two functions are to be deployed in same physics master On machine.This framework mode, there are four disadvantages:
1. with the explosive growth of the following intelligent contract, storing and accessing for intelligent contract can all be provided the memory of node Cause great pressure in source, it will lead to trade congestion or postponement of execution, there are the risks of node paralysis until memory is exhausted.
2. to extend the memory source of a super node, what is spent is with high costs.
3. since memory requirements constantly increases, and the memory of separate unit node cannot increase without limitation, there are resource bottlenecks.
4. the computing capability of individual node is limited, the parallel execution of a large amount of contracts can not be coped with.
How disadvantage mentioned above is carried out solving the problem of that optimization is that related technical personnel to be considered.
Summary of the invention
The purpose of the present invention is to provide the frameworks and its implementation of a kind of EOS block chain super node, solve intelligence The problem of bond service device memory source bottleneck, improves resource utilization.
To achieve the above object, The technical solution adopted by the invention is as follows:
A kind of framework of EOS block chain super node, including for providing the block production that block produces in EOS block chain Module dispatches the contract scheduler module distributed for intelligent contract and for executing intelligent contract and dispatching with the contract The more intelligent bond service devices that module is connected.
The contract scheduler module includes registration center ETCD, the registration interface for the registration of intelligent bond service device, use Interface is nullified, for the more new interface of intelligent bond service device update and for intelligent contract in what intelligent bond service device was nullified The query interface of server inquiry;The dispatching delivery module, registration interface, nullify interface, more new interface and query interface with Registration center ETCD is connected.
A kind of implementation method of the framework of EOS block chain super node, comprising the following steps:
(1) each on-line intelligence bond service device passes through registration interface registration resource information in registration center ETCD, Registration center ETCD saves its resource information;
(2) the block production module of super node receives the intelligent contract access request of external client transmission, adjusts It spends distribution module and registered intelligent bond service device in registration center ETCD is retrieved according to scheduling strategy, finding out can execute The intelligent bond service device of the intelligence contract access request, and access request is transmitted to the intelligent bond service device found;
(3) the intelligent bond service device for receiving intelligent contract access request completes intelligent contract access request, and complete At intelligent contract access request result and related data return to block production module;
(4) block produces module and the result of intelligent contract access request and related data is returned to external client, and Corresponding block storage is generated into the block data library of block chain, realizes access service of the external client to intelligent contract.
Further, the resource information registered in the step (1) includes hardware resource data information, and the intelligence provided is closed About information on services, and the previous efficiency information for executing contract.
Further, the scheduling strategy in the step (2) includes efficiency comes first algorithm and hash algorithm.
Further, it when intelligent bond service device exits, is unregistered by the cancellation interface of contract scheduler module;When When intelligent bond service device has the intelligent bond service information change of the change of hardware resource data information, offer, pass through contract tune The more new interface for spending module updates original information.
Further, block production module is responsible for receiving and dispatching external client intelligent contract access request using outer net IP, It is communicated using internal IP and each intelligent bond service device, and is carried out by high quality local area network and each intelligent bond service device It please summation process.
Further, the contract scheduler module periodically inquires the letter of the on-line intelligence bond service device of registration center ETCD It is locally slow to be altered to intelligent bond service device when finding that on-line intelligence bond service device has altered by breath for these synchronizing informations It deposits in configuration.
Compared with prior art, the invention has the following advantages:
(1) present invention produces the separated deployment of module and intelligent bond service by block on EOS block chain, and use is arranged In the contract scheduler module of intelligent contract scheduling distribution, request is distributed to other intelligent bond service devices.In this way, original single The resource requirement of platform server is distributed to multiple host, not only solves the problems, such as memory source bottleneck, also reduces money The cost of source extension, improves the efficiency of deployment.
(2) present invention solves the distribution problem of intelligent contract request, registration of establishment center by contract scheduler module ETCD, intelligent bond service device are registered in registration center ETCD, realize intelligent contract scheduling distribution by scheduling strategy To intelligent bond service device, scheduling strategy algorithm science is quick, individually can select a kind of or be applied in combination, to resource Efficient and rational utilization is carried out.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of super node framework of the present invention.
Fig. 2 is the realization principle block diagram of super node framework of the present invention.
Specific embodiment
The invention will be further described with embodiment for explanation with reference to the accompanying drawing, and mode of the invention includes but not only limits In following embodiment.
Embodiment
As depicted in figs. 1 and 2, the framework of a kind of EOS block chain super node disclosed by the invention, including for providing The block that block produces in EOS block chain produces module, the contract scheduler module of distribution is dispatched for intelligent contract and is used for The more intelligent bond service devices for executing intelligent contract and being connected with the contract scheduler module.
The contract scheduler module includes registration center ETCD, the registration interface for the registration of intelligent bond service device, use Interface is nullified, for the more new interface of intelligent bond service device update and for intelligent contract in what intelligent bond service device was nullified The query interface of server inquiry;The dispatching delivery module, registration interface, nullify interface, more new interface and query interface with Registration center ETCD is connected.
A kind of implementation method of the framework of EOS block chain super node, comprising the following steps:
(1) each on-line intelligence bond service device passes through registration interface registration resource information in registration center ETCD, Registration center ETCD saves its resource information;
(2) the block production module of super node receives the intelligent contract access request of external client transmission, adjusts It spends distribution module and registered intelligent bond service device in registration center ETCD is retrieved according to scheduling strategy, finding out can execute The intelligent bond service device of the intelligence contract access request, and access request is transmitted to the intelligent bond service device found;
(3) the intelligent bond service device for receiving intelligent contract access request completes intelligent contract access request, and complete At intelligent contract access request result and related data return to block production module;
(4) block produces module and the result of intelligent contract access request and related data is returned to external client, and Corresponding block storage is generated into the block data library of block chain, realizes access service of the external client to intelligent contract.
The resource information registered in the step (1) includes hardware resource data information, the intelligent bond service letter provided Breath, and the previous efficiency information for executing contract.
Scheduling strategy in the step (2) includes efficiency comes first algorithm and hash algorithm.
When intelligent bond service device exits, it is unregistered by the cancellation interface of contract scheduler module;When intelligent contract When server has the intelligent bond service information change of the change of hardware resource data information, offer, pass through contract scheduler module More new interface updates original information.
Block, which produces module, to be responsible for receiving and dispatching external client intelligent contract access request using outer net IP, uses internal IP It is communicated with each intelligent bond service device, and makes requests and locate with each intelligent bond service device by high quality local area network Reason.
The contract scheduler module periodically inquires the information of the on-line intelligence bond service device of registration center ETCD, works as discovery When on-line intelligence bond service device has altered, these synchronizing informations are altered in intelligent bond service device local cache configuration.
The present invention by above-mentioned design, request according to existing intelligent contract by the dispatching delivery module of contract scheduler module, Request is distributed to other intelligent bond service devices according to scheduling strategy, the resource requirement of originally single intelligent bond service device Multiple intelligent bond service devices have been distributed to, intelligent bond service device memory source bottleneck has been efficiently solved the problems, such as, improves Resource utilization.
Above-described embodiment is only one of the preferred embodiment of the present invention, should not be taken to limit protection model of the invention It encloses, as long as that in body design thought of the invention and mentally makes has no the change of essential meaning or polishing, is solved The technical issues of it is still consistent with the present invention, should all be included within protection scope of the present invention.

Claims (8)

1. a kind of framework of EOS block chain super node, which is characterized in that including being produced for providing block in EOS block chain Block production module, for intelligent contract scheduling distribution contract scheduler module and for execute intelligent contract and with institute State more that contract scheduler module is connected intelligent bond service devices.
2. a kind of framework of EOS block chain super node according to claim 1, which is characterized in that the contract scheduling Module include dispatching delivery module, registration center ETCD, for intelligent bond service device registration registration interface, for intelligence close About server nullify cancellations interface, for the update of intelligent bond service device more new interface and look into for intelligent bond service device The query interface of inquiry;The dispatching delivery module, registration interface, nullify interface, more new interface and query interface respectively with registration Center ETCD is connected.
3. a kind of implementation method of the framework of EOS block chain super node according to claim 2, which is characterized in that packet Include following steps:
(1) each on-line intelligence bond service device passes through registration interface registration resource information in registration center ETCD, registration Center ETCD saves its resource information;
(2) the block production module of super node receives the intelligent contract access request of external client transmission, scheduling point It sends out module and registered intelligent bond service device in registration center ETCD is retrieved according to scheduling strategy, the intelligence can be executed by finding out The intelligent bond service device of energy contract access request, and access request is transmitted to the intelligent bond service device found;
(3) the intelligent bond service device for receiving intelligent contract access request completes intelligent contract access request, and completion The result and related data of intelligent contract access request return to block production module;
(4) block produces module and the result of intelligent contract access request and related data is returned to external client, and generates Corresponding block storage realizes access service of the external client to intelligent contract into the block data library of block chain.
4. a kind of implementation method of the framework of EOS block chain super node according to claim 3, which is characterized in that institute Stating the resource information registered in step (1) includes hardware resource data information, the intelligent bond service information provided, and previous Execute the efficiency information of contract.
5. a kind of implementation method of the framework of EOS block chain intelligence bond service device according to claim 4, feature exist In the scheduling strategy in the step (2) includes efficiency comes first algorithm and hash algorithm.
6. a kind of implementation method of the framework of EOS block chain super node according to claim 5, which is characterized in that also The following steps are included: being unregistered when intelligent bond service device is exited by the cancellation interface of contract scheduler module;Work as intelligence When bond service device has the intelligent bond service information change of the change of hardware resource data information, offer, mould is dispatched by contract The more new interface of block updates original information.
7. a kind of implementation method of the framework of EOS block chain super node according to claim 6, which is characterized in that In step (2), block, which produces module, to be responsible for receiving and dispatching external client intelligent contract access request using outer net IP, uses inside IP and each intelligent bond service device communication, and make requests and locate with each intelligent bond service device by high quality local area network Reason.
8. a kind of implementation method of the framework of EOS block chain super node according to claim 7, which is characterized in that also The information that the on-line intelligence bond service device of registration center ETCD is periodically inquired including the contract scheduler module, when discovery is online When intelligent bond service device has altered, these synchronizing informations are altered in intelligent bond service device local cache configuration.
CN201811550741.1A 2018-12-18 2018-12-18 Architecture of EOS block chain super node and implementation method thereof Active CN109413211B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811550741.1A CN109413211B (en) 2018-12-18 2018-12-18 Architecture of EOS block chain super node and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811550741.1A CN109413211B (en) 2018-12-18 2018-12-18 Architecture of EOS block chain super node and implementation method thereof

Publications (2)

Publication Number Publication Date
CN109413211A true CN109413211A (en) 2019-03-01
CN109413211B CN109413211B (en) 2019-12-31

Family

ID=65460856

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811550741.1A Active CN109413211B (en) 2018-12-18 2018-12-18 Architecture of EOS block chain super node and implementation method thereof

Country Status (1)

Country Link
CN (1) CN109413211B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995613A (en) * 2019-03-29 2019-07-09 北京金山安全软件有限公司 Flow calculation method and device
CN111353690A (en) * 2020-02-18 2020-06-30 广东工业大学 Block chain enabled production scheduling edge calculation method
CN111614725A (en) * 2020-04-24 2020-09-01 深圳壹账通智能科技有限公司 Service management method, device and equipment based on block chain development
CN111782647A (en) * 2020-05-29 2020-10-16 易联众信息技术股份有限公司 Block data storage method, system, medium and equipment of EOS network
CN112882774A (en) * 2021-02-08 2021-06-01 北京微芯区块链与边缘计算研究院 Intelligent contract chip device and method executed in parallel and block chain link point device
CN113377738A (en) * 2021-04-28 2021-09-10 南京欣网互联网络科技有限公司 Method for building BaaS framework based on PaaS platform and EOS framework

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107171794A (en) * 2017-06-27 2017-09-15 葛峰 A kind of electronic document based on block chain and intelligent contract signs method
CN107423945A (en) * 2017-04-13 2017-12-01 葛武 Intelligent energy trade managing system and method based on block chain technology
US20180189100A1 (en) * 2017-01-05 2018-07-05 Hitachi, Ltd. Distributed computing system
CN108805561A (en) * 2017-04-27 2018-11-13 中思博安科技(北京)有限公司 It may have access to the execution method and system of the intelligent contract of multiple block chains

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180189100A1 (en) * 2017-01-05 2018-07-05 Hitachi, Ltd. Distributed computing system
CN107423945A (en) * 2017-04-13 2017-12-01 葛武 Intelligent energy trade managing system and method based on block chain technology
CN108805561A (en) * 2017-04-27 2018-11-13 中思博安科技(北京)有限公司 It may have access to the execution method and system of the intelligent contract of multiple block chains
CN107171794A (en) * 2017-06-27 2017-09-15 葛峰 A kind of electronic document based on block chain and intelligent contract signs method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995613A (en) * 2019-03-29 2019-07-09 北京金山安全软件有限公司 Flow calculation method and device
CN109995613B (en) * 2019-03-29 2021-02-05 北京乐蜜科技有限责任公司 Flow calculation method and device
CN111353690A (en) * 2020-02-18 2020-06-30 广东工业大学 Block chain enabled production scheduling edge calculation method
CN111353690B (en) * 2020-02-18 2023-04-18 广东工业大学 Block chain enabled production scheduling edge calculation method
CN111614725A (en) * 2020-04-24 2020-09-01 深圳壹账通智能科技有限公司 Service management method, device and equipment based on block chain development
WO2021212677A1 (en) * 2020-04-24 2021-10-28 深圳壹账通智能科技有限公司 Service management method and apparatus implemented on the basis of blockchain development, and device
CN111782647A (en) * 2020-05-29 2020-10-16 易联众信息技术股份有限公司 Block data storage method, system, medium and equipment of EOS network
CN112882774A (en) * 2021-02-08 2021-06-01 北京微芯区块链与边缘计算研究院 Intelligent contract chip device and method executed in parallel and block chain link point device
CN113377738A (en) * 2021-04-28 2021-09-10 南京欣网互联网络科技有限公司 Method for building BaaS framework based on PaaS platform and EOS framework
CN113377738B (en) * 2021-04-28 2024-03-22 南京欣网互联网络科技有限公司 Method for building BaaS architecture based on PaaS platform and EOS framework

Also Published As

Publication number Publication date
CN109413211B (en) 2019-12-31

Similar Documents

Publication Publication Date Title
CN109413211A (en) A kind of framework and its implementation of EOS block chain super node
CN105468626B (en) data processing method and system
CN103309738B (en) User job dispatching method and device
da Silva Veith et al. Latency-aware placement of data stream analytics on edge computing
US9313134B2 (en) Leveraging hardware accelerators for scalable distributed stream processing in a network environment
CN104391918B (en) The implementation method of distributed networks database query priority management based on equity deployment
CN107710237A (en) Deep neural network divides on server
CN102760074A (en) High-load business process scalability
CN106933669A (en) For the apparatus and method of data processing
CN104679595B (en) A kind of application oriented IaaS layers of dynamic resource allocation method
US10534337B2 (en) Flow engine for building automated flows within a cloud based developmental platform
CN110377406A (en) A kind of method for scheduling task, device, storage medium and server node
CN110431806A (en) The system and method for low time delay node local scheduling in distributed resource management
CN107172187A (en) A kind of SiteServer LBS and method
CN101577705A (en) Multi-core paralleled network traffic load balancing method and system
CN108605017A (en) Inquiry plan and operation perception communication buffer management
El Kholy et al. Framework for interaction between databases and microservice architecture
Wang et al. Adaptive service function chain scheduling in mobile edge computing via deep reinforcement learning
US20210374144A1 (en) System for embedding stream processing execution in a database
Stavrinides et al. Security and cost aware scheduling of real-time IoT workflows in a mist computing environment
CN114710571A (en) Data packet processing system
Wo et al. Overbooking-based resource allocation in virtualized data center
CN108920505A (en) Exchange rate enquiring component device, server-side and method
CN108694082A (en) A kind of cross-domain operation stream scheduling method and system
CN105227616A (en) A kind of method of remote sensing satellite Ground Processing System task dynamic creation and distribution

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