replication-manager icon indicating copy to clipboard operation
replication-manager copied to clipboard

Slow interface when many log lines to display

Open koleo opened this issue 6 years ago • 6 comments

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!

koleo avatar Oct 31 '18 09:10 koleo

Noted as a reasonable feature request

tanji avatar Oct 31 '18 10:10 tanji

I've checked the code and we only return 1000 log lines in http; are you sure you get 2200?

tanji avatar Nov 08 '18 09:11 tanji

So it was slow with 1000 log lines :) 2200 was the number of lines in my logfile on filesystem in fact...

koleo avatar Nov 08 '18 09:11 koleo

Guillaume should be pretty easy to expose monitoring-log-lines as a config

svaroqui avatar Nov 08 '18 09:11 svaroqui

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

tanji avatar Nov 08 '18 09:11 tanji

Ok thanks for the patch, it should meet my needs for the moment.

koleo avatar Nov 08 '18 09:11 koleo