Pod was idle during processing. #3057
-
|
Dear all, No partitions were configured. Below my configurations of IBS and Pipeline. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
We don’t have any specific logic for message distribution across the pods. All messages are written to a common NATS stream, and each pod subscribes to the pull consumer to consume from it. Could you share the |
Beta Was this translation helpful? Give feedback.
-
|
Hi all, |
Beta Was this translation helpful? Give feedback.
-
|
I believe I’ve identified the issue. The problem is that, after a while, all chunks are distributed, but the number of pending messages in the ISB remains high because each step takes around 800 ms to process a single message. As a result, Numaflow starts upscaling, but there are no more messages left to distribute. By setting readBatchSize = 10, all instances received messages, and both upscaling and downscaling worked correctly. |
Beta Was this translation helpful? Give feedback.
I believe I’ve identified the issue.
The source generates 4,190 records within a few seconds, and the UDF was using the default readBatchSize of 500. It seems that Numaflow sends these chunks of data to each available instance.
The problem is that, after a while, all chunks are distributed, but the number of pending messages in the ISB remains high because each step takes around 800 ms to process a single message. As a result, Numaflow starts upscaling, but there are no more messages left to distribute.
By setting readBatchSize = 10, all instances received messages, and both upscaling and downscaling worked correctly.