Knative configuration as below:
- Source: AWS SQS source
- Broker: Kafka broker
- Trigger: A trigger with sink is a Knative service
- Knative service: A knative service with containerConcurrency = 1 (to make sure 1 request/pod at a time)
Send 1000 messages to SQS queue, Knative service only creates about 100-150 pods to process all requests.
I checked and found that Kafka broker only sends about 100-180 events to Knative Service at once.
Thus, Knative service only creates about 1xx pods to handle these events.
The remaining events will be failed to send to Knative service and broker will retry sending.
Is there any configuration in Kafka broker to increase number of events that will be sent to Knative service at once?
FYI:
- With MTchannelbased broker (in-memory channel), it can send 400-1000 events to Knative service at once.
- I use Knative v1.7.1 and Knative Kafka broker v1.7.0