Closed stv0g closed 1 year ago
In GitLab by @skolen on Apr 14, 2021, 09:18
marked this issue as related to #63
In GitLab by @laurafuentesgrau on Apr 21, 2021, 21:19
mentioned in commit fb6f4f2b973f193aec9c97f49450be37c639eab0
In GitLab by @skolen on Apr 26, 2021, 17:11
Hi @laurafuentesgrau
I have deployed a new version of the VILLASnode image in our k8s. Please test again if the problems you experienced with the previous version persist.
In GitLab by @laurafuentesgrau on Apr 27, 2021, 15:08
@skolen Thank you! VILLASnode can now process requests for node statistics and configs without restarting. I'm now capable of accessing the ACS Demo Signals villas-node configs but not the statistics information because the statistics collection for the node is not enabled. Would it be possible to enable it so I can work with the data?
In GitLab by @laurafuentesgrau on Apr 28, 2021, 14:03
mentioned in commit ea0ec52902d94b1ec85448b295258ddac275397c
In GitLab by @skolen on Apr 28, 2021, 14:54
I tried to enable statistics collection for the signal generator villas node, but I obtain the following error when I configure the stats
hook:
error node: Hook 'stats' not allowed here
@stvogel Does the websocket node type (or the signal generator) not support the stats
hook in general or am I doing something wrong?
Can you provide me the full configuration file?
In GitLab by @skolen on Apr 28, 2021, 15:01
Config file from Rancher (Helm-chart) + hook
{
"http": {
"htdocs": "/usr/share/villas/node/web",
"port": 8080
},
"hugepages": 0,
"logging": {
"level": "info"
},
"nodes": {
"lo": {
"type": "loopback"
},
"sig": {
"rate": 20,
"signal": "mixed",
"type": "signal",
"values": 5
},
"ws_lo": {
"in": {
"signals": []
},
"type": "websocket"
},
"ws_sig": {
"in": {
"signals": [
{
"name": "Loopback Signal",
"type": "float"
}
]
},
"type": "websocket"
}
},
"paths": [
{
"in": "sig",
"out": "ws_sig",
"hooks": [
{
"type": "stats",
"verbose": "true",
"format": "json",
"warmup": 100,
"buckets": 25
}
]
},
{
"in": "ws_lo",
"out": "lo"
},
{
"in": "lo",
"out": "ws_lo"
}
],
"uuid": "21c25635-0998-4658-8bd5-d7a68481a677"
}
Currently the stats hook is only supported for nodes.
Please place it into nodes.ws_sig.in.hooks[]
In GitLab by @skolen on Apr 28, 2021, 15:23
Thanks. Works now! I will add the stats hook config to the villas helm chart.
In GitLab by @laurafuentesgrau on May 6, 2021, 01:00
mentioned in commit dd453f668e369386db44fe7db35e457680074e50
In GitLab by @skolen on May 6, 2021, 16:35
mentioned in commit 57e6a6c3d064e8ebb4202c5afbeb61e4b0855bce
In GitLab by @skolen on May 7, 2021, 10:20
mentioned in commit 16c0dd176040619ed1b05c7ca2f0ec3836da168e
In GitLab by @skolen on May 7, 2021, 11:53
mentioned in commit 77ad58f892c32705e44d072aa68180c4f8bd91e4
In GitLab by @skolen on May 7, 2021, 13:23
I think this is done for now; status, config, and statistics of a VILLASnode are displayed as raw JSON on the IC page in addition to the parameters saved in the DB, the path graph and the control buttons.
Let us think about if an how we want to improve the visualization of these parameters first, and then open dedicated issues.
In GitLab by @skolen on May 18, 2021, 09:24
mentioned in issue web-backend-go#64
ICs of
category=gateway,type=villas-node
represent individual interfaces or "nodes" of a VILLASnode gateway. While the gateway itself is represented by an IC ofcategory=manager,type=villas-node
.I propose that we add an IC page customization for the interfaces which will show us the configuration and statistics about the interface.
We can query those via the VILLASnode API: https://git.rwth-aachen.de/acs/public/villas/node/-/blob/master/doc/openapi.yaml
Config
Request
Response
Statistics
Request
Response