hyperledger / cello

Operating System for Enterprise Blockchain
https://wiki.hyperledger.org/display/cello
Apache License 2.0
897 stars 445 forks source link

Optimize container creation for node #658

Closed YoungHypo closed 2 hours ago

YoungHypo commented 2 hours ago

The function of "def _conversion_msp_tls_cfg(self, type, org, node)" from node/views.py is compress/zip important files or certificates such as node's msp, tls, etc., and pass them in for decompression/unzip when creating containers

This operation can be optimized to eliminate the compression and decompression process

For the function of "def create_node()" from agent/docker-test-agent/server.py, We can modify the mapping relationship of the container's volumes so that the container maps to a local file about the node.

for example,

volumes = [
    'LOCAL_NODE_FILE': /opt/cello/fabric
]
yeasy commented 2 hours ago

The api-engine and agent may exist in different hosts.