mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
give an example on how to use @include statements
This commit is contained in:
parent
f5ccfb8afb
commit
5f3b0b0ac3
2 changed files with 31 additions and 10 deletions
22
etc/websocket-stats.conf
Normal file
22
etc/websocket-stats.conf
Normal file
|
@ -0,0 +1,22 @@
|
|||
/** This should be included to all websocket node configurations which report
|
||||
* path stats by the 'stats_send' hook.
|
||||
*
|
||||
* Have a look at etc/ws.conf for an example.
|
||||
*
|
||||
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
|
||||
* @copyright 2014-2015, Institute for Automation of Complex Power Systems, EONERC
|
||||
* This file is part of S2SS. All Rights Reserved. Proprietary and confidential.
|
||||
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
||||
*********************************************************************************/
|
||||
|
||||
series = (
|
||||
{ label = "Sent [#msgs]" },
|
||||
{ label = "Received [#msgs]" },
|
||||
{ label = "Invalid [#msgs]" },
|
||||
{ label = "Skipped [#msgs]" },
|
||||
{ label = "Dropped [#msgs]" },
|
||||
{ label = "Overruns [#msgs]" },
|
||||
{ label = "One-way delay [sec]" },
|
||||
{ label = "Send rate [samples/sec]" },
|
||||
{ label = "Receive rate [samples/sec]" }
|
||||
)
|
19
etc/ws.conf
19
etc/ws.conf
|
@ -1,13 +1,6 @@
|
|||
|
||||
############ Global Options ############
|
||||
|
||||
affinity = 0x02; # Mask of cores the server should run on
|
||||
# This also maps the NIC interrupts to those cores!
|
||||
|
||||
priority = 50; # Priority for the server tasks.
|
||||
# Usually the server is using a real-time FIFO
|
||||
# scheduling algorithm
|
||||
|
||||
debug = 10; # The level of verbosity for debug messages
|
||||
# Higher number => increased verbosity
|
||||
|
||||
|
@ -37,9 +30,10 @@ nodes = {
|
|||
}
|
||||
}
|
||||
|
||||
ws2 = {
|
||||
ws_stats = {
|
||||
type = "websocket",
|
||||
description = "Warum nicht noch einanderer?"
|
||||
description = "Statistics for path: ws => ws",
|
||||
@include "websocket-stats.conf" /* This adds a caption to the statistics plot */
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -47,7 +41,12 @@ nodes = {
|
|||
############ List of paths ############
|
||||
|
||||
paths = (
|
||||
{ in = "ws"; out = "ws"; hook = [ "ts", "fir:0" ]; rate = 20 }
|
||||
{
|
||||
in = "file",
|
||||
out = "ws",
|
||||
hook = [ "stats_send:ws_stats" ],
|
||||
rate = 20
|
||||
}
|
||||
);
|
||||
|
||||
http = {
|
||||
|
|
Loading…
Add table
Reference in a new issue