Skip to content

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

@denyeart

Description

@denyeart

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions