No Description

Chris Mague 65bf02b1b1 notes 3 years ago
ansible 1f3b754c84 remove testing tag 3 years ago
inventories 98a3b80588 move configs for ansible to local 4 years ago
packaging 65bf02b1b1 notes 3 years ago
.gitignore 484f1509bf ignore RPM files 4 years ago
.terraform-version 98a3b80588 move configs for ansible to local 4 years ago
README.md 0c479da925 fix readme 4 years ago
gen_port_setup.py 468efd2e99 generate unit files and setup script 3 years ago
inputs.tf 118fce5406 add in testing instance 4 years ago
maguec1.tfvars 3f246dfbcc pudate node config 4 years ago
main.tf d314350cc0 add redis insight into the mix 4 years ago
raft_group_setup.tpl 3024bdf5da basic node setup complete 4 years ago
variables.tf 118fce5406 add in testing instance 4 years ago

README.md

Example of calling modules to build an RE environment

Prerequisites

  • aws-cli
  • tfenv
  • ansible

Generate Key Pair

aws ec2 create-key-pair --profile redislabs --key-name maguec1 --region us-west-1 \
| jq .KeyMaterial |  awk '{gsub(/\\n/,"\n")}1' | \
sed -e s/\"//g >> ~/.ssh/maguec1.pem

chmod 0600 ~/.ssh/maguec1.pem

Create a tfvars file

cat > my.tfvars << EOF

region    = "us-west-1"
profile   = "redislabs"
open-nets = ["2.214.8.28/32"]
vpc-azs   = ["us-west-1a", "us-west-1c"]
vpc-cidr  = "10.161.0.0/16"
vpc-name  = "matchkeyname"
common-tags     = {
  "Owner"       = "yourname"
  "Project"     = "cp-redis"
  "Environment" = "test"
}
EOF

Run Terraform

terraform init
terraform apply -var-file=my.tfvars

Run the ansible and command line output specified by terraform for setup

To create a tmux session with shells on all nodes

./cloud-tmux

Test command to run on the tester node

 memtier_benchmark  --cluster-mode -s 10.161.2.19 -p 19903 -t 10 -c 5 -d 100 --test-time=120 --hide-histogram