On 20.12.2017 at 20:17 wrote Chris Sheaves:
> I just updated a site to 17.2.4 including webui. Upgrade seemed to go fine. 
> The issue is when selecting a client with a large number of files, the file 
> list will take over 20 minutes to come back.


> Clicking to other tabs will do nothing until the task is complete. 

This should not happen.


> The bareos-audit.log shows:
> 
> 20-Dec 11:29 : Console [admin] from [127.0.0.1] cmdline .bvfs_lsdirs 
> jobid=778,804,829 path= limit=1000 offset=0
> 20-Dec 11:29 : Console [admin] from [127.0.0.1] cmdline .bvfs_update 
> jobid=778,804,829
> 20-Dec 11:29 : Console [admin] from [127.0.0.1] cmdline .bvfs_lsdirs 
> jobid=778,804,829 path= limit=1000 offset=1000
> 
> This appears over and over until it reaches:
> 
> 20-Dec 11:50 : Console [admin] from [127.0.0.1] cmdline .bvfs_lsdirs 
> jobid=778,804,829 path= limit=1000 offset=10349000
> 20-Dec 11:50 : Console [admin] from [127.0.0.1] cmdline status director
> 
> The Dashboard state 9150221 files, 617 jobs.
> 
> This is one of my smallest locations for number of client/files, and the UI 
> will not be usable for restores at larger sites.
> 
> If I browse away from this client and back, the count starts all over again. 
> Is this expected behavior? Is there anything I can do to improve the 
> responsiveness of the restore list?

I doubt, that this behavior is correct.
There are multiple steps here (see
http://doc.bareos.org/master/html/bareos-developer-guide.html#sec:bvfs
for details).

.bvfs_update jobid=778,804,829

updates the cache. It seems, this has already be done for your jobids,
otherwise it would have taken longer.

I way to improve responsiveness is to run ".bvfs_update" without
parameter at night. It will than update all jobs. However, this can take
a long time.

Before bareos-17.2 there have been the implicit limitation of displaying
only 2000 files per directory.

This have now been resolved, together with proper ACL handling of limit
and offset. bareos-webui does so by looping over the result set.
However, it is not expected to take so long. Can you please provide the
output of following bconsole commands:

.api json
.bvfs_lsdirs jobid=778,804,829 path= limit=1000 offset=0
.bvfs_lsdirs jobid=778,804,829 path= limit=1000 offset=1000
.bvfs_lsdirs jobid=778,804,829 path= limit=1000 offset=10349000

I propose that you create a bug report at https://bugs.bareos.org/

regards,
Jörg
-- 
 Jörg Steffens                   [email protected]
 Bareos GmbH & Co. KG            Phone: +49 221 630693-91
 http://www.bareos.com           Fax:   +49 221 630693-10

 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
 Komplementär: Bareos Verwaltungs-GmbH
 Geschäftsführer:
 S. Dühr, M. Außendorf, Jörg Steffens, P. Storz

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to