Apache Nifi PublishKafka Retry Mechanism in case of failure
I want to do error handling of publish kafka processor in case of kafka goes down in apache nifi by retry mechanism. Retry mechanism needs to be implemented in separate flow(remove load from main flow).
Nifi version = 1.18.0
So, in case of failure of publishKafka processor should pass flow file in the failure relationship. Which is working properly in case of low count of incoming flow files.
Example- Initial image generated few flow files for failure case

Final image after some time Flow files successfully directed to failure relationship-

As the number of incoming flow files increases the flow files are not able to routed to the failure relationship by publishKafka processor.(which is the real life scenario, if kafka goes down then publishKafka processor will apply back pressure to incoming flow files.)
Here is my publishKafka processor configs

I tried using inbuilt retry mechanism of nifi processor

But still the issue is not resolved, publish kafka processor not forwarding flow files in failure relationship in case of error.

