/etc/security/limits.conf
elasticsearch hard memlock 100000
/etc/default/elasticsearch
| # | |
| # CORS header support | |
| # | |
| # One way to use this is by placing it into a file called "cors_support" | |
| # under your Nginx configuration directory and placing the following | |
| # statement inside your **location** block(s): | |
| # | |
| # include cors_support; | |
| # | |
| # As of Nginx 1.7.5, add_header supports an "always" parameter which |
| server { | |
| listen 80; | |
| listen 443 default_server ssl; | |
| ssl on; | |
| ssl_certificate /etc/ssl/certs/myssl.crt; | |
| ssl_certificate_key /etc/ssl/private/myssl.key; | |
| server_name *.example.com; | |
| root /var/www/vhosts/website; |
| #!/bin/bash | |
| # Load balance multiple internet connections. Requires iproute2, awk and grep. | |
| # (C) 2016 Tobias Girstmair, isticktoit.net, GPLv2 | |
| # Also useful: speedometer -l -r eth1 -t eth1 -m $(( 1024 * 1024 * 3 / 2 )) | |
| # Not much user error checking is done - only pass working network connections | |
| # script needs root to work and at least two interfaces to be useful | |
| [ $EUID -eq 0 -a $# -ge 2 ] || { | |
| echo "Usage (as root): $0 iface1[:weight1] iface2[:weight2] ..." >&2 |
| version: "3" | |
| services: | |
| sonarqube: | |
| image: sonarqube | |
| expose: | |
| - 9000 | |
| ports: | |
| - "127.0.0.1:9000:9000" | |
| networks: |
| #!/bin/bash | |
| hosts=$@ | |
| date_cmd="" | |
| if [[ "$OSTYPE" == "darwin"* ]]; then | |
| # make sure you have 'coreutils' -- brew install coreutils | |
| date_cmd="gdate" | |
| else | |
| date_cmd="date" |
| 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 |
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile in an empty directory with the following content:
sudo useradd --system --shell /bin/false node_exporter
curl -fsSL https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz \
| sudo tar -zxvf - -C /usr/local/bin --strip-components=1 node_exporter-1.3.1.linux-amd64/node_exporter \
&& sudo chown node_exporter:node_exporter /usr/local/bin/node_exporter