mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
Use spaces for indention of Javacript files
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
parent
84617d71b1
commit
5d3b4bd4d6
2 changed files with 56 additions and 56 deletions
|
@ -24,43 +24,43 @@ var global = require(__dirname + '/global.js')
|
|||
global.plugins = glob.sync('/usr?(/local)/share/villas/node/plugins/*.so');
|
||||
|
||||
global.nodes = {
|
||||
loopback_node : {
|
||||
vectorize : 1,
|
||||
type : "loopback", // A loopback node will receive exactly the same data which has been sent to it.
|
||||
// The internal implementation is based on queue.
|
||||
queuelen : 10240 // The queue length of the internal queue which buffers the samples.
|
||||
},
|
||||
socket_node : {
|
||||
type : "socket",
|
||||
loopback_node : {
|
||||
vectorize : 1,
|
||||
type : "loopback", // A loopback node will receive exactly the same data which has been sent to it.
|
||||
// The internal implementation is based on queue.
|
||||
queuelen : 10240 // The queue length of the internal queue which buffers the samples.
|
||||
},
|
||||
socket_node : {
|
||||
type : "socket",
|
||||
|
||||
local : "*:12000",
|
||||
remote : "127.0.0.1:12000"
|
||||
}
|
||||
local : "*:12000",
|
||||
remote : "127.0.0.1:12000"
|
||||
}
|
||||
};
|
||||
|
||||
global.paths = [
|
||||
{
|
||||
in : "test_node",
|
||||
out : "socket_node",
|
||||
queuelen : 10000
|
||||
},
|
||||
{
|
||||
in : "socket_node",
|
||||
out : "test_node",
|
||||
queuelen : 10000,
|
||||
hooks : [
|
||||
{
|
||||
type : "stats",
|
||||
warmup : 100,
|
||||
verbose : true,
|
||||
format : "human",
|
||||
output : "./stats.log"
|
||||
},
|
||||
{
|
||||
type : "convert"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
in : "test_node",
|
||||
out : "socket_node",
|
||||
queuelen : 10000
|
||||
},
|
||||
{
|
||||
in : "socket_node",
|
||||
out : "test_node",
|
||||
queuelen : 10000,
|
||||
hooks : [
|
||||
{
|
||||
type : "stats",
|
||||
warmup : 100,
|
||||
verbose : true,
|
||||
format : "human",
|
||||
output : "./stats.log"
|
||||
},
|
||||
{
|
||||
type : "convert"
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
// Convert Javascript Object to JSON string
|
||||
|
|
|
@ -14,36 +14,36 @@ os = require('os');
|
|||
var logfile = "/var/log/villas-node_" + new Date().toISOString() + ".log"
|
||||
|
||||
module.exports = {
|
||||
affinity : 0x01, // Mask of cores the server should run on
|
||||
// This also maps the NIC interrupts to those cores!
|
||||
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.
|
||||
// Usually the server is using a real-time FIFO
|
||||
// scheduling algorithm
|
||||
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
|
||||
// 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.
|
||||
// A value of 0 disables the statistics.
|
||||
stats : 3, // The interval in seconds to print path statistics.
|
||||
// A value of 0 disables the statistics.
|
||||
|
||||
name : os.hostname(), // The name of this VILLASnode. Might by used by node-types
|
||||
// to identify themselves (default is the hostname).
|
||||
name : os.hostname(), // The name of this VILLASnode. Might by used by node-types
|
||||
// to identify themselves (default is the hostname).
|
||||
|
||||
log : {
|
||||
level : 5, // The level of verbosity for debug messages
|
||||
// Higher number => increased verbosity
|
||||
log : {
|
||||
level : 5, // The level of verbosity for debug messages
|
||||
// Higher number => increased verbosity
|
||||
|
||||
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
|
||||
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 : logfile, // File for logs
|
||||
},
|
||||
file : logfile, // File for logs
|
||||
},
|
||||
|
||||
http : {
|
||||
enabled : true, // Do not listen on port if true
|
||||
http : {
|
||||
enabled : true, // Do not listen on port if true
|
||||
|
||||
port : 80 // Port for HTTP connections
|
||||
}
|
||||
port : 80 // Port for HTTP connections
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue