Setup
bin/kafka-topics.sh \
--zookeeper zookeeper.example.com:2181 \
--create \| # I was looking for a rate limiting library to call rate limited apis as closely | |
| # as possible to their enforced limits. I looked at the first few python libraries | |
| # that I found, and when I glanced at the source, they were all clearly broken. | |
| # Curious how this could be, I took all the top google and pip search results for: python rate limiting | |
| # and tried to get them to do the wrong thing and fail to rate limit in situations that could come up | |
| # in normal use (though in some cases very specific use) | |
| # https://github.com/tomasbasham/ratelimit | |
| # Where broken: |
| Producer | |
| Setup | |
| bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1 | |
| bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3 | |
| Single thread, no replication | |
| bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196 |