Skip to content

Commit

Permalink
Update docs/source/performance.md
Browse files Browse the repository at this point in the history
Co-authored-by: Dave Enyeart <enyeart@us.ibm.com>
Signed-off-by: Josh Horton <joshh@us.ibm.com>
  • Loading branch information
joshhus and denyeart committed Feb 16, 2023
1 parent 8a93238 commit 8e40e1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/performance.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ Go chaincode has shown the best performance in Hyperledger Fabric environments,

### Node chaincode

Node is an asynchronous runtime impluementation that utilizes only a single thread to execute code. Node does run background threads for activities such as garbage collection, but it may not improve performance to allocate more than two vCPUs (generally equivalent to the number of concurrent threads which can be executed) to a Node chaincode (for example on Kubernetes which is limited to available resources). It is worth monitoring performance of Node chaincode to see how much vCPU it uses. Node chaincode is self-limiting and not unbounded, though you could also assign resource restrictions to Node chaincode processes.
Node is an asynchronous runtime implementation that utilizes only a single thread to execute code. Node does run background threads for activities such as garbage collection, but it may not improve performance to allocate more than two vCPUs (generally equivalent to the number of concurrent threads which can be executed) to a Node chaincode (for example on Kubernetes which is limited to available resources). It is worth monitoring performance of Node chaincode to see how much vCPU it uses. Node chaincode is self-limiting and not unbounded, though you could also assign resource restrictions to Node chaincode processes.

Prior to Node v12, a Node process was limited to 1.5 GB of Memory by default, which to increase for running Node chaincode required passing a parameter to the Node executable. You should not be running chaincode processes on any version earlier than Node v12, and Hyperledger Fabric v2.5 mandates using Node v16, or later. Various parameters can be provided when launching Node chaincode, but few if any scenarios would require overriding the default values for Node v12 and later.

Expand Down

0 comments on commit 8e40e1c

Please sign in to comment.