Skip to content

Commit

Permalink
Change VM names and instance types from T2 to T3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Luis Lucas authored and iknite committed Feb 19, 2019
1 parent f738bc2 commit ff71620
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions deploy/aws/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ resource "null_resource" "prebuild" {
module "leader" {
source = "./modules/qed"

name = "leader"
instance_type = "t2.2xlarge"
name = "qed0"
instance_type = "t3.2xlarge"
volume_size = "20"
vpc_security_group_ids = "${module.security_group.this_security_group_id}"
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
Expand All @@ -46,8 +46,8 @@ module "leader" {
module "follower-1" {
source = "./modules/qed"

name = "follower-1"
instance_type = "t2.2xlarge"
name = "qed1"
instance_type = "t3.2xlarge"
volume_size = "20"
vpc_security_group_ids = "${module.security_group.this_security_group_id}"
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
Expand All @@ -58,7 +58,7 @@ module "follower-1" {
api_key: "terraform_qed"
path: "/var/tmp/qed/"
server:
node_id: "follower-1"
node_id: "qed1"
addr:
http: ":8800"
mgmt: ":8700"
Expand All @@ -75,8 +75,8 @@ module "follower-1" {
module "follower-2" {
source = "./modules/qed"

name = "follower-2"
instance_type = "t2.2xlarge"
name = "qed2"
instance_type = "t3.2xlarge"
volume_size = "20"
vpc_security_group_ids = "${module.security_group.this_security_group_id}"
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
Expand All @@ -87,7 +87,7 @@ module "follower-2" {
api_key: "terraform_qed"
path: "/var/tmp/qed/"
server:
node_id: "follower-2"
node_id: "qed2"
addr:
http: ":8800"
mgmt: ":8700"
Expand All @@ -104,7 +104,7 @@ module "follower-2" {
# source = "./modules/inmemory_storage"
#
# name = "inmemory-storage"
# instance_type = "t2.2xlarge"
# instance_type = "t3.small"
# volume_size = "20"
# vpc_security_group_ids = "${module.security_group.this_security_group_id}"
# subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
Expand All @@ -115,7 +115,7 @@ module "follower-2" {
# source = "./modules/qed"
#
# name = "agent-publisher"
# instance_type = "t2.2xlarge"
# instance_type = "t3.small"
# volume_size = "20"
# vpc_security_group_ids = "${module.security_group.this_security_group_id}"
# subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
Expand Down Expand Up @@ -146,7 +146,7 @@ module "follower-2" {
# source = "./modules/qed"
#
# name = "agent-monitor"
# instance_type = "t2.2xlarge"
# instance_type = "t3.small"
# volume_size = "20"
# vpc_security_group_ids = "${module.security_group.this_security_group_id}"
# subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
Expand Down Expand Up @@ -205,7 +205,7 @@ module "follower-2" {
module "prometheus" {
source = "./modules/prometheus"

instance_type = "t2.2xlarge"
instance_type = "t3.medium"
volume_size = "20"
vpc_security_group_ids = "${module.security_group.this_security_group_id}"
subnet_id = "${element(data.aws_subnet_ids.all.ids, 0)}"
Expand All @@ -220,27 +220,27 @@ module "prometheus" {
scrape_interval: 5s
static_configs:
- targets: ['localhost:9090']
- job_name: 'Qed-00-Host'
- job_name: 'Qed0-HostMetrics'
scrape_interval: 10s
static_configs:
- targets: ['${module.leader.private_ip}:9100', ]
- job_name: 'Qed-00-Service'
- job_name: 'Qed0-QedMetrics'
scrape_interval: 10s
static_configs:
- targets: ['${module.leader.private_ip}:8600']
- job_name: 'Qed-01-Host'
- job_name: 'Qed1-HostMetrics'
scrape_interval: 10s
static_configs:
- targets: ['${module.follower-1.private_ip}:9100']
- job_name: 'Qed-01-Service'
- job_name: 'Qed1-QedMetrics'
scrape_interval: 10s
static_configs:
- targets: ['${module.follower-1.private_ip}:8600']
- job_name: 'Qed-02-Host'
- job_name: 'Qed2-HostMetrics'
scrape_interval: 10s
static_configs:
- targets: ['${module.follower-2.private_ip}:9100']
- job_name: 'Qed-02-Service'
- job_name: 'Qed2-QedMetrics'
scrape_interval: 10s
static_configs:
- targets: ['${module.follower-2.private_ip}:8600']
Expand Down

0 comments on commit ff71620

Please sign in to comment.