Hello Viquar,

Thanks for the quick and constructive reply, and for KIP-1267, which was
the starting point for this work. I agree with the split: KIP-1404 covers
who reads from remote storage (broker-side identity and volume), and
KIP-1267 covers what those reads cost at the storage layer.

Would you prefer to keep two KIPs with a clear dependency? I lean towards
keeping them separate, since 1404 is small and can land first, but I'm open
to either.

One point I'd like to settle early: the number of requests made to S3 or
GCS depends on the plugin. A single Kafka fetch can turn into several
storage requests inside the plugin (for example the Aiven plugin splits it
into chunk reads and index lookups, and may skip the store entirely on a
cache hit). Because of that, the broker cannot compute storage request
counts or cost from what it sees.

In cases like this, where one Kafka fetch turns into a plugin-dependent
number of S3 or GCS requests, how does KIP-1267 plan to get the
storage-level numbers? Do you have an approach in mind?

I'd be glad to align the two. Here is a concrete proposal I have in mind,
and I'd welcome your thoughts:

   - Same key. KIP-1267 would use the same tags as KIP-1404: user (always),
   topic and client-id (optional, off by default). This lets operators join
   the two sets of metrics directly.
   - Same group and naming. Both KIPs would use kebab-case names in the
   Metrics registry, in the group remote-fetch-principal-metrics
   (kafka.server:type=remote-fetch-principal-metrics). Cost metrics from
   KIP-1267 would be extra attributes on the same MBean, so no new keys are
   created.
   - Shared limits. KIP-1267 would reuse the TTL and max.keys settings from
   KIP-1404, so there is one cardinality budget and no second set of configs.
   - No duplicate series. KIP-1404 keeps request and byte counts as seen by
   the broker. KIP-1267 adds only what the broker cannot see, such as storage
   requests, bytes transferred, or egress cost.

   Two questions: -
   - Which metric names and tags does KIP-1267 currently propose? I'd like
   to avoid any overlap with remote-fetch-byte-* and remote-fetch-request-*.
   - Would you prefer to keep two KIPs with a clear dependency, or merge
   them? I lean towards keeping them separate, since 1404 is small and can
   land first, but I'm open to either.




On Sun, Nov 29, 2026 at 12:58 AM vaquar khan <[email protected]> wrote:

> Hi Avishek,
>
> Thank you for putting together KIP-1404 and for referencing my earlier
> proposal, KIP-1267 (KAFKA-20047).
>
> As the author of KIP-1267, I originally introduced the multi-tenant
> remote-read attribution architecture to solve the exact visibility gap
> around identifying noisy neighbors and attributing tiered storage fetches
> beyond topic-level aggregates
> https://lists.apache.org/thread/vvl5lpw64kvvgrr718pnztdltc2p6vb4
> <[https://lists.apache.org/thread/vvl5lpw64kvvgrr718pnztdltc2p6vb4>
>
>  Dividing the design between broker-side requester identity
> (KafkaPrincipal, topic, and optional client-id in RemoteLogReader) in
> KIP-1404 and storage-layer cost attribution in KIP-1267 is a clean
> separation of concerns that prevents duplicate metric series.
>
> I would be happy to collaborate on aligning the tag conventions and metric
> naming across both KIPs so operators can correlate broker-level principal
> fetch volume with storage-tier egress costs.
>
> +1
>
> Best regards,
>
> Viquar Khan
>
> https://www.linkedin.com/in/vaquar-khan-b695577/
>
> On Sat, 28 Nov 2026 at 12:25, Avishek Das <[email protected]> wrote:
>
> > Hi all,
> > Bumping this thread for review. I'd appreciate your feedback on KIP-1404.
> >
> > On Thu, Nov 26, 2026 at 4:52 PM Avishek Das <[email protected]>
> wrote:
> >
> > > Hi all,
> > >
> > > I would like to start the discussion on KIP-1404: Per-Principal Remote
> > > Storage Fetch Metrics.
> > >
> > > This is my first KIP. The implementation is already available as a
> draft
> > > PR, and it needs review. I know the usual order is KIP first, so please
> > > treat the PR only as a reference for the design. I am happy to change
> > > either one based on the discussion.
> > >
> > > KIP:
> > >
> >
> https://cwiki.apache.org/confluence/display/KAFKA/KIP-1404%3A+Per-Principal+Remote+Storage+Fetch+Metrics
> > >
> > > JIRA: https://issues.apache.org/jira/browse/KAFKA-21643
> > >
> > > PR (draft): https://github.com/apache/kafka/pull/24363
> > >
> > > Summary: KIP-1404 adds opt-in metrics (off by default) that show which
> > > principal reads from remote (tiered) storage, and optionally which
> topic
> > > and client-id. Today the KIP-963 metrics are per topic only. The new
> > > metrics are keyed by the authenticated principal, created only for
> > > principals that actually read remote data, removed after a TTL of
> > > inactivity, and bounded by a per-broker maximum. No protocol, client or
> > > plugin changes are needed.
> > >
> > > Thanks in advance for your time and feedback.
> > > --
> > > Thanks,
> > > *Avishek Das* <https://www.linkedin.com/in/imavishek/>
> > > SMTS At Salesforce <https://www.linkedin.com/company/salesforce/>
> > >
> >
>


-- 
Thanks again,
Avishek

Reply via email to