- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Kafka Shrinking/Expanding ISR for partition [TOPIC]
- Labels:
-
Apache Kafka
Created ‎03-08-2016 08:02 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm seeing a lot in kafka logs with Shrinking and Expanding ISR for partition [TOPIC].
Causing some of the brokers (and partitions) unavailable to producer and consumer clients.
I'm now looking at these configs
replica.fetch.wait.max.ms=500
replica.lag.time.max.ms=10000
replica.lag.max.messages=4000
Should I set these to higher value? What is the best value for these param?
Help is really appreciated. Thanks!
Created ‎03-12-2016 11:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have to see this
https://kafka.apache.org/082/ops.html
ISR shrink rate | kafka.server:type=ReplicaManager,name=IsrShrinksPerSec | If a broker goes down, ISR for some of the partitions will shrink. When that broker is up again, ISR will be expanded once the replicas are fully caught up. Other than that, the expected value for both ISR shrink rate and expansion rate is 0. |
Created ‎03-14-2016 01:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Neeraj Sabharwal,
Will the config I posted will help? I'm still looking for other reasons why my brokers are going down.
Created ‎03-14-2016 10:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Created ‎03-15-2016 01:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Michael Dennis Uanang Any update on this ? How many kafka brokers you have in your configuration ?
Created ‎03-15-2016 01:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I Have 3 brokers.
Another info:
When 2 brokers are down (logs with ISR Shrinking), the remaining broker will have OOM error.
I adjusted the Heap to 2GB.
