aws configure set preview.efs true
aws efs describe-file-systems --profile TEST --region us-east-2
{
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 |
export GOPATH="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)" | |
export OLDPS1=$PS1 | |
export PS1="[go:$(basename $GOPATH)] $PS1" | |
alias gcd="cd $GOPATH" | |
deactivate() { | |
export PS1=$OLDPS1 | |
unset GOPATH | |
unset OLDPS1 | |
unalias gcd | |
unset deactivate |
# the IP(s) on which your node server is running. I chose port 3000. | |
upstream app_geoforce { | |
server 127.0.0.1:3000; | |
} | |
upstream app_pcodes{ | |
server 127.0.0.1:3001; | |
} |
Source: https://multiplestates.wordpress.com/2015/02/05/rename-a-local-and-remote-branch-in-git/ | |
1. Rename your local branch: | |
If you are on the branch you want to rename: | |
git branch -m new-name | |
If you are on a different branch: | |
git branch -m old-name new-name | |
2. Delete the old-name remote branch and push the new-name local branch. |
deb http://archive.ubuntu.com/ubuntu artful main universe | |
deb http://us.archive.ubuntu.com/ubuntu/ artful main restricted | |
deb http://us.archive.ubuntu.com/ubuntu/ artful universe | |
deb http://us.archive.ubuntu.com/ubuntu/ artful multiverse | |
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates multiverse | |
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates universe | |
deb http://archive.ubuntu.com/ubuntu artful-updates main universe | |
deb http://us.archive.ubuntu.com/ubuntu/ artful-updates main restricted | |
deb http://archive.canonical.com/ubuntu artful partner | |
deb http://security.ubuntu.com/ubuntu artful-security main restricted |
################# | |
# # | |
# Hardening # | |
# # | |
################# | |
ChallengeResponseAuthentication no | |
### Temporarily enabled to check IPs of possibly attackers | |
PasswordAuthentication yes |
### Keybase proof | |
I hereby claim: | |
* I am cig0 on github. | |
* I am cig0 (https://keybase.io/cig0) on keybase. | |
* I have a public key ASDzL8PVlcXTJTNesuhv6vy2CjEA_Q6y7CDZPItWebX3awo | |
To claim this, I am signing this object: |