Sin descripción

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

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