Wdr is a client-server process control system.
RUST_LOG=info cargo run -p wdr
RUST_LOG=info cargo run -p wdrm
Request:
GET /configs
Response:
{
"configs": [
{
"name": "hello",
"version": "1",
"resource": "https://example.com/path/to/hello",
"cmd": "./hello"
},
{
"name": "world",
"version": "1",
"resource": "https://example.com/path/to/world",
"cmd": "./world"
}
]
}
Request:
PUT /configs
{
"configs": [
{
"name": "hello",
"version": "1",
"resource": "https://example.com/path/to/hello",
"cmd": "./hello"
},
{
"name": "world",
"version": "1",
"resource": "https://example.com/path/to/world",
"cmd": "./world"
}
]
}
Request:
GET /nodes
Response:
[
"node-a-192.66.66.66",
"node-b-192.77.77.77",
"node-c-192.88.88.88"
]
Request:
GET /nodes/{node_name}/info
Response:
{
"processInfoList": [
{
"name": "hello",
"version": "1",
"state": "running"
},
{
"name": "world",
"version": "1",
"state": "downloading"
}
]
}
Request:
DELETE /nodes/{node_name}