Skip to content

Instantly share code, notes, and snippets.

FWIW: I didn't produce the content presented here (the outline from Edmond Lau's book). I've just copy-pasted it from somewhere over the Internet, but I cannot remember what exactly the original source is. I was also not able to find the author's name, so I cannot give him/her the proper credits.


Effective Engineer - Notes

What's an Effective Engineer?

@smalldirector
smalldirector / benchmark-commands.txt
Created September 23, 2015 11:53 — forked from jkreps/benchmark-commands.txt
Kafka Benchmark Commands
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
@smalldirector
smalldirector / CommandExecutor.java
Last active December 14, 2015 23:39
ProcessBuilder创建本地进程执行命令
/**
* The tool provides the method to invoke the system command or the script.
* @author gabriel
* @date 2012-3-15
*/
public final class CommandExecutor {
public static final String SCRIPT_DIR = System.getProperty("user.dir");
private CommandExecutor() {}