title: Spring Boot Kafka: Commit cannot be completed since the group has already rebalanced
body: <p>Today, in my Spring Boot and single instance Kafka application I faced the following issue:</p>
  
  <blockquote>
    <p>org.apache.kafka.clients.consumer.CommitFailedException: Commit cannot
    be completed since the group has already rebalanced and assigned the
    partitions to another member. This means that the time between
    subsequent calls to poll() was longer than the configured
    max.poll.interval.ms, which typically implies that the poll loop is
    spending too much time message processing. You can address this either
    by increasing the session timeout or by reducing the maximum size of
    batches returned in poll() with max.poll.records.</p>
  </blockquote>
  
  <p>What may be the reason for this and how to fix it? As far as I understand - my consumer was blocked for a long time and didn't respond for the heartbeat. And I should adjust Kafka properties in order to address it. Could you please tell me what exact properties should I adjust and where, for example on the Kafka side or on my application Spring Kafka side?</p>