Hi Jun, Thank you for reviewing the KIP.
10. This is the current behaviour (this KIP retains the same behaviour for the default quota callback). We include 'user' and 'client-id' tags in all the quota metrics, rather than omit tags at the moment. 11. Ah, I hadn't realised that. I wasn't expecting to include deleted partitions in updatePartitionMetadata. I have updated the Javadoc in the KIP to reflect that. 12. When quotas are updated as a result of `updateQuota` or ` updatePartitionMetadata`, we may need to update quota bound for one or more existing metrics. I didn't want to expose metrics to the callback. So ` quotaLimit` was providing the new quotas corresponding to existing metrics. But perhaps a neater way to do this is to return updated quotas as the return value of `updateQuota` and `updatePartitionMetadata` so that the quota manager can handle metrics updates for those. I have updated the KIP. On Wed, Mar 14, 2018 at 9:57 PM, Jun Rao <j...@confluent.io> wrote: > Hi, Rajini, > > Thanks for the KIP. Looks good overall. A few comments below. > > 10. "If <user> quota config is used, *user* tag is set to user principal of > the session and *client-id* tag is set to empty string. " Could we just > omit such a tag if the value is empty? > > 11. I think Viktor has a valid point on handling partition removal. > Currently, we use -2 as the leader to signal the deletion of a partition. > Not sure if we want to depend on that in the interface since it's an > internal value. > > 12. Could you explain a bit more the need for quotaLimit()? This is called > after the updateQuota() call. Could we just let updateQuota do what > quotaLimit() > does? > > Jun > > On Wed, Feb 21, 2018 at 10:57 AM, Rajini Sivaram <rajinisiva...@gmail.com> > wrote: > > > Hi all, > > > > I have submitted KIP-257 to enable customisation of client quota > > computation: > > > > https://cwiki.apache.org/confluence/display/KAFKA/KIP- > > 257+-+Configurable+Quota+Management > > > > > > The KIP proposes to make quota management pluggable to enable group-based > > and partition-based quotas for clients. > > > > Feedback and suggestions are welcome. > > > > Thank you... > > > > Regards, > > > > Rajini > > >