mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
cleanup syntax of example configs
This commit is contained in:
parent
05f0ba7ad5
commit
1c0510d28a
14 changed files with 113 additions and 115 deletions
|
@ -12,7 +12,7 @@
|
|||
# Copyright: 2016, Institute for Automation of Complex Power Systems, EONERC
|
||||
##
|
||||
|
||||
stats = 3; # The interval in seconds to print path statistics.
|
||||
stats = 3 # The interval in seconds to print path statistics.
|
||||
# A value of 0 disables the statistics.
|
||||
|
||||
name = "villas-acs" # The name of this VILLASnode. Might by used by node-types
|
||||
|
@ -20,16 +20,16 @@ name = "villas-acs" # The name of this VILLASnode. Might by used by node-typ
|
|||
|
||||
|
||||
log = {
|
||||
level = 5; # The level of verbosity for debug messages
|
||||
level = 5 # The level of verbosity for debug messages
|
||||
# Higher number => increased verbosity
|
||||
|
||||
faciltities = [ "path", "socket" ]; # The list of enabled debug faciltities.
|
||||
faciltities = [ "path", "socket" ] # The list of enabled debug faciltities.
|
||||
# If omitted, all faciltities are enabled
|
||||
# For a full list of available faciltities, check lib/log.c
|
||||
};
|
||||
}
|
||||
|
||||
http = {
|
||||
htdocs = "/villas/web/", # Root directory of internal webserver
|
||||
htdocs = "/villas/web/" # Root directory of internal webserver
|
||||
port = 80 # Port for HTTP connections
|
||||
}
|
||||
|
||||
|
@ -37,44 +37,43 @@ http = {
|
|||
|
||||
nodes = {
|
||||
ws = {
|
||||
type = "websocket",
|
||||
unit = "MVa",
|
||||
units = [ "V", "A", "Var" ],
|
||||
description = "Demo Channel",
|
||||
type = "websocket"
|
||||
unit = "MVa"
|
||||
units = [ "V", "A", "Var" ]
|
||||
description = "Demo Channel"
|
||||
series = (
|
||||
{ label = "Random walk" },
|
||||
{ label = "Sine" },
|
||||
{ label = "Rect" },
|
||||
{ label = "Ramp" }
|
||||
)
|
||||
},
|
||||
}
|
||||
socket1 = {
|
||||
type = "socket",
|
||||
layper = "udp",
|
||||
type = "socket"
|
||||
layper = "udp"
|
||||
|
||||
in = {
|
||||
address = "*:12000"
|
||||
},
|
||||
}
|
||||
out = {
|
||||
address = "127.0.0.1:12001"
|
||||
}
|
||||
},
|
||||
}
|
||||
socket2 = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
type = "socket"
|
||||
layer = "udp"
|
||||
|
||||
in = {
|
||||
address = "*:12001"
|
||||
},
|
||||
}
|
||||
out = {
|
||||
address = "127.0.0.1:1200"
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
############ List of paths ############
|
||||
|
||||
paths = (
|
||||
{ in = "socket2", out = "ws" }
|
||||
);
|
||||
)
|
||||
|
|
|
@ -26,17 +26,17 @@
|
|||
|
||||
############ Global Options ############
|
||||
|
||||
affinity = 0x01; # Mask of cores the server should run on
|
||||
affinity = 0x01 # Mask of cores the server should run on
|
||||
# This also maps the NIC interrupts to those cores!
|
||||
|
||||
#priority = 50; # Priority for the server tasks.
|
||||
#priority = 50 # Priority for the server tasks.
|
||||
# Usually the server is using a real-time FIFO
|
||||
# scheduling algorithm
|
||||
|
||||
# See: https://github.com/docker/docker/issues/22380
|
||||
# on why we cant use real-time scheduling in Docker
|
||||
|
||||
stats = 3; # The interval in seconds to print path statistics.
|
||||
stats = 3 # The interval in seconds to print path statistics.
|
||||
# A value of 0 disables the statistics.
|
||||
|
||||
name = "villas-acs" # The name of this VILLASnode. Might by used by node-types
|
||||
|
@ -44,17 +44,17 @@ name = "villas-acs" # The name of this VILLASnode. Might by used by node-typ
|
|||
|
||||
|
||||
logging = {
|
||||
level = 5; # The level of verbosity for debug messages
|
||||
level = 5 # The level of verbosity for debug messages
|
||||
# Higher number => increased verbosity
|
||||
|
||||
faciltities = [ "path", "socket" ]; # The list of enabled debug faciltities.
|
||||
faciltities = [ "path", "socket" ] # The list of enabled debug faciltities.
|
||||
# If omitted, all faciltities are enabled
|
||||
# For a full list of available faciltities, check lib/log.c
|
||||
|
||||
file = "/var/log/villas-node.log"; # File for logs
|
||||
file = "/var/log/villas-node.log" # File for logs
|
||||
|
||||
syslog = true; # Log to syslogd
|
||||
};
|
||||
syslog = true # Log to syslogd
|
||||
}
|
||||
|
||||
http = {
|
||||
enabled = true, # Do not listen on port if true
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*********************************************************************************/
|
||||
|
||||
stats = 1;
|
||||
debug = 10;
|
||||
stats = 1
|
||||
debug = 10
|
||||
|
||||
nodes = {
|
||||
node1 = {
|
||||
|
@ -37,4 +37,4 @@ nodes = {
|
|||
endian = "big", # Can be 'little' or 'small'. If not provided (default), little endianness logic will be applied
|
||||
vectorize = 1, # Number of samples to fetch per iteration from the socket
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -24,41 +24,41 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*********************************************************************************/
|
||||
|
||||
stats = 1;
|
||||
debug = 10;
|
||||
stats = 1
|
||||
debug = 10
|
||||
|
||||
nodes = {
|
||||
node1 = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
local = "192.168.88.128:12002", # Local ip:port, use '*' for random port
|
||||
remote = "192.168.88.129:12001",
|
||||
header = "villas", # 'gtnet-skt' or 'villas'. If not provided, 'villas' header will be used
|
||||
vectorize = 1, # Number of samples to fetch per iteration from the socket
|
||||
type = "socket"
|
||||
layer = "udp"
|
||||
local = "192.168.88.128:12002" # Local ip:port, use '*' for random port
|
||||
remote = "192.168.88.129:12001"
|
||||
header = "villas" # 'gtnet-skt' or 'villas'. If not provided, 'villas' header will be used
|
||||
vectorize = 1 # Number of samples to fetch per iteration from the socket
|
||||
netem = {
|
||||
enabled = false,
|
||||
delay = 1000000, # In micro seconds!
|
||||
jitter = 300000,
|
||||
enabled = false
|
||||
delay = 1000000 # In micro seconds!
|
||||
jitter = 300000
|
||||
distribution = "normal"
|
||||
}
|
||||
},
|
||||
node2 = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
local = "*:12004", # Local ip:port, use '*' for random port
|
||||
remote = "192.168.88.129:12005",
|
||||
header = "villas", # 'gtnet-skt' or 'villas'. If not provided, 'villas' header will be used
|
||||
type = "socket"
|
||||
layer = "udp"
|
||||
local = "*:12004" # Local ip:port, use '*' for random port
|
||||
remote = "192.168.88.129:12005"
|
||||
header = "villas" # 'gtnet-skt' or 'villas'. If not provided, 'villas' header will be used
|
||||
vectorize = 1 # Number of samples to fetch per iteration from the socket
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
paths = (
|
||||
{
|
||||
in = "node1", # Name of the node we listen to (see above)
|
||||
out = "node1", # And we loop back to the origin
|
||||
in = "node1" # Name of the node we listen to (see above)
|
||||
out = "node1" # And we loop back to the origin
|
||||
|
||||
hooks = (
|
||||
{ type = "print", output = "stdout" }
|
||||
)
|
||||
}
|
||||
);
|
||||
)
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*********************************************************************************/
|
||||
|
||||
stats = 1;
|
||||
debug = 10;
|
||||
stats = 1
|
||||
debug = 10
|
||||
|
||||
nodes = {
|
||||
node1 = {
|
||||
|
@ -50,7 +50,7 @@ nodes = {
|
|||
header = "villas", # 'gtnet-skt' or 'villas'. If not provided, 'villas' header will be used
|
||||
vectorize = 1 # Number of samples to fetch per iteration from the socket
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
paths = (
|
||||
{
|
||||
|
@ -61,4 +61,4 @@ paths = (
|
|||
{ type = "print", output = "stdout" }
|
||||
)
|
||||
}
|
||||
);
|
||||
)
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*********************************************************************************/
|
||||
|
||||
stats = 1;
|
||||
debug = 10;
|
||||
stats = 1
|
||||
debug = 10
|
||||
|
||||
nodes = {
|
||||
node1 = {
|
||||
|
@ -50,7 +50,7 @@ nodes = {
|
|||
header = "gtnet-skt", # 'gtnet-skt' or 'villas'. If not provided, 'villas' header will be used
|
||||
vectorize = 1 # Number of samples to fetch per iteration from the socket
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
paths = (
|
||||
{
|
||||
|
@ -61,4 +61,4 @@ paths = (
|
|||
{ type = "print", output = "stdout" }
|
||||
)
|
||||
}
|
||||
);
|
||||
)
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*********************************************************************************/
|
||||
|
||||
stats = 1;
|
||||
debug = 10;
|
||||
stats = 1
|
||||
debug = 10
|
||||
|
||||
nodes = {
|
||||
node1 = {
|
||||
|
@ -50,7 +50,7 @@ nodes = {
|
|||
header = "gtnet-skt", # 'gtnet-skt' or 'villas'. If not provided, 'villas' header will be used
|
||||
vectorize = 1 # Number of samples to fetch per iteration from the socket
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
paths = (
|
||||
{
|
||||
|
@ -61,4 +61,4 @@ paths = (
|
|||
{ type = "print", output = "stdout" }
|
||||
)
|
||||
}
|
||||
);
|
||||
)
|
||||
|
|
|
@ -24,8 +24,8 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*********************************************************************************/
|
||||
|
||||
stats = 1;
|
||||
debug = 10;
|
||||
stats = 1
|
||||
debug = 10
|
||||
|
||||
nodes = {
|
||||
node1 = {
|
||||
|
@ -51,7 +51,7 @@ nodes = {
|
|||
header = "gtnet-skt", # 'gtnet-skt' or 'villas'. If not provided, 'villas' header will be used
|
||||
vectorize = 1 # Number of samples to fetch per iteration from the socket
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
paths = (
|
||||
{
|
||||
|
@ -62,4 +62,4 @@ paths = (
|
|||
{ type = "print", output = "stdout" }
|
||||
)
|
||||
}
|
||||
);
|
||||
)
|
||||
|
|
|
@ -25,8 +25,8 @@
|
|||
# Copyright: 2016, Institute for Automation of Complex Power Systems, EONERC
|
||||
##
|
||||
|
||||
stats = 1;
|
||||
debug = 10;
|
||||
stats = 1
|
||||
debug = 10
|
||||
|
||||
nodes = {
|
||||
node1 = {
|
||||
|
@ -53,7 +53,7 @@ nodes = {
|
|||
endian = "big",
|
||||
vectorize = 1 # Number of samples to fetch per iteration from the socket
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
paths = (
|
||||
{
|
||||
|
@ -70,4 +70,4 @@ paths = (
|
|||
{ type = "print", output = "stdout" }
|
||||
)
|
||||
}
|
||||
);
|
||||
)
|
||||
|
|
|
@ -1,18 +1,18 @@
|
|||
stats = 5.0;
|
||||
hugepages = 200;
|
||||
stats = 5.0
|
||||
hugepages = 200
|
||||
|
||||
nodes = {
|
||||
# Node names can be any alphanumeric value
|
||||
rpi-1 = {
|
||||
type = "socket";
|
||||
layer = "udp";
|
||||
type = "socket"
|
||||
layer = "udp"
|
||||
format = "gtnet" # pre-built format to communicate in RTDS GTNET-SKT payload
|
||||
|
||||
in = {
|
||||
address = "*:12005" # villas node machine IP and port number
|
||||
|
||||
signals = {
|
||||
count = 8,
|
||||
count = 8
|
||||
type = "float"
|
||||
}
|
||||
},
|
||||
|
@ -22,55 +22,55 @@ nodes = {
|
|||
|
||||
hooks = (
|
||||
{
|
||||
type = "stats",
|
||||
type = "stats"
|
||||
warmup = 3000
|
||||
}
|
||||
)
|
||||
},
|
||||
rpi-2 = {
|
||||
type = "socket";
|
||||
layer = "udp";
|
||||
type = "socket"
|
||||
layer = "udp"
|
||||
format = "gtnet" # pre-built format to communicate in RTDS GTNET-SKT payload
|
||||
|
||||
in = {
|
||||
address = "*:12006" # villas node machine IP and port number
|
||||
|
||||
signals = {
|
||||
count = 8,
|
||||
count = 8
|
||||
type = "float"
|
||||
}
|
||||
},
|
||||
}
|
||||
out = {
|
||||
address = "192.168.0.6:12006" # remote machine IP and port number
|
||||
},
|
||||
}
|
||||
|
||||
hooks = (
|
||||
{
|
||||
type = "stats",
|
||||
type = "stats"
|
||||
warmup = 3000
|
||||
}
|
||||
)
|
||||
},
|
||||
rtds-1 = {
|
||||
type = "socket";
|
||||
layer = "udp";
|
||||
format = "gtnet";
|
||||
type = "socket"
|
||||
layer = "udp"
|
||||
format = "gtnet"
|
||||
|
||||
in = {
|
||||
address = "*:12083" # villas node machine IP and port number
|
||||
|
||||
signals = {
|
||||
count = 8,
|
||||
count = 8
|
||||
type = "float"
|
||||
}
|
||||
},
|
||||
}
|
||||
out = {
|
||||
address = "192.168.0.4:12083" # remote machine IP and port number
|
||||
},
|
||||
}
|
||||
|
||||
hooks = (
|
||||
{
|
||||
type = "stats",
|
||||
type = "stats"
|
||||
warmup = 3000
|
||||
}
|
||||
)
|
||||
|
|
|
@ -38,7 +38,6 @@ paths = (
|
|||
{ type = "decimate", ratio = 2 }
|
||||
)
|
||||
},
|
||||
|
||||
{
|
||||
in = [ "web_node1" ],
|
||||
out = [ "udp_node1" ]
|
||||
|
|
|
@ -46,13 +46,13 @@
|
|||
*********************************************************************************/
|
||||
|
||||
|
||||
stats = 1;
|
||||
debug = 10;
|
||||
stats = 1
|
||||
debug = 10
|
||||
|
||||
nodes = {
|
||||
node1 = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
type = "socket"
|
||||
layer = "udp"
|
||||
|
||||
in = {
|
||||
address = "127.0.0.1:12000" # Local ip:port, use '*' for random port
|
||||
|
@ -61,16 +61,16 @@ nodes = {
|
|||
address = "127.0.0.1:12001"
|
||||
|
||||
netem = {
|
||||
enabled = false,
|
||||
delay = 1000000, # In micro seconds!
|
||||
jitter = 300000,
|
||||
enabled = false
|
||||
delay = 1000000 # In micro seconds!
|
||||
jitter = 300000
|
||||
distribution = "normal"
|
||||
}
|
||||
}
|
||||
},
|
||||
node2 = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
type = "socket"
|
||||
layer = "udp"
|
||||
in = {
|
||||
address = "127.0.0.1:12001" # Local ip:port, use '*' for random port
|
||||
}
|
||||
|
@ -79,8 +79,8 @@ nodes = {
|
|||
}
|
||||
},
|
||||
node3 = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
type = "socket"
|
||||
layer = "udp"
|
||||
in = {
|
||||
address = "127.0.0.1:12002" # Local ip:port, use '*' for random port
|
||||
}
|
||||
|
@ -89,26 +89,26 @@ nodes = {
|
|||
}
|
||||
},
|
||||
loopback = {
|
||||
type = "socket",
|
||||
layer = "udp",
|
||||
type = "socket"
|
||||
layer = "udp"
|
||||
in = {
|
||||
address = "127.0.0.1:12003", # Local ip:port, use '*' for random port
|
||||
address = "127.0.0.1:12003" # Local ip:port, use '*' for random port
|
||||
}
|
||||
out = {
|
||||
address = "127.0.0.1:12003",
|
||||
address = "127.0.0.1:12003"
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
paths = (
|
||||
{
|
||||
in = "node1", # Name of the node we listen to (see above)
|
||||
out = "node2", # And we loop back to the origin
|
||||
in = "node1" # Name of the node we listen to (see above)
|
||||
out = "node2" # And we loop back to the origin
|
||||
|
||||
hooks = (
|
||||
{
|
||||
type = "print";
|
||||
type = "print"
|
||||
}
|
||||
)
|
||||
}
|
||||
);
|
||||
)
|
||||
|
|
|
@ -36,4 +36,4 @@ nodes = {
|
|||
"http://localhost:8088/test_session"
|
||||
]
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*********************************************************************************/
|
||||
|
||||
stats = 1;
|
||||
stats = 1
|
||||
|
||||
nodes = {
|
||||
sig = {
|
||||
|
@ -79,7 +79,7 @@ nodes = {
|
|||
)
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
############ List of paths ############
|
||||
|
||||
|
@ -92,4 +92,4 @@ paths = (
|
|||
in = "ws_lo",
|
||||
out = "ws_lo"
|
||||
}
|
||||
);
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue