Skip to content

Commit

Permalink
tf: Resolve merge conflict in main.tf
Browse files Browse the repository at this point in the history
From ababaian@124ac1f
Chose incoming change, not sure which one is the right one so I chose
the newer one ...
  • Loading branch information
pingleig committed Mar 18, 2022
1 parent 18486ad commit 886f550
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 35 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ wiki/*
# Sublime
*sublime*

# Intellij
.idea/

# temporary files
*scratch*
*tmp*
Expand Down Expand Up @@ -169,3 +172,4 @@ dmypy.json
.terraform/
terraform.tfstate
terraform.tfstate.backup
.terraform.lock.hcl
35 changes: 0 additions & 35 deletions terraform/main/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,9 @@ variable "output_bucket" {
type = string
}

<<<<<<< HEAD
//variable "metrics_ip" {
// type = string
//}
=======
variable "metrics_ip" {
type = string
}
>>>>>>> d0fff74d593fc0da9cf5adc7da41fbd26498cefc

// PROVIDER/AWS ##############################
provider "aws" {
Expand Down Expand Up @@ -106,23 +100,13 @@ module "scheduler" {

security_group_ids = [aws_security_group.internal.id]
key_name = var.key_name
<<<<<<< HEAD
instance_type = "r5.2xlarge"
dockerhub_account = var.dockerhub_account
scheduler_port = var.scheduler_port
//# https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
//pg_shared_buffers = "2GB" # 1/4 of RAM
//pg_effective_cache = "6GB" # 3/4 of RAM
=======
instance_type = "m5.large"
dockerhub_account = var.dockerhub_account
scheduler_port = var.scheduler_port

# https://wiki.postgresql.org/wiki/Tuning_Your_PostgreSQL_Server
pg_shared_buffers = "2GB" # 1/4 of RAM
pg_effective_cache = "6GB" # 3/4 of RAM
>>>>>>> d0fff74d593fc0da9cf5adc7da41fbd26498cefc
}

// Cluster monitor
Expand All @@ -132,11 +116,7 @@ module "monitoring" {
security_group_ids = [aws_security_group.internal.id]
key_name = var.key_name
scheduler_ip = module.scheduler.private_ip
<<<<<<< HEAD
//metrics_ip = var.metrics_ip
=======
metrics_ip = var.metrics_ip
>>>>>>> d0fff74d593fc0da9cf5adc7da41fbd26498cefc
dockerhub_account = var.dockerhub_account
instance_type = "r5.xlarge"
}
Expand All @@ -152,13 +132,8 @@ module "download" {
security_group_ids = [aws_security_group.internal.id]

instance_type = "r5.xlarge" // Mitigate the memory leak in fastq-dump
<<<<<<< HEAD
volume_size = 150 // Mitigate the storage leak in fastq-dump
spot_price = 0.12
=======
volume_size = 100 // Mitigate the storage leak in fastq-dump
spot_price = 0.10
>>>>>>> d0fff74d593fc0da9cf5adc7da41fbd26498cefc

s3_bucket = module.work_bucket.name
s3_prefix = "fq-blocks"
Expand All @@ -178,15 +153,9 @@ module "align" {
max_size = 10000
dev_cidrs = var.dev_cidrs
security_group_ids = [aws_security_group.internal.id]
<<<<<<< HEAD
instance_type = "c5n.large" # c5.large
volume_size = 10
spot_price = 0.08
=======
instance_type = "c5.xlarge" # c5.large
volume_size = 12
spot_price = 0.10
>>>>>>> d0fff74d593fc0da9cf5adc7da41fbd26498cefc
s3_bucket = module.work_bucket.name
s3_delete_prefix = "fq-blocks"
s3_prefix = "bam-blocks"
Expand All @@ -200,10 +169,6 @@ module "align" {
//Serratus-merge
module "merge" {
source = "../worker"
<<<<<<< HEAD
=======
>>>>>>> d0fff74d593fc0da9cf5adc7da41fbd26498cefc
desired_size = 0
max_size = 1500
dev_cidrs = var.dev_cidrs
Expand Down

0 comments on commit 886f550

Please sign in to comment.