aws configure set preview.efs true
aws efs describe-file-systems --profile TEST --region us-east-2
{
| # 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; | |
| } |
| 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 |
| 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 |
Connecting from Windows: http://www.techrepublic.com/blog/the-enterprise-cloud/connect-to-amazon-ec2-with-a-private-key-using-putty-and-pageant/
Connecting from Linux: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html
To install MySQL, run the following command from a terminal prompt:
sudo apt-get install mysql-server
Link to these links: https://git.io/vKSVZ
Module 1:
jenkins -jar jenkins.wardocker run -d \
--restart unless-stopped \
--name jenkins \| #!/bin/sh | |
| branch="$(git rev-parse --abbrev-ref HEAD)" | |
| # get computer name to append in Chime message | |
| username=$USER | |
| # a branch name where you want to prevent git push. In this case, it's "master" | |
| if [ "$branch" = "master" ]; then | |
| echo "You can't commit directly to '"${branch}"' branch" # webstorm or intellij will show this as popup |
| #!/usr/bin/env bash | |
| set -e | |
| CONTEXT="$1" | |
| if [[ -z ${CONTEXT} ]]; then | |
| echo "Usage: $0 KUBE-CONTEXT" | |
| exit 1 | |
| fi |
| AWSTemplateFormatVersion: 2010-09-09 | |
| Resources: | |
| OrdersTable: | |
| Type: AWS::DynamoDB::Table | |
| Properties: | |
| TableName: AuthorsTable_prod | |
| AttributeDefinitions: | |
| - AttributeName: "AuthorName" | |
| AttributeType: "S" | |
| - AttributeName: "BookTitle" |