Skip to content

Commit 80bfc13

Browse files
fix: reduce rate limit values and timeout for improved API performance
1 parent 301d2d4 commit 80bfc13

1 file changed

Lines changed: 26 additions & 26 deletions

File tree

Applications/Proxy/Source/ocelot.json

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"ClientIdHeader": "Client",
1616
"EnableRateLimiting": true,
1717
"Period": "1s",
18-
"Limit": 20
18+
"Limit": 5
1919
},
2020
"QoSOptions": {
2121
"ExceptionsAllowedBeforeBreaking": 3,
2222
"DurationOfBreak": 5000,
23-
"TimeoutValue": 25000
23+
"TimeoutValue": 2000
2424
}
2525
},
2626
{
@@ -38,7 +38,7 @@
3838
"ClientIdHeader": "Client",
3939
"EnableRateLimiting": true,
4040
"Period": "1s",
41-
"Limit": 20
41+
"Limit": 5
4242
},
4343
"QoSOptions": {
4444
"ExceptionsAllowedBeforeBreaking": 3,
@@ -61,7 +61,7 @@
6161
"ClientIdHeader": "Client",
6262
"EnableRateLimiting": true,
6363
"Period": "1s",
64-
"Limit": 20
64+
"Limit": 5
6565
},
6666
"QoSOptions": {
6767
"ExceptionsAllowedBeforeBreaking": 3,
@@ -84,7 +84,7 @@
8484
"ClientIdHeader": "Client",
8585
"EnableRateLimiting": true,
8686
"Period": "1s",
87-
"Limit": 20
87+
"Limit": 5
8888
},
8989
"QoSOptions": {
9090
"ExceptionsAllowedBeforeBreaking": 3,
@@ -107,7 +107,7 @@
107107
"ClientIdHeader": "Client",
108108
"EnableRateLimiting": true,
109109
"Period": "1s",
110-
"Limit": 20
110+
"Limit": 5
111111
},
112112
"QoSOptions": {
113113
"ExceptionsAllowedBeforeBreaking": 3,
@@ -130,7 +130,7 @@
130130
"ClientIdHeader": "Client",
131131
"EnableRateLimiting": true,
132132
"Period": "1s",
133-
"Limit": 20
133+
"Limit": 5
134134
},
135135
"QoSOptions": {
136136
"ExceptionsAllowedBeforeBreaking": 3,
@@ -153,7 +153,7 @@
153153
"ClientIdHeader": "Client",
154154
"EnableRateLimiting": true,
155155
"Period": "1s",
156-
"Limit": 20
156+
"Limit": 5
157157
},
158158
"QoSOptions": {
159159
"ExceptionsAllowedBeforeBreaking": 3,
@@ -176,7 +176,7 @@
176176
"ClientIdHeader": "Client",
177177
"EnableRateLimiting": true,
178178
"Period": "1s",
179-
"Limit": 20
179+
"Limit": 5
180180
},
181181
"QoSOptions": {
182182
"ExceptionsAllowedBeforeBreaking": 3,
@@ -199,7 +199,7 @@
199199
"ClientIdHeader": "Client",
200200
"EnableRateLimiting": true,
201201
"Period": "1s",
202-
"Limit": 20
202+
"Limit": 5
203203
},
204204
"QoSOptions": {
205205
"ExceptionsAllowedBeforeBreaking": 3,
@@ -222,7 +222,7 @@
222222
"ClientIdHeader": "Client",
223223
"EnableRateLimiting": true,
224224
"Period": "1s",
225-
"Limit": 20
225+
"Limit": 5
226226
},
227227
"QoSOptions": {
228228
"ExceptionsAllowedBeforeBreaking": 3,
@@ -245,7 +245,7 @@
245245
"ClientIdHeader": "Client",
246246
"EnableRateLimiting": true,
247247
"Period": "1s",
248-
"Limit": 20
248+
"Limit": 5
249249
},
250250
"QoSOptions": {
251251
"ExceptionsAllowedBeforeBreaking": 3,
@@ -268,7 +268,7 @@
268268
"ClientIdHeader": "Client",
269269
"EnableRateLimiting": true,
270270
"Period": "1s",
271-
"Limit": 20
271+
"Limit": 5
272272
},
273273
"QoSOptions": {
274274
"ExceptionsAllowedBeforeBreaking": 3,
@@ -291,7 +291,7 @@
291291
"ClientIdHeader": "Client",
292292
"EnableRateLimiting": true,
293293
"Period": "1s",
294-
"Limit": 20
294+
"Limit": 5
295295
},
296296
"QoSOptions": {
297297
"ExceptionsAllowedBeforeBreaking": 3,
@@ -314,7 +314,7 @@
314314
"ClientIdHeader": "Client",
315315
"EnableRateLimiting": true,
316316
"Period": "1s",
317-
"Limit": 20
317+
"Limit": 5
318318
},
319319
"QoSOptions": {
320320
"ExceptionsAllowedBeforeBreaking": 3,
@@ -337,7 +337,7 @@
337337
"ClientIdHeader": "Client",
338338
"EnableRateLimiting": true,
339339
"Period": "1s",
340-
"Limit": 20
340+
"Limit": 5
341341
},
342342
"QoSOptions": {
343343
"ExceptionsAllowedBeforeBreaking": 3,
@@ -360,7 +360,7 @@
360360
"ClientIdHeader": "Client",
361361
"EnableRateLimiting": true,
362362
"Period": "1s",
363-
"Limit": 20
363+
"Limit": 5
364364
},
365365
"QoSOptions": {
366366
"ExceptionsAllowedBeforeBreaking": 3,
@@ -383,7 +383,7 @@
383383
"ClientIdHeader": "Client",
384384
"EnableRateLimiting": true,
385385
"Period": "1s",
386-
"Limit": 20
386+
"Limit": 5
387387
},
388388
"QoSOptions": {
389389
"ExceptionsAllowedBeforeBreaking": 3,
@@ -406,7 +406,7 @@
406406
"ClientIdHeader": "Client",
407407
"EnableRateLimiting": true,
408408
"Period": "1s",
409-
"Limit": 20
409+
"Limit": 5
410410
},
411411
"QoSOptions": {
412412
"ExceptionsAllowedBeforeBreaking": 3,
@@ -429,7 +429,7 @@
429429
"ClientIdHeader": "Client",
430430
"EnableRateLimiting": true,
431431
"Period": "1s",
432-
"Limit": 20
432+
"Limit": 5
433433
},
434434
"QoSOptions": {
435435
"ExceptionsAllowedBeforeBreaking": 3,
@@ -452,7 +452,7 @@
452452
"ClientIdHeader": "Client",
453453
"EnableRateLimiting": true,
454454
"Period": "1s",
455-
"Limit": 20
455+
"Limit": 5
456456
},
457457
"QoSOptions": {
458458
"ExceptionsAllowedBeforeBreaking": 3,
@@ -475,7 +475,7 @@
475475
"ClientIdHeader": "Client",
476476
"EnableRateLimiting": true,
477477
"Period": "1s",
478-
"Limit": 20
478+
"Limit": 5
479479
},
480480
"QoSOptions": {
481481
"ExceptionsAllowedBeforeBreaking": 3,
@@ -498,7 +498,7 @@
498498
"ClientIdHeader": "Client",
499499
"EnableRateLimiting": true,
500500
"Period": "1s",
501-
"Limit": 20
501+
"Limit": 5
502502
},
503503
"QoSOptions": {
504504
"ExceptionsAllowedBeforeBreaking": 3,
@@ -521,7 +521,7 @@
521521
"ClientIdHeader": "Client",
522522
"EnableRateLimiting": true,
523523
"Period": "1s",
524-
"Limit": 20
524+
"Limit": 5
525525
},
526526
"QoSOptions": {
527527
"ExceptionsAllowedBeforeBreaking": 3,
@@ -544,7 +544,7 @@
544544
"ClientIdHeader": "Client",
545545
"EnableRateLimiting": true,
546546
"Period": "1s",
547-
"Limit": 20
547+
"Limit": 5
548548
},
549549
"QoSOptions": {
550550
"ExceptionsAllowedBeforeBreaking": 3,
@@ -567,7 +567,7 @@
567567
"ClientIdHeader": "Client",
568568
"EnableRateLimiting": true,
569569
"Period": "1s",
570-
"Limit": 20
570+
"Limit": 5
571571
},
572572
"QoSOptions": {
573573
"ExceptionsAllowedBeforeBreaking": 3,

0 commit comments

Comments
 (0)