Hello,

let me clarify a bit how the restore module in webui basically works.

First it looks which job is selected and retrieves the needed JobIds
from the DIRD via BVFS API to be able to do a most recent full restore.

.bvfs_get_jobids jobid=<selected backup job>

To be able to present the file tree with all recent files, we then need
to first build up the BVFS Cache via .bvfs_update command if it hasn't
been done before by handing over such jobids retrieved before.

.bvfs_update jobid=1,2,3,4,5

This could take up quite some time depending on the job sizes for the
first time.

The wheel in webui restore module keeps spinning until cache build up is
done or in worst case the background ajax call could timeout if the
build up takes too long.

The webui does not retrieve the tree in a whole, it does lazy loading,
meaning getting each node of the tree by its own via .bvfs_lsdirs and
.bvfs_lsfiles command when the nodes are expanded by a user interaction.

The bootle neck is the BVFS Cache build up, or to be more specific your
database. Webui just sends the command to build the cache and keeps
waiting for a result from the DIRD/Catalog.

By the way, we recommend PostgreSQL which has a better performance
compared to MySQL/MariaDB as you might already know.

So, what I can think of is building the cache prior calling webui
restore module for example.

a) Using the Run After Job directive to call the .bvfs_update
jobid=<jobid> after each of your jobs, but this might cause unwanted
workload on your database at that specific point in time.

b) Create a Maintenance Job which runs frequently at times where nothing
else happens to build up the BVFS Cache with all recent Job Ids since
its last run or something like that.

A more detailed description about how the bvfs api works can be found here.

http://doc.bareos.org/master/html/bareos-developer-guide.html#sec:bvfs


Cheers
Frank


-- 
Frank Bergkemper                   [email protected]
Bareos GmbH & Co. KG               Phone: +49-221-630693-94
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, M. Außendorf, J. 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