Re: [Bacula-users] Frequently Changing Pools For Media

2023-07-17 Thread Bill Arlofski via Bacula-users

On 7/15/23 06:13, Rich Fox wrote:

Hi All,

I have a couple of different tape changers that are used to run jobs in
parallel and all share the same media. I've discovered by accident that
if I put all of the media into a single pool, the media selection
algorithm won't take into account which changer a tape is loaded in and
will try to mount tapes from a different changer which causes problems.
A simple solution is to have one pool for each changer and update the
pool for a given media depending on which changer it gets loaded into.
This appears to work in practice but I was wondering if anybody knows
of any unintended issues that might arise from doing this on a routine
basis.

Thanks for any advice,
Rich.



Hello Rich,

Without seeing any configuration, my initial guess is that your different tape 
changers (well, the Director Storage resources
and their associated changers' device resources) have the same media types.

This would (
might) explain what you are describing.

Can you show us some configurations for your Director Storage resources and 
their related Autochanger and Device resources in
the SD(s)?


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com



signature.asc
Description: OpenPGP digital signature
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn connection

2023-07-17 Thread Marcin Haba
Hello Yakup,

Great to hear that it helped. Thanks for your feedback.

Yesterday we released a new Bacularis 2.1.0 that includes the
performance improvement for loading the dashboard. You can read about
it here:

https://bacularis.app/news/57/36/New-release-Bacularis-2.1.0/d,Bacularis%20news%20details

Best regards,
Marcin Haba (gani)

On Mon, 17 Jul 2023 at 09:46, Yakup Kaya  wrote:
>
> Hello Marcin,
>
>
> Thanks a lot! Great support from you, as usual.
>
>
> The compression significantly improved the loading time. Below is a 
> screenshot before and after the compression. Everything is much faster now. I 
> will try to replace Baculum with Bacularis on my installations as well, when 
> I have time to do it.
>
>
> https://snipboard.io/SkuHb6.jpg
>
>
> Kind regards,
>
> Yakup Kaya
>
>
> Mit freundlichen Grüßen / Kind Regards
>
> Yakup Kaya
>
> IT Engineer
>
>
> Phone: +49 (0)7541 / 282-192
>
> www.indra-avitech.aero
>
>
>
> 
> From: Marcin Haba 
> Sent: Saturday, July 15, 2023 20:34
> To: Yakup Kaya
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> connection
>
> Hello Yakup,
>
> Thanks for your feedback.
>
> This mod_gzip module that you indicated is for framework files, not
> for Baculum itself. I would propose to use mod_deflate. First you need
> to make sure that in your Apache instance this module is enabled in
> config:
>
> LoadModule deflate_module modules/mod_deflate.so
>
> And then in Baculum Web Apache config file you can modify 
> tag and add there lines like below:
>
> 
> AddOutputFilterByType DEFLATE text/html
> AddOutputFilterByType DEFLATE text/css
> AddOutputFilterByType DEFLATE application/javascript
> AddOutputFilterByType DEFLATE application/json
>
> ...rest options
> 
>
> After that please restart the web server and enable in the web
> developer tools in the web browser displaying compressed and
> uncompressed response size. In Google Chrome this option is named "Use
> large request rows" in the network console settings. This way you will
> see if compression works.
>
> Independent on enabling the compression I prepared changes to speed up
> loading dashboard page. I added it to Bacularis and then I ported it
> to Baculum. This change significantly improves loading the dashboard
> page. It is available from next release.
>
> Best regards,
> Marcin Haba (gani)
>
> On Fri, 14 Jul 2023 at 08:22, Yakup Kaya  
> wrote:
> >
> > Hello again,
> >
> >
> > I tried mod_deflate, but it did not change anything. I suspect that the 
> > compression is already enabled for js files with mod_gzip in 
> > baculum-web.conf file with the following lines.
> >
> >
> > 
> > mod_gzip_on Yes
> > mod_gzip_dechunk Yes
> > mod_gzip_item_include file \.js$
> > mod_gzip_item_exclude rspheader 
> > ^Content-Encoding:.*gzip.*
> > 
> >
> > Kind regards,
> >
> > Yakup Kaya
> >
> >
> > 
> > From: Yakup Kaya 
> > Sent: Friday, July 14, 2023 07:37
> > To: Marcin Haba
> > Cc: bacula-users@lists.sourceforge.net
> > Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> > connection
> >
> >
> > Hi Marcin,
> >
> >
> > Thanks a lot for your answer. I will have a look at compression, and share 
> > my results from here. For the number of jobs listed, I already use 100 
> > (default was 15000), but in my case it does not change loading time for the 
> > dashboard. It still gets that 26.65 MB of data and loading time does not 
> > change. But that setting improves the loading time for "Job history" and I 
> > always decrease the default on my installations.
> >
> >
> > Kind regards,
> >
> > Yakup Kaya
> >
> >
> >
> > 
> > From: Marcin Haba 
> > Sent: Friday, July 14, 2023 04:03
> > To: Yakup Kaya
> > Cc: bacula-users@lists.sourceforge.net
> > Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> > connection
> >
> > Hello Yakup,
> >
> > You can try to enable compression in your web server. Here you can see
> > how it can be done for Apache using mod_deflate module:
> >
> > https://httpd.apache.org/docs/2.4/mod/mod_deflate.html
> >
> > Also, what can speed up the process of loading pages, you can limit
> > the number of jobs loaded to the web interface. It is possible to do
> > under the gearwheel icon in the sidebar menu at the top left.
> >
> > For the dashboard I think we can also improve a bit loading it. I
> > noted it on my task list to check in the future. Thanks.
> >
> > Best regards,
> > Marcin Haba (gani)
> >
> > On Thu, 13 Jul 2023 at 14:11, Yakup Kaya  
> > wrote:
> > >
> > > Hello everybody,
> > >
> > >
> > > On Baculum interface, I have a performance issue on slow remote 
> > > connections (it is fast on the local machine). Sometimes it takes around 
> > > 5 minutes for the Dashboard to load completely. 

Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn connection

2023-07-17 Thread Yakup Kaya
Hello Marcin,


Thanks a lot! Great support from you, as usual.


The compression significantly improved the loading time. Below is a screenshot 
before and after the compression. Everything is much faster now. I will try to 
replace Baculum with Bacularis on my installations as well, when I have time to 
do it.


https://snipboard.io/SkuHb6.jpg


Kind regards,

Yakup Kaya


Mit freundlichen Grüßen / Kind Regards

[Indra Avitech Email]

Yakup Kaya

IT Engineer


Phone: +49 (0)7541 / 282-192

www.indra-avitech.aero



From: Marcin Haba 
Sent: Saturday, July 15, 2023 20:34
To: Yakup Kaya
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
connection

Hello Yakup,

Thanks for your feedback.

This mod_gzip module that you indicated is for framework files, not
for Baculum itself. I would propose to use mod_deflate. First you need
to make sure that in your Apache instance this module is enabled in
config:

LoadModule deflate_module modules/mod_deflate.so

And then in Baculum Web Apache config file you can modify 
tag and add there lines like below:


AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/json

...rest options


After that please restart the web server and enable in the web
developer tools in the web browser displaying compressed and
uncompressed response size. In Google Chrome this option is named "Use
large request rows" in the network console settings. This way you will
see if compression works.

Independent on enabling the compression I prepared changes to speed up
loading dashboard page. I added it to Bacularis and then I ported it
to Baculum. This change significantly improves loading the dashboard
page. It is available from next release.

Best regards,
Marcin Haba (gani)

On Fri, 14 Jul 2023 at 08:22, Yakup Kaya  wrote:
>
> Hello again,
>
>
> I tried mod_deflate, but it did not change anything. I suspect that the 
> compression is already enabled for js files with mod_gzip in baculum-web.conf 
> file with the following lines.
>
>
> 
> mod_gzip_on Yes
> mod_gzip_dechunk Yes
> mod_gzip_item_include file \.js$
> mod_gzip_item_exclude rspheader 
> ^Content-Encoding:.*gzip.*
> 
>
> Kind regards,
>
> Yakup Kaya
>
>
> 
> From: Yakup Kaya 
> Sent: Friday, July 14, 2023 07:37
> To: Marcin Haba
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> connection
>
>
> Hi Marcin,
>
>
> Thanks a lot for your answer. I will have a look at compression, and share my 
> results from here. For the number of jobs listed, I already use 100 (default 
> was 15000), but in my case it does not change loading time for the dashboard. 
> It still gets that 26.65 MB of data and loading time does not change. But 
> that setting improves the loading time for "Job history" and I always 
> decrease the default on my installations.
>
>
> Kind regards,
>
> Yakup Kaya
>
>
>
> 
> From: Marcin Haba 
> Sent: Friday, July 14, 2023 04:03
> To: Yakup Kaya
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] Baculum Dashboard is too slow on remote vpn 
> connection
>
> Hello Yakup,
>
> You can try to enable compression in your web server. Here you can see
> how it can be done for Apache using mod_deflate module:
>
> https://httpd.apache.org/docs/2.4/mod/mod_deflate.html
>
> Also, what can speed up the process of loading pages, you can limit
> the number of jobs loaded to the web interface. It is possible to do
> under the gearwheel icon in the sidebar menu at the top left.
>
> For the dashboard I think we can also improve a bit loading it. I
> noted it on my task list to check in the future. Thanks.
>
> Best regards,
> Marcin Haba (gani)
>
> On Thu, 13 Jul 2023 at 14:11, Yakup Kaya  
> wrote:
> >
> > Hello everybody,
> >
> >
> > On Baculum interface, I have a performance issue on slow remote connections 
> > (it is fast on the local machine). Sometimes it takes around 5 minutes for 
> > the Dashboard to load completely. With inspect element option on Firefox, I 
> > noticed jquery.js is getting 26.65MB of data and it is taking 229530 ms to 
> > load the whole page (because of the slow connection). Initially the 
> > Dashboard comes quickly without the "Last 10 jobs" and the "Database size" 
> > parts. Then it waits 4-5 minutes to load that ~26 MB data and shows the 
> > rest. I wonder why this interface has to get that much data to show the 
> > information presented on Dashboard. Do you have any idea how can I improve 
> > the performance? Unfortunately I cannot change the