-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a few region related issues with setup config
add more region flexibility to allow setup base rkv region in both east and west (or pretty much anywhere)
- Loading branch information
Showing
19 changed files
with
414 additions
and
18 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
62 changes: 62 additions & 0 deletions
62
scripts/config_examples/si_def_3_region_m5a.2xlarge_east.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"RegionConfigs": [ | ||
{ | ||
"Region": "us-west-1", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_west_1.pem", | ||
"AMI": "ami-067f8db0a5c2309c0" | ||
}, | ||
{ | ||
"Region": "us-west-2", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_west_2.pem", | ||
"AMI": "ami-0bf8f78223ea6f3f6" | ||
}, | ||
{ | ||
"Region": "us-east-1", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_east_1.pem", | ||
"AMI": "ami-0729e439b6769d6ab" | ||
}, | ||
{ | ||
"Region": "us-east-2", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_east_2.pem", | ||
"AMI": "ami-00978328f54e31526" | ||
} | ||
], | ||
"Stores": [ | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-east-1", | ||
"AvailabilityZone": "us-east-1a", | ||
"Port": 6666, | ||
"Count": 12, | ||
"InstanceType": "m5a.2xlarge" | ||
}, | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-east-1", | ||
"AvailabilityZone": "us-east-1b", | ||
"Port": 6666, | ||
"Count": 12, | ||
"InstanceType": "m5a.2xlarge" | ||
}, | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-east-2", | ||
"AvailabilityZone": "us-east-2a", | ||
"Port": 6666, | ||
"Count": 12, | ||
"InstanceType": "m5a.2xlarge" | ||
}, | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-west-1", | ||
"AvailabilityZone": "us-west-1b", | ||
"Port": 6666, | ||
"Count": 18, | ||
"InstanceType": "m5a.2xlarge" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"RegionConfigs": [ | ||
{ | ||
"Region": "us-west-1", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_west_1.pem", | ||
"AMI": "ami-067f8db0a5c2309c0" | ||
}, | ||
{ | ||
"Region": "us-west-2", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_west_2.pem", | ||
"AMI": "ami-0bf8f78223ea6f3f6" | ||
}, | ||
{ | ||
"Region": "us-east-1", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_east_1.pem", | ||
"AMI": "ami-0729e439b6769d6ab" | ||
}, | ||
{ | ||
"Region": "us-east-2", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_east_2.pem", | ||
"AMI": "ami-00978328f54e31526" | ||
} | ||
], | ||
"Stores": [ | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-west-2", | ||
"AvailabilityZone": "us-west-2a", | ||
"Port": 6666, | ||
"Count": 3, | ||
"InstanceType": "t2.xlarge" | ||
}, | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-west-2", | ||
"AvailabilityZone": "us-west-2b", | ||
"Port": 6666, | ||
"Count":3, | ||
"InstanceType": "t2.xlarge" | ||
}, | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-west-1", | ||
"AvailabilityZone": "us-west-1b", | ||
"Port": 6666, | ||
"Count": 3, | ||
"InstanceType": "t2.xlarge" | ||
}, | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-east-1", | ||
"AvailabilityZone": "us-east-1a", | ||
"Port": 6666, | ||
"Count": 3, | ||
"InstanceType": "t2.xlarge" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"RegionConfigs": [ | ||
{ | ||
"Region": "us-west-1", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_west_1.pem", | ||
"AMI": "ami-067f8db0a5c2309c0" | ||
}, | ||
{ | ||
"Region": "us-west-2", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_west_2.pem", | ||
"AMI": "ami-0bf8f78223ea6f3f6" | ||
}, | ||
{ | ||
"Region": "us-east-1", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_east_1.pem", | ||
"AMI": "ami-0729e439b6769d6ab" | ||
}, | ||
{ | ||
"Region": "us-east-2", | ||
"KeyName": "regionless_kv_service_key", | ||
"FileName": "regionless_kv_service_key_us_east_2.pem", | ||
"AMI": "ami-00978328f54e31526" | ||
} | ||
], | ||
"Stores": [ | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-east-1", | ||
"AvailabilityZone": "us-east-1a", | ||
"Port": 6666, | ||
"Count": 3, | ||
"InstanceType": "t2.xlarge" | ||
}, | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-east-1", | ||
"AvailabilityZone": "us-east-1b", | ||
"Port": 6666, | ||
"Count": 3, | ||
"InstanceType": "t2.xlarge" | ||
}, | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-east-2", | ||
"AvailabilityZone": "us-east-2a", | ||
"Port": 6666, | ||
"Count": 3, | ||
"InstanceType": "t2.xlarge" | ||
}, | ||
{ | ||
"NamePrefix": "rkv-lab-si", | ||
"Region": "us-west-1", | ||
"AvailabilityZone": "us-west-1b", | ||
"Port": 6666, | ||
"Count": 3, | ||
"InstanceType": "t2.xlarge" | ||
} | ||
] | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
set -u | ||
|
||
## aws ec2 key pair name | ||
## e.g. KEY_NAME=hwchen01 | ||
: $KEY_NAME | ||
: $KEY_FILE #~/.ssh/aws-hwchen01.pem | ||
: $NAME_TAG | ||
|
||
export KEY_NAME KEY_FILE NAME_TAG | ||
|
||
export SI_DEF_FILE=../si_def.json | ||
|
||
## common to lab | ||
export SECURITY_GROUP=regionless_kv_service | ||
export LAB_TAG=rkv_perf_lab #todo: use it to tag all vms of perf lab | ||
|
||
## of redis backends | ||
export NUM_OF_SI=2 | ||
|
||
## disk size | ||
export SI_ROOT_DISK_VOLUME=32 | ||
|
||
## rkv service | ||
export RKV_INSTANCE_TYPE=m5a.8xlarge | ||
export RKV_AMI=ami-0f1c5fdb1989bb81b | ||
export RKV_VM_NAME=${NAME_TAG}-rkv-lab-rkv | ||
export RKV_REGION=us-east-1 | ||
export RKV_AZ=us-east-1a | ||
export RKV_ROOT_DISK_VOLUME=32 | ||
|
||
## of jaeger server | ||
export JAEGER_REGION=us-east-1 | ||
export JAEGER_AZ=us-east-1a | ||
export JAEGER_AMI=ami-0709d88d3f477f93c #hw-ami-jaeger5 | ||
export JAEGER_INSTANCE_TYPE=m5a.2xlarge | ||
export JAEGER_ROOT_DISK_VOLUME=200 | ||
export JAEGER_VM_NAME=${NAME_TAG}-rkv-lab-jaeger | ||
|
||
## of prometheus server | ||
|
||
## of go-ycsb client | ||
export YCSB_REGION=us-east-1 | ||
export YCSB_AZ=us-east-1a | ||
export YCSB_AMI=ami-0f1c5fdb1989bb81b #hw-ami-go-ycsb5 | ||
export YCSB_INSTANCE_TYPE=m5a.8xlarge | ||
export YCSB_ROOT_DISK_VOLUME=50 | ||
export YCSB_VM_NAME=${NAME_TAG}-rkv-lab-ycsb | ||
|
||
## logging | ||
export GREEN='\033[0;32m' | ||
export LIGHT_GREEN='\033[1;32m' | ||
export NC='\033[0m' # No Color |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
set -u | ||
|
||
## aws ec2 key pair name | ||
## e.g. KEY_NAME=hwchen01 | ||
: $KEY_NAME | ||
: $KEY_FILE #~/.ssh/aws-hwchen01.pem | ||
: $NAME_TAG | ||
|
||
export KEY_NAME KEY_FILE NAME_TAG | ||
|
||
export SI_DEF_FILE=../si_def.json | ||
|
||
## common to lab | ||
export SECURITY_GROUP=regionless_kv_service | ||
export LAB_TAG=rkv_perf_lab #todo: use it to tag all vms of perf lab | ||
|
||
## of redis backends | ||
export NUM_OF_SI=2 | ||
|
||
## disk size | ||
export SI_ROOT_DISK_VOLUME=32 | ||
|
||
## rkv service | ||
export RKV_INSTANCE_TYPE=t2.xlarge | ||
export RKV_AMI=ami-0bf8f78223ea6f3f6 #hw-ami-rkv-test2 | ||
export RKV_VM_NAME=${NAME_TAG}-rkv-lab-rkv | ||
export RKV_REGION=us-west-2 | ||
export RKV_AZ=us-west-2b | ||
export RKV_ROOT_DISK_VOLUME=32 | ||
|
||
## of jaeger server | ||
export JAEGER_REGION=us-west-2 | ||
export JAEGER_AZ=us-west-2b | ||
export JAEGER_AMI=ami-0f501c5343cd5d65a #hw-ami-jaeger5 | ||
export JAEGER_INSTANCE_TYPE=t2.xlarge | ||
export JAEGER_ROOT_DISK_VOLUME=200 | ||
export JAEGER_VM_NAME=${NAME_TAG}-rkv-lab-jaeger | ||
|
||
## of prometheus server | ||
|
||
## of go-ycsb client | ||
export YCSB_REGION=us-west-2 | ||
export YCSB_AZ=us-west-2b | ||
export YCSB_AMI=ami-03fadfb192c131dc0 #hw-ami-go-ycsb5 | ||
export YCSB_INSTANCE_TYPE=t2.xlarge | ||
export YCSB_ROOT_DISK_VOLUME=16 | ||
export YCSB_VM_NAME=${NAME_TAG}-rkv-lab-ycsb | ||
|
||
## logging | ||
export GREEN='\033[0;32m' | ||
export LIGHT_GREEN='\033[1;32m' | ||
export NC='\033[0m' # No Color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
set -u | ||
|
||
## aws ec2 key pair name | ||
## e.g. KEY_NAME=hwchen01 | ||
: $KEY_NAME | ||
: $KEY_FILE #~/.ssh/aws-hwchen01.pem | ||
: $NAME_TAG | ||
|
||
export KEY_NAME KEY_FILE NAME_TAG | ||
|
||
export SI_DEF_FILE=../si_def.json | ||
|
||
## common to lab | ||
export SECURITY_GROUP=regionless_kv_service | ||
export LAB_TAG=rkv_perf_lab #todo: use it to tag all vms of perf lab | ||
|
||
## of redis backends | ||
export NUM_OF_SI=2 | ||
|
||
## disk size | ||
export SI_ROOT_DISK_VOLUME=32 | ||
|
||
## rkv service | ||
export RKV_INSTANCE_TYPE=t2.xlarge | ||
export RKV_AMI=ami-0729e439b6769d6ab #hw-ami-rkv-test2 | ||
export RKV_VM_NAME=${NAME_TAG}-rkv-lab-rkv | ||
export RKV_REGION=us-east-1 | ||
export RKV_AZ=us-east-1a | ||
export RKV_ROOT_DISK_VOLUME=32 | ||
|
||
## of jaeger server | ||
export JAEGER_REGION=us-east-1 | ||
export JAEGER_AZ=us-east-1a | ||
export JAEGER_AMI=ami-0709d88d3f477f93c #hw-ami-jaeger5 | ||
export JAEGER_INSTANCE_TYPE=t2.xlarge | ||
export JAEGER_ROOT_DISK_VOLUME=200 | ||
export JAEGER_VM_NAME=${NAME_TAG}-rkv-lab-jaeger | ||
|
||
## of prometheus server | ||
|
||
## of go-ycsb client | ||
export YCSB_REGION=us-east-1 | ||
export YCSB_AZ=us-east-1a | ||
export YCSB_AMI=ami-0f1c5fdb1989bb81b #hw-ami-go-ycsb5 | ||
export YCSB_INSTANCE_TYPE=t2.xlarge | ||
export YCSB_ROOT_DISK_VOLUME=16 | ||
export YCSB_VM_NAME=${NAME_TAG}-rkv-lab-ycsb | ||
|
||
## logging | ||
export GREEN='\033[0;32m' | ||
export LIGHT_GREEN='\033[1;32m' | ||
export NC='\033[0m' # No Color |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.