Pedro Mázala
02/15/2024, 4:22 PMcapacity is per TM or per pipeline. By the code, it looks like it’s a TM capacity but I’d like to doublecheck.
In the other hand, the documentation talks about operator capacity, which leads to a Job capacity
Capacity: This parameter defines how many asynchronous requests may be in progress at the same time. Even though the async I/O approach leads typically to much better throughput, the operator can still be the bottleneck in the streaming application. Limiting the number of concurrent requests ensures that the operator will not accumulate an ever-growing backlog of pending requests, but that it will trigger backpressure once the capacity is exhausted. <https://nightlies.apache.org/flink/flink-docs-master/docs/dev/datastream/operators/asyncio/#async-io-api
|(1)>
Pedro Mázala
02/16/2024, 1:18 PMThe capacity is per instance of the async i/o operator. So in your example, there would be at most 500 concurrent http requests.So, per task. If a TM has 10 tasks and you have 5 TMs and your capacity is 10, you’d end-up with 10 * 5 * 10 = 500 simultaneous requests.