5.2. psConfig 예시
myconfig.json
{
"_meta": {
"display-name": "MY Testing",
},
"archives": {
"my_arch": {
"archiver": "http",
"data": {
"schema": 3,
"_url": "https://MY_ARCHIVER/logstash",
"verify-ssl": false,
"op": "put",
"_headers": {
"x-ps-observer": "{% scheduled_by_address %}",
"content-type": "application/json"
}
},
"_meta": {
"esmond_url": "https://MY_ARCHIVER/esmond/perfsonar/archive/"
}
}
},
"tasks": {
"owamp_task": {
"group": "my_hosts",
"test": "owamp",
"archives": ["my_arch"],
"reference": {
"display-task-group": ["MY Testing"],
"display-task-name": "MY Latency Testing"
}
},
"tput_iperf3_task": {
"group": "my_hosts",
"schedule": "sched_every_4h",
"test": "tput_iperf3",
"tools": [ "iperf3" ],
"archives": ["my_arch"],
"reference": {
"display-task-group": ["MY Testing"],
"display-task-name": "MY Throughput Testing"
}
},
"trace_task": {
"group": "my_hosts",
"schedule": "sched_every_10m",
"test": "trace",
"archives": ["my_arch"],
"reference": {
"display-task-group": ["MY Testing"],
"display-task-name": "MY Traceroute Testing"
}
}
},
"schedules": {
"sched_every_2h": {
"repeat": "PT2H",
"slip": "PT1H",
"sliprand": true
},
"sched_every_4h": {
"repeat": "PT4H",
"slip": "PT2H",
"sliprand": true
},
"sched_every_6h": {
"repeat": "PT6H",
"slip": "PT3H",
"sliprand": true
},
"sched_every_8h": {
"repeat": "PT8H",
"slip": "PT4H",
"sliprand": true
},
"sched_every_10m": {
"repeat": "PT600S",
"slip": "PT300S",
"sliprand": true
}
},
"tests": {
"owamp": {
"type": "latencybg",
"spec": {
"source": "{% address[0] %}",
"dest": "{% address[1] %}",
"source-node": "{% pscheduler_address[0] %}",
"dest-node": "{% pscheduler_address[1] %}",
"flip": "{% flip %}",
"bucket-width": 0.0001,
"packet-interval": 600,
"packet-count": 1,
"packet-padding": 0
}
},
"tput_iperf3": {
"type": "throughput",
"spec": {
"source": "{% address[0] %}",
"dest": "{% address[1] %}",
"source-node": "{% pscheduler_address[0] %}",
"dest-node": "{% pscheduler_address[1] %}",
"duration": "PT20S",
"omit": "PT3S"
}
},
"trace": {
"type": "trace",
"spec": {
"source": "{% address[0] %}",
"dest": "{% address[1] %}",
"source-node": "{% pscheduler_address[0] %}",
"hops": 64,
"length": 40,
"probe-type": "udp",
"sendwait": "PT5S",
"wait": "PT30S"
}
}
},
"groups": {
"my_hosts": {
"type": "mesh",
"addresses": [
{ "name": "gangneung" },
{ "name": "chuncheon" },
{ "name": "pyeongchang" },
{ "name": "seoul" }
]
}
},
"addresses": {
"gangneung" : {"address": "gangneung_ip_address" , "_meta":{}},
"chuncheon" : {"address": "chuncheon_ip_address" , "_meta":{}},
"pyeongchang" : {"address": "pyeongchang_ip_address", "_meta":{}},
"seoul" : {"address": "seoul_ip_address" , "_meta":{}}
}
}