aboutsummaryrefslogtreecommitdiffstats
path: root/fdio.infra.terraform/terraform-nomad-pyspark-etl/conf
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2022-12-07 13:11:10 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2022-12-09 10:37:24 +0000
commit5f4aeffb078342604a3fb1be86d91e7a12750691 (patch)
tree7b48c395644148e6c104c5d33d75b289119336f1 /fdio.infra.terraform/terraform-nomad-pyspark-etl/conf
parent420226fcfd8cab460f632c1401d6012dc353f6fd (diff)
feat(etl): Reconf type
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I1ce012e22d715a7371d03c086bb83e17592bd4e3
Diffstat (limited to 'fdio.infra.terraform/terraform-nomad-pyspark-etl/conf')
-rw-r--r--fdio.infra.terraform/terraform-nomad-pyspark-etl/conf/nomad/etl.hcl.tftpl30
1 files changed, 30 insertions, 0 deletions
diff --git a/fdio.infra.terraform/terraform-nomad-pyspark-etl/conf/nomad/etl.hcl.tftpl b/fdio.infra.terraform/terraform-nomad-pyspark-etl/conf/nomad/etl.hcl.tftpl
index 1fb2f22e43..aeef396301 100644
--- a/fdio.infra.terraform/terraform-nomad-pyspark-etl/conf/nomad/etl.hcl.tftpl
+++ b/fdio.infra.terraform/terraform-nomad-pyspark-etl/conf/nomad/etl.hcl.tftpl
@@ -109,6 +109,36 @@ job "${job_name}" {
memory = ${memory}
}
}
+ task "${job_name}-trending-reconf" {
+ artifact {
+ source = "git::https://github.com/FDio/csit"
+ destination = "local/csit"
+ }
+ driver = "docker"
+ config {
+ image = "${image}"
+ command = "gluesparksubmit"
+ args = [
+ "--driver-memory", "30g",
+ "--executor-memory", "30g",
+ "trending_reconf.py"
+ ]
+ work_dir = "/local/csit/csit.infra.etl"
+ }
+ env {
+ AWS_ACCESS_KEY_ID = "${aws_access_key_id}"
+ AWS_SECRET_ACCESS_KEY = "${aws_secret_access_key}"
+ AWS_DEFAULT_REGION = "${aws_default_region}"
+ OUT_AWS_ACCESS_KEY_ID = "${out_aws_access_key_id}"
+ OUT_AWS_SECRET_ACCESS_KEY = "${out_aws_secret_access_key}"
+ OUT_AWS_DEFAULT_REGION = "${out_aws_default_region}"
+ ${ envs }
+ }
+ resources {
+ cpu = ${cpu}
+ memory = ${memory}
+ }
+ }
task "${job_name}-stats" {
artifact {
source = "git::https://github.com/FDio/csit"