You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Internal] Per Partition Automatic Failover: Removes Remove Environment Variable to Set PPAF at the SDK Layer and Add Support for Internal Client Options (#5284)
# Pull Request Template
## Description
- **Remove Dependency on Environment Variable:** Today, the PPAF
enablement in the .NET SDK is done completely through the Get Account
metadata response. However, we still kept the environment variable
`AZURE_COSMOS_PARTITION_LEVEL_FAILOVER_ENABLED` at a deprecated state to
toggle the behavior, if the cosmos account doesn't have the flag
enabled. As a part of this task, we will remove the environment variable
completely from the .NET SDK ecosystem.
- **Create a new Environment Variable to externalize circuit breaker
timeout counter reset window:** Goal is to create a new environment
variable `AZURE_COSMOS_PPCB_TIMEOUT_COUNTER_RESET_WINDOW_IN_MINUTES` to
externalize the PPCB timeout counter reset window. The default value for
this would be `5` minutes.
- **Add New Internal Client Options to disable PPAF:** Add a new
**internal** cosmos client options to disable PPAF explicitly. Once set,
this will be used to disable PPAF irrespective of the account settings.
## Type of change
Please delete options that are not relevant.
- [] New feature (non-breaking change which adds functionality)
## Closing issues
To automatically close an issue: closes#5277
/// If compute gateway chooses to enable PPAF, then the .NET SDK will enable PPCB by default, which will improve the read availability and latency. This would mean
771
771
/// when PPAF is enabled, the SDK will automatically enable PPCB as well.
Copy file name to clipboardExpand all lines: Microsoft.Azure.Cosmos/src/Util/ConfigurationManager.cs
+24-19Lines changed: 24 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,13 @@ internal static class ConfigurationManager
60
60
/// A read-only string containing the environment variable name for capturing the consecutive failure count for writes, before triggering per partition
61
61
/// circuit breaker flow. The default value for this interval is 10 consecutive requests within 1 min window.
/// A read-only string containing the environment variable name for capturing the consecutive failure count for writes, before triggering per partition
67
+
/// circuit breaker flow. The default value for this interval is 5 consecutive requests within 1 min window.
0 commit comments