The figure below calls out
- The netfilter hooks
- The order of table traversal
| Producer | |
| Setup | |
| bin/kafka-topics.sh --zookeeper localhost:2181/kafka-local --create --topic test-rep-one --partitions 6 --replication-factor 1 | |
| bin/kafka-topics.sh --zookeeper localhost:2181/kafka-local --create --topic test-rep-two --partitions 6 --replication-factor 3 | |
| Single thread, no replication | |
| bin/kafka-run-class.sh org.apache.kafka.tools.ProducerPerformance --print-metrics --topic test-rep-one --num-records 6000000 --throughput 100000 --record-size 100 --producer-props bootstrap.servers=kafka_host:9092 buffer.memory=67108864 batch.size=8196 | |
| Single-thread, async 3x replication |
| #!/usr/bin/env python3 | |
| # | |
| # Copyright (C) 2016 - Francesco Frassinelli | |
| # | |
| # This program is free software; you can redistribute it and/or modify | |
| # it under the terms of the GNU General Public License as published by | |
| # the Free Software Foundation; either version 3 of the License, or | |
| # (at your option) any later version. | |
| # | |
| # This program is distributed in the hope that it will be useful, |
| sudo apt-get update | |
| sudo apt-get upgrade | |
| sudo apt-get dist-upgrade | |
| sudo apt-get install htop | |
| sudo apt-get install build-essential | |
| sudo apt-get install libncurses-dev | |
| sudo apt-get install libssl-dev | |
| sudo apt-get install bc | |
| sudo apt-get install linux-source | |
| sudo -s |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| # Modified. | |
| # Original script source: | |
| # http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html | |
| # https://web.archive.org/web/20150312172727/http://blog.marcbelmont.com/2012/10/script-to-extract-email-attachments.html | |
| # Usage: | |
| # Run the script from a folder with file "all.mbox" |