Sem descrição

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

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