replication-manager
replication-manager copied to clipboard
Slow interface when many log lines to display
The use of Replication Manager Http Monitoring (v2.0.1) is extremely slow when there are many log lines to display (a few thousand).
In my case, only 2'200 log lines are displayed and rendering and scrolling are very slow...
MacBook Pro (early 2015) 2,7 GHz Intel Core i5 Mac OS 10.14 Google Chrome Version 70.0.3538.77
Any improvement is welcome!
Noted as a reasonable feature request
I've checked the code and we only return 1000 log lines in http; are you sure you get 2200?
So it was slow with 1000 log lines :) 2200 was the number of lines in my logfile on filesystem in fact...
Guillaume should be pretty easy to expose monitoring-log-lines as a config
can you please try this dashboard.js file as a quick patch? (please move it under /usr/share/replication-manager/dashboard/) it should restrict the log to 200 lines. I will find the reasons for the performance hit when I have time..
https://gist.github.com/tanji/c260ab074612604d1684a2ad0e70aad3
Ok thanks for the patch, it should meet my needs for the moment.