Skip to content
Snippets Groups Projects
Commit ef03c663 authored by Sergey Yakubov's avatar Sergey Yakubov
Browse files

updated nomad tests

parent fc4ec748
No related branches found
No related tags found
No related merge requests found
job "asapo-filemon-producer" {
job "asapo-filemon" {
datacenters = [
"dc1"]
......
job "asapo-filemon" {
datacenters = [
"dc1"]
type = "batch"
group "producer-windows" {
constraint {
attribute = "${attr.kernel.name}"
value = "windows"
}
count = 1
task "producer" {
driver = "raw_exec"
config {
command = "local/asapo-eventmon-producer.exe"
args = [
"local/test.json"]
}
artifact {
source = "http://nims.desy.de/extra/asapo/asapo-eventmon-producer-@ASAPO_VERSION@.exe"
mode = "file"
destination = "local/asapo-eventmon-producer.exe"
}
template {
data = <<EOH
{
"AsapoEndpoint":"psana002:8400",
"Tag":"test_tag",
"BeamtimeID":"asapo_test1",
"Mode":"tcp",
"NThreads":8,
"LogLevel":"debug",
"RootMonitoredFolder":"u:\\asapo",
"MonitoredSubFolders":["test_folder"],
"IgnoreExtentions":["tmp"],
"RemoveAfterSend":true,
"Subset": {
"Mode":"batch",
"BatchSize": {{ keyOrDefault "monitor_batch_size" "3" }}
}
}
EOH
destination = "local/test.json"
}
# resources {
# cpu = 5000
# memory = 128
# network {
# mbits = 10000
# }
} # producer task
}
#windows
group "producer-linux" {
constraint {
attribute = "${attr.kernel.name}"
value = "linux"
}
constraint {
attribute = "${meta.location}"
value = "petra3"
}
count = 1
task "producer" {
driver = "raw_exec"
config {
command = "local/asapo-eventmon-producer"
args = [
"local/test.json"]
}
artifact {
source = "http://nims.desy.de/extra/asapo/asapo-eventmon-producer-@ASAPO_VERSION@"
mode = "file"
destination = "local/asapo-eventmon-producer"
}
template {
data = <<EOH
{
"AsapoEndpoint":"psana002:8400",
"Tag":"test_tag",
"BeamtimeID":"asapo_test2",
"Mode":"tcp",
"NThreads":8,
"LogLevel":"debug",
"RootMonitoredFolder":"/run/user",
"MonitoredSubFolders":["data"],
"IgnoreExtentions":["tmp"],
"RemoveAfterSend":true,
"Subset": {
"Mode":"batch",
"BatchSize": {{ keyOrDefault "monitor_batch_size" "3" }}
}
}
EOH
destination = "local/test.json"
}
# resources {
# cpu = 5000
# memory = 128
# network {
# mbits = 10000
# }
# }
} # task producer
}
#linux
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment