/
AppResiliency_Patch.json
76 lines (76 loc) · 2.12 KB
/
AppResiliency_Patch.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"appName": "testcontainerApp0",
"name": "resiliency-policy-1",
"api-version": "2023-11-02-preview",
"resiliencyEnvelope": {
"properties": {
"timeoutPolicy": {
"responseTimeoutInSeconds": 30,
"connectionTimeoutInSeconds": 40
}
}
}
},
"responses": {
"200": {
"headers": {},
"body": {
"id": "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/containerApps/testcontainerApp0/resiliencyPolicies/resiliency-policy-1",
"name": "resiliency-policy-1",
"type": "Microsoft.App/containerApps/resiliencyPolicies",
"properties": {
"timeoutPolicy": {
"responseTimeoutInSeconds": 30,
"connectionTimeoutInSeconds": 40
},
"httpRetryPolicy": {
"maxRetries": 5,
"retryBackOff": {
"initialDelayInMilliseconds": 1000,
"maxIntervalInMilliseconds": 10000
},
"matches": {
"headers": [
{
"header": "X-Content-Type",
"match": {
"prefixMatch": "GOATS"
}
}
],
"httpStatusCodes": [
502,
503
],
"errors": [
"5xx",
"connect-failure",
"reset",
"retriable-headers",
"retriable-status-codes"
]
}
},
"tcpRetryPolicy": {
"maxConnectAttempts": 3
},
"circuitBreakerPolicy": {
"consecutiveErrors": 5,
"intervalInSeconds": 10,
"maxEjectionPercent": 50
},
"tcpConnectionPool": {
"maxConnections": 100
},
"httpConnectionPool": {
"http1MaxPendingRequests": 1024,
"http2MaxRequests": 1024
}
}
}
}
}
}