Skip to content

Commit

Permalink
tf: add peerset-2022-10-10 experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
iand committed Oct 10, 2022
1 parent 83522c6 commit 67d3661
Showing 1 changed file with 93 additions and 0 deletions.
93 changes: 93 additions & 0 deletions tf/experiment-peerset.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
module "peerset" {
source = "./modules/experiment"
name = "peerset-2022-10-10"
request_rate = 20
request_source = "sqs"

ecs_cluster_id = module.ecs-asg.cluster_id
efs_file_system_id = aws_efs_file_system.thunderdome.id
vpc_subnets = module.vpc.public_subnets
dealgood_security_groups = [aws_security_group.dealgood.id]
execution_role_arn = aws_iam_role.ecsTaskExecutionRole.arn
dealgood_task_role_arn = aws_iam_role.dealgood.arn
log_group_name = aws_cloudwatch_log_group.logs.name
aws_service_discovery_private_dns_namespace_id = aws_service_discovery_private_dns_namespace.main.id
ssm_exec_policy_arn = aws_iam_policy.ssm-exec.arn
grafana_agent_dealgood_config_url = "http://${module.s3_bucket_public.s3_bucket_bucket_domain_name}/${module.grafana_agent_config["dealgood"].s3_object_id}"
grafana_agent_target_config_url = "http://${module.s3_bucket_public.s3_bucket_bucket_domain_name}/${module.grafana_agent_config["target"].s3_object_id}"
request_sns_topic_arn = aws_sns_topic.gateway_requests.arn

grafana_secrets = [
{ name = "GRAFANA_USER", valueFrom = "${data.aws_secretsmanager_secret.grafana-push-secret.arn}:username::" },
{ name = "GRAFANA_PASS", valueFrom = "${data.aws_secretsmanager_secret.grafana-push-secret.arn}:password::" }
]

dealgood_secrets = [
{ name = "DEALGOOD_LOKI_USERNAME", valueFrom = "${data.aws_secretsmanager_secret.dealgood-loki-secret.arn}:username::" },
{ name = "DEALGOOD_LOKI_PASSWORD", valueFrom = "${data.aws_secretsmanager_secret.dealgood-loki-secret.arn}:password::" },
]

shared_env = [
{ name = "IPFS_PROFILE", value = "server" },
]

targets = {
"-600_a" = {
image = "147263665150.dkr.ecr.eu-west-1.amazonaws.com/thunderdome:kubo-psd-opts3"
environment = [
{ name = "TD_KUBO_SWARM_CONNMGR_HIGHWATER", value = "600" },
{ name = "TD_KUBO_SWARM_CONNMGR_LOWWATER", value = "600" },
]
}
"-600_b" = {
image = "147263665150.dkr.ecr.eu-west-1.amazonaws.com/thunderdome:kubo-psd-opts3"
environment = [
{ name = "TD_KUBO_SWARM_CONNMGR_HIGHWATER", value = "600" },
{ name = "TD_KUBO_SWARM_CONNMGR_LOWWATER", value = "600" },
]
}
"2000_a" = {
image = "147263665150.dkr.ecr.eu-west-1.amazonaws.com/thunderdome:kubo-psd-opts3"
environment = [
{ name = "TD_KUBO_SWARM_CONNMGR_HIGHWATER", value = "2000" },
{ name = "TD_KUBO_SWARM_CONNMGR_LOWWATER", value = "2000" },
]
}
"2000_a" = {
image = "147263665150.dkr.ecr.eu-west-1.amazonaws.com/thunderdome:kubo-psd-opts3"
environment = [
{ name = "TD_KUBO_SWARM_CONNMGR_HIGHWATER", value = "2000" },
{ name = "TD_KUBO_SWARM_CONNMGR_LOWWATER", value = "2000" },
]
}
"5000_a" = {
image = "147263665150.dkr.ecr.eu-west-1.amazonaws.com/thunderdome:kubo-psd-opts3"
environment = [
{ name = "TD_KUBO_SWARM_CONNMGR_HIGHWATER", value = "5000" },
{ name = "TD_KUBO_SWARM_CONNMGR_LOWWATER", value = "5000" },
]
}
"5000_b" = {
image = "147263665150.dkr.ecr.eu-west-1.amazonaws.com/thunderdome:kubo-psd-opts3"
environment = [
{ name = "TD_KUBO_SWARM_CONNMGR_HIGHWATER", value = "5000" },
{ name = "TD_KUBO_SWARM_CONNMGR_LOWWATER", value = "5000" },
]
}
"9000_a" = {
image = "147263665150.dkr.ecr.eu-west-1.amazonaws.com/thunderdome:kubo-psd-opts3"
environment = [
{ name = "TD_KUBO_SWARM_CONNMGR_HIGHWATER", value = "9000" },
{ name = "TD_KUBO_SWARM_CONNMGR_LOWWATER", value = "9000" },
]
}
"9000_b" = {
image = "147263665150.dkr.ecr.eu-west-1.amazonaws.com/thunderdome:kubo-psd-opts3"
environment = [
{ name = "TD_KUBO_SWARM_CONNMGR_HIGHWATER", value = "9000" },
{ name = "TD_KUBO_SWARM_CONNMGR_LOWWATER", value = "9000" },
]
}
}
}

0 comments on commit 67d3661

Please sign in to comment.