Hi, Nikita, Thanks for the great KIP!

I have a few questions, when you get a chance, could you take a look?


ASH_00 : About Distinguishing pushes when a client switches brokers
Could you clarify how a broker determines which push a part belongs to when
two pushes have the same PartCount? For example, suppose broker A receives
part 0 of a two-part push but never receives part 1. In the next interval,
the client sends part 0 of a new two-part push to broker B, then switches
back to A for part 1. If A still has the previous push open, could it treat
the two parts as one complete snapshot even though they were collected at
different times?

Would it be sufficient for each broker to accept up to TelemetryMaxParts
requests per client per interval and leave it to the client to send only
one snapshot per interval? Together with the per-request size limit, this
would still bound both the number of requests and the total bytes a broker
accepts. Is there a use case that requires the broker itself to verify that
the requests belong to the same snapshot?

ASH_01 : About Handling a push that extends into the next interval
How should the client behave if the next interval begins while it is
waiting for a response to one part and still has more parts to send? If the
in-flight request succeeds, should the client finish sending the current
snapshot or discard the unsent parts because the interval has ended?

It would also help to clarify when the client should collect the next
snapshot. For example, with a 60-second interval, if a push starts at
12:01:00 and finishes at 12:02:05, should the client collect the next
snapshot immediately or wait until the next scheduled collection at
12:03:00?

ASH_02 : About Handling a part that exceeds the size limit after compression
The Packing section says that a part that fits within TelemetryMaxBytes
before compression will also fit after compression. Some inputs can grow
slightly when compressed. Could you clarify how the client should handle a
part whose uncompressed size is within the limit but whose compressed size
exceeds it?

Would it make sense for the client to check the compressed size before
sending the request and send that part uncompressed in this case? That
would preserve the PartCount and avoid having to drop the remaining parts
because of a TELEMETRY_TOO_LARGE response.

Best regards,
Sanghyeok An

2026년 11월 18일 (수) 오전 7:05, Nikita Shupletsov <[email protected]>님이 작성:

> Hello everyone,
>
> I'd like to start a discussion on KIP-1398, which proposes changes to the
> KIP-714 client telemetry protocol so that clients can send more data, in a
> more deterministic way.
>
> Today a client sends all its metrics for an interval in a single request,
> capped at telemetry.max.bytes. A client whose subscription selects more
> series than fit, which is easy to reach with per-partition or
> per-connection
> metrics, has its push rejected every interval and gets none of its metrics
> through.
>
> The KIP lets a client split one push across several requests, up to a limit
> the broker sets, and writes the payload more compactly so that each request
> holds more metrics. If a client still has more than fits, operators can
> prioritize subscriptions, and the client always drops the lowest-priority
> metrics first.
>
> KIP:
> https://cwiki.apache.org/confluence/display/KAFKA/KIP-1398%3A+Extending+the+client+telemetry+protocol
>
> Looking forward to your feedback.
>
> Thanks,
> Nikita
>

Reply via email to