Skip to content

Commit 271230e

Browse files
authored
SNAT port exhaustion still possible in v2 SDK
1 parent f4ab681 commit 271230e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/cosmos-db/troubleshoot-dot-net-sdk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Checking the [portal metrics](monitor-accounts.md) will help determine if it's a
4242
RequestTimeout usually happens when using Direct/TCP, but can happen in Gateway mode. These are the common known causes, and suggestions on how to fix the problem.
4343

4444
* CPU utilization is high, which will cause latency and/or request timeouts. The customer can scale up the host machine to give it more resources, or the load can be distributed across more machines.
45-
* Socket / Port availability might be low. When using the .NET SDKs released before the 2.0 version, clients running in Azure could hit the [Azure SNAT (PAT) port exhaustion]. This an example of why it is recommended to always run the latest SDK version.
45+
* Socket / Port availability might be low. Clients running in Azure could hit the [Azure SNAT (PAT) port exhaustion]. The chance of hitting this is reduced by using the v2 or v3 SDK. This an example of why it is recommended to always run the latest SDK version.
4646
* Creating multiple DocumentClient instances might lead to connection contention and timeout issues. Follow the [performance tips](performance-tips.md), and use a single DocumentClient instance across an entire process.
4747
* Users sometimes see elevated latency or request timeouts because their collections are provisioned insufficiently, the back-end throttles requests, and the client retries internally without surfacing this to the caller. Check the [portal metrics](monitor-accounts.md).
4848
* Azure Cosmos DB distributes the overall provisioned throughput evenly across physical partitions. Check portal metrics to see if the workload is encountering a hot [partition key](partition-data.md). This will cause the aggregate consumed throughput (RU/s) to be appear to be under the provisioned RUs, but a single partition consumed throughput (RU/s) will exceed the provisioned throughput.

0 commit comments

Comments
 (0)