이야기박스
Kafka ; linger time callback 본문
반응형
에러 로그
Expiring 1 record(s) for {topic-partition}: 5005 ms has passed since b atch creation plus linger time
Linger time이란?
# linger.ms
The producer groups together any records that arrive in between request transmissions into a single batched request. Normally this occurs only under load when records arrive faster than they can be sent out. However in some circumstances the client may want to reduce the number of requests even under moderate load. This setting accomplishes this by adding a small amount of artificial delay—that is, rather than immediately sending out a record the producer will wait for up to the given delay to allow other records to be sent so that the sends can be batched together. This can be thought of as analogous to Nagle's algorithm in TCP. This setting gives the upper bound on the delay for batching: once we get batch.size worth of records for a partition it will be sent immediately regardless of this setting, however if we have fewer than this many bytes accumulated for this partition we will 'linger' for the specified time waiting for more records to show up. This setting defaults to 0 (i.e. no delay). Setting linger.ms=5, for example, would have the effect of reducing the number of requests sent but would add up to 5ms of latency to records sent in the absence of load.
반응형
'Computer & Data > Big Data' 카테고리의 다른 글
Spark in action, 2nd edition study (0) | 2020.07.16 |
---|---|
[Flume] No configuration found for this host:** (0) | 2020.06.19 |
(작성중) 쿠버네티스 & 부하 테스트 (0) | 2019.11.28 |
[MSSQL] Deadlock (0) | 2019.08.13 |
Hadoop Configuration 없는 경우 발생 에러 (0) | 2019.02.25 |