Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
denyeart opened this issue Apr 15, 2024 · 2 comments
Assignees

Comments

@denyeart
Copy link
Contributor

denyeart commented Apr 15, 2024

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
Copy link
Contributor Author

It appears the jsdocs are not getting published, I've opened a separate issue: #422

For example the source at:
https://github.com/hyperledger/fabric-chaincode-node/blob/main/docs/_jsdoc/index.md

Should get pushed to branch:
https://github.com/hyperledger/fabric-chaincode-node/blob/gh-pages/main/api/index.html

So that it renders here:
https://hyperledger.github.io/fabric-chaincode-node/main/api/

@bestbeforetoday
Copy link
Member

Doc update merged, although docs are not yet being published by the build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants