fabric-chaincode-node icon indicating copy to clipboard operation
fabric-chaincode-node copied to clipboard

Document how to start node chaincode as a service, including how to set grpc parameters

Open denyeart opened this issue 1 year ago • 0 comments
trafficstars

In the doc tutorial at https://hyperledger.github.io/fabric-chaincode-node/main/api/ where it talks about how to start a chaincode:

"scripts": {
    "start": "fabric-chaincode-node start"
}

we should also talk about how to start chaincode as a service, and how to set grpc parameters in the startup, e.g.:

"scripts": {
                "start": "fabric-chaincode-node server --grpc.max_send_message_length 100000000 --grpc.max_receive_message_length 100000000"
        }

This would increase the grpc limit from the default of 4MB to 100MB.

Note that passing grpc parameters recently became possible in node chaincode v2.5.4.

Note also that the source for this doc topic is at: https://github.com/hyperledger/fabric-chaincode-node/blob/main/docs/_jsdoc/index.md

denyeart avatar Apr 15 '24 20:04 denyeart