Skip to content

Commit

Permalink
docs(pubsub): update streams section (#6682)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongalex committed Sep 15, 2022
1 parent 3280a16 commit 7b4e2b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pubsub/doc.go
Expand Up @@ -91,10 +91,11 @@ pull method.
# Streams Management
Streams used for streaming pull are managed by the gRPC connection pool setting.
Streams used for streaming pull are configured by setting sub.ReceiveSettings.NumGoroutines.
However, the total number of streams possible is capped by the gRPC connection pool setting.
By default, the number of connections in the pool is min(4,GOMAXPROCS).
If you have 4 or more CPU cores, the default setting allows 400 streams which is still a good default for most cases.
If you have 4 or more CPU cores, the default setting allows a maximum of 400 streams which is still a good default for most cases.
If you want to have more open streams (such as for low CPU core machines), you should pass in the grpc option as described below:
opts := []option.ClientOption{
Expand Down

0 comments on commit 7b4e2b4

Please sign in to comment.