How to know the number of tcp connections created based on the configuration options ? #4741
Unanswered
kkattamudi-ms
asked this question in
Q&A
Replies: 1 comment 9 replies
-
When using Direct Mode, your machine will connect to all 4 replicas of each physical partition, from each of the clients. The option of MaxTcpConnectionsPerEndpoint is for each backend node. |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Even we restricted the cosmos db client objects to be 6 and with maximum TCP Connections to be created as 100 . We are seeing huge number of TCP Connections are getting created due to which the performace of our worker is getting degraded .
Please find the code sample we are using :
CosmosDB Client Options :
"MaxRequestsPerTcpConnection": 10,
"MaxTcpConnectionsPerEndpoint": 100
When we are tracing the logs of cosmos db requests we are seeing this :
"numberOfOpenTcpConnection": 10276
"NumberOfClientsCreated": 6,
"NumberOfActiveClients": 6,
Beta Was this translation helpful? Give feedback.
All reactions