Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

At the time now, we update the number of tokens in the bucket with:

  • K = maxmin(K + (now - T) * R), B)

A partition mutation with N partitions is admitted iff K > 0, and updates K = K - N. The partition mutation request is rejected otherwise. The variation here is that we allow the number of tokens to become negative to accommodate any number of partitions for a topic.

If the number of tokens decreases below 0 (K <= 0), a new operation with N partition mutations has to wait for R * ( -K + N 1 ).

Partition Mutations Quota Manager

...