title: Kafka Consumer group rebalancing
body: <p>I'm using kafka consumer group management for processing my messages. </p>
  
  <p>The processing time for my messages vary from one another. So I have set the max poll interval to 20 min for max records of 20. And I'm using 5 partition and 5 consumer instances with default config values apart from the above two.</p>
  
  <p>But still I'm getting the following error intermittently:</p>
  
  <pre><code>[Consumer clientId=consumer-3, groupId=amc_dashboard_analytics] Attempt to heartbeat failed since group is rebalancing
  </code></pre>
  
  <p>The understanding is that rebalancing won't occur unless poll is not called before max poll interval is reached as written in consumer config Docs. But for me rebalancing occurs before 20 minutes only.</p>
  
  <p>Also after few hours of running, all the assigned consumers just leave saying "Attempt to heartbeat failed since group is rebalancing" and do not join back again(Ideally should join back again).</p>
  
  <p>Am I missing something here? Any leads would be helpful.</p>