From 67d3661821f759a6fe9cc0c26398593158f7079d Mon Sep 17 00:00:00 2001 From: Ian Davis Date: Mon, 10 Oct 2022 15:16:46 +0100 Subject: [PATCH] tf: add peerset-2022-10-10 experiment --- tf/experiment-peerset.tf | 93 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 tf/experiment-peerset.tf diff --git a/tf/experiment-peerset.tf b/tf/experiment-peerset.tf new file mode 100644 index 0000000..527d225 --- /dev/null +++ b/tf/experiment-peerset.tf @@ -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" }, + ] + } + } +} +