Alignak-monitoring-contrib / alignak-app

Desktop application in system tray for Alignak users.
GNU Affero General Public License v3.0
6 stars 2 forks source link

Improve App start for BIG backend #280

Closed algorys closed 6 years ago

algorys commented 6 years ago

Improve App start for BIG backends:

This is because there are many services to recover.

A test with a host and 50 services seems no slow down App.

The default is that the problems displayed by the application will have to be updated by the user (or application) as the services are added...

@mohierf , @ddurieux any suggestion for this ?

mohierf commented 6 years ago

@algorys : for the problems, you may use a specific request to get all the hosts/services which are problems ? Like the Web UI does ...

algorys commented 6 years ago

@mohierf yes, it's a good idea. And store them in a new item. I'll give a try.

EDIT:

After some tests, dedicated request for problems and host services are fast enough.

algorys commented 6 years ago

With last modifications, start of App is improved:

Before:

[2018-03-21,17:56:58]-alignak_app.app: [INFO] ----- Alignak-App START -----
[...]
[2018-03-21,17:59:28]-alignak_app.qobjects.app_main: [INFO] Display Alignak-App...

App start in 2 minutes 30 on a big backend... (sometimes a little less)

Now:

[2018-03-21,17:53:47]-alignak_app.app: [INFO] ----- Alignak-App START -----
[...]
[2018-03-21,17:54:13]-alignak_app.qobjects.app_main: [INFO] Display Alignak-App...

Start in 26 seconds on a big backend !

algorys commented 6 years ago

I think this is good.