# Logstash 1.5.3 with Kafka 0.9's quota

**URL:** <https://discuss.elastic.co/t/logstash-1-5-3-with-kafka-0-9s-quota/37614>\
**Category:** Logstash\
**Created:** [December 19, 2015, 7:42am UTC](https://discuss.elastic.co/t/logstash-1-5-3-with-kafka-0-9s-quota/37614 "2015-12-19T07:42:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [December 19, 2015, 7:42am UTC](https://discuss.elastic.co/t/logstash-1-5-3-with-kafka-0-9s-quota/37614/1 "2015-12-19T07:42:24Z")

</div>

In Kafka 0.9 support for quota is added as mentioned [here](http://kafka.apache.org/090/documentation.html#design_quotas). I am having some doubts about the behavior of quota in accordance with logstash.

So in Kafka 0.9 quota can be configured for each client-id. If one of the client violates the quota then the kafka broker does not return an error rather it attempts to slow down a client exceeding its quota. It computes the amount of delay needed to bring a guilty client under it's quota and delays the response for that time.

Now the doubt I am having is let's say a single instance of logstash is pushing logs from two different services (logs are pushed via logstash-forwarder) to kafka with clientIds `A` & `B` respectively. `Client A` is sending data under its quota while `Client B` is exceeding its quota. Since client B violates the quota as configured in Kafka then Kafka will delay the response to slow down B to bring its usage under quota. This will in turn exert a back-pressure on the logstash-forwarder & slow its log forwarding to logstash.

Due to this slow down

1. Will the logstash-forwarder, who is forwarding logs for `Client A` (who is not violating the quota ) be effected in anyway or
2. The slow down of logstash will effect both `Client A` & `Client B` or
3. This will slow down all logstash outputs not just restricted to Kafka Outputs

---

<div class="post-metadata">

**Author:** ![Deb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/deb/32/46162_2.png) [@Deb](https://discuss.elastic.co/u/Deb)\
**Post date:** [December 20, 2015, 4:44pm UTC](https://discuss.elastic.co/t/logstash-1-5-3-with-kafka-0-9s-quota/37614/2 "2015-12-20T16:44:03Z")

</div>

@Joe_Lawson - Any thoughts?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 5:17am UTC](https://discuss.elastic.co/t/logstash-1-5-3-with-kafka-0-9s-quota/37614/3 "2017-07-06T05:17:46Z")

</div>

Closed on July 6, 2017, 5:17am UTC


