Commit dd1b2ff
Back out "Back out "[sl] http: add "per batch" concurrent request limit""
Summary:
We backed this out thinking it could have caused S513355, but we later determined it was innocent.
Summary from original diff D73602841:
I think it is useful to have two concurrent request limits - one global (per client object), and one per batch of requests.
By batch, I mean, for example, when you fetch 10 million files and split into 1_000 separate requests each with 10_000 files - you have a batch of 1k requests. You don't really want or need to to fire off a lot of requests at once because you can saturate your bandwidth with a small number of requests, and having more requests than you need can unnecessarily overload the server, and make individual requests take longer than otherwise needed to finish, which increases the odds of timeouts or other network errors.
The global limit will be set higher, allowing for other concurrent requests to not be starved by a single big batch.
Reviewed By: lmvasquezg
Differential Revision: D75107491
fbshipit-source-id: b105f319e731ad3cef6adcb8ac3e4574d015d16c1 parent 07fa11f commit dd1b2ff
2 files changed
Lines changed: 46 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
213 | 216 | | |
214 | 217 | | |
215 | 218 | | |
| |||
305 | 308 | | |
306 | 309 | | |
307 | 310 | | |
| 311 | + | |
308 | 312 | | |
309 | 313 | | |
310 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | 77 | | |
| |||
98 | 105 | | |
99 | 106 | | |
100 | 107 | | |
| 108 | + | |
101 | 109 | | |
102 | 110 | | |
103 | 111 | | |
| |||
251 | 259 | | |
252 | 260 | | |
253 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
254 | 269 | | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
268 | 290 | | |
269 | | - | |
270 | | - | |
| 291 | + | |
| 292 | + | |
271 | 293 | | |
272 | 294 | | |
273 | 295 | | |
| |||
282 | 304 | | |
283 | 305 | | |
284 | 306 | | |
285 | | - | |
| 307 | + | |
286 | 308 | | |
287 | 309 | | |
288 | 310 | | |
| |||
296 | 318 | | |
297 | 319 | | |
298 | 320 | | |
| 321 | + | |
| 322 | + | |
299 | 323 | | |
300 | 324 | | |
301 | 325 | | |
302 | 326 | | |
303 | 327 | | |
304 | 328 | | |
305 | 329 | | |
306 | | - | |
| 330 | + | |
| 331 | + | |
307 | 332 | | |
308 | 333 | | |
309 | 334 | | |
| |||
0 commit comments