Frontend Logfile Access #699
Labels
a:frontend
issue affecting the front-end (area group)
a:sidecar
issue related with the sidecar worker service
a:webserver
issue related to the webserver service
Issue
currently, the log file updates from all services are sent via a WebSocket to the frontend. this has recently caused serious performance issues as one service was spewing up to 300 log messages per second.
The log viewer in the frontend is implemented using the qooxdoo remote table model and as such is ideal for handling large amounts of data ... unfortunately, it is not used properly in the code.
Solution
In the backend, collect all the log messages created by the services and then provide two REST calls for the frontend to access them in 'reverse order'
the websocket connection would only be used to alert the frontend of new loglines available ... using ratelimiting of a lot logging is happening
for bonus points, the frontend would allow to enter a filter wich gets sent along with backend requests to limit the the log lines shown.
Contributes to #502
The text was updated successfully, but these errors were encountered: