From 0f96af5dd6971973f17f78e72da4fcead9dded0e Mon Sep 17 00:00:00 2001 From: Sergey Yakubov <sergey.yakubov@desy.de> Date: Mon, 16 Jul 2018 13:14:13 +0200 Subject: [PATCH] add workers to nomad job --- .../{asapo-test.nomad => asapo-test.nmd} | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) rename deploy/nomad_jobs/{asapo-test.nomad => asapo-test.nmd} (58%) diff --git a/deploy/nomad_jobs/asapo-test.nomad b/deploy/nomad_jobs/asapo-test.nmd similarity index 58% rename from deploy/nomad_jobs/asapo-test.nomad rename to deploy/nomad_jobs/asapo-test.nmd index 6974aa1b2..81bf22535 100644 --- a/deploy/nomad_jobs/asapo-test.nomad +++ b/deploy/nomad_jobs/asapo-test.nmd @@ -43,6 +43,76 @@ job "asapo-test" { } #windows + group "worker-linux1" { + + constraint { + attribute = "${attr.kernel.name}" + value = "linux" + } + +# constraint { +# attribute = "${meta.location}" +# operator = "!=" +# value = "petra3" +# } + + count = 1 + + task "worker-linux" { + driver = "raw_exec" + + config { + command = "local/getnext_broker" + args = [ + "psana002:8400", + "asapo_test1", + "8", + "oTsKsj8i6WcW_gVzeIFvZCtSfMErjDELJEyAI23n7Ik="] + } + + artifact { + source = "https://stash.desy.de/projects/ASAPO/repos/asapo-bin/raw/getnext_broker?at=refs%2Fheads%2Ffeature_ha" + } + } + + } # worker-linux1 + + +group "worker-linux2" { + + constraint { + attribute = "${attr.kernel.name}" + value = "linux" + } + +# constraint { +# attribute = "${meta.location}" +# operator = "!=" +# value = "petra3" +# } + + count = 1 + + task "worker-linux" { + driver = "raw_exec" + + config { + command = "local/getnext_broker" + args = [ + "psana002:8400", + "asapo_test2", + "8", + "yzgAcLmijSLWIm8dBiGNCbc0i42u5HSm-zR6FRqo__Y="] + } + + artifact { + source = "https://stash.desy.de/projects/ASAPO/repos/asapo-bin/raw/getnext_broker?at=refs%2Fheads%2Ffeature_ha" + } + } + + } # worker-linux2 + + group "linux-test" { constraint { -- GitLab