Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend Logfile Access #699

Open
oetiker opened this issue Apr 15, 2019 · 0 comments
Open

Frontend Logfile Access #699

oetiker opened this issue Apr 15, 2019 · 0 comments
Assignees
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

Comments

@oetiker
Copy link
Member

oetiker commented Apr 15, 2019

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'

  • contLogLines (tells the fontend how many log lines there are)
  • getLogLines (fetch the log data from line A to line B)

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

@pcrespov pcrespov added 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 labels Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants