Bacula-users

Re: [Bacula-users] bacula-dir permanent connect to database (version 7.4.3)

2017-05-17 09:04:06
Subject: Re: [Bacula-users] bacula-dir permanent connect to database (version 7.4.3)
From: Wanderlei Huttel <wanderleihuttel AT gmail DOT com>
To: Andrey Mursenkov <a.mursenkov AT voskhod DOT ru>
Date: Wed, 17 May 2017 10:03:07 -0300
Hello Andrey

As Kern said in that bugreport, "Every job that starts opens a new connection (sometimes during the job additional connections will be opened)."
But is not persistent.

If you are running a command "list files jobid=XXX" of a job with some million of files and you have connection problems, maybe bconsole can be close, but is very rare.
Probably you can have a network issue and not bacula issue

If you have some problem about connection lost with client or storage, is interesting activate the option "Heartbeat Interval" in some Resources:
Heartbeat Interval = 300 seconds  # Is a good configuration

Include the option above in the following files/resources:
bacula-dir.conf - Director, Storage, Client
bacula-fd.conf - FileDaemon (client side)

Best regards

Wanderlei Hüttel

2017-05-17 9:32 GMT-03:00 Andrey Mursenkov <a.mursenkov AT voskhod DOT ru>:
Hello,

what connection type does bacula-dir use while connecting to database,
permanent or not?

If bacula-dir uses permanent connection does it support reconnect?


Here what I can see:

When I launch bacula-console and run job manually, bacula-dir
establishes network connection to database and keep it till I close
bacula-console. If some network error occurs during this session any
sequential job commands fails dew to database unavailability.

I was trying to open a bug (http://bugs.bacula.org/view.php?id=2283) but
it was closed. It seems to me that bacula-dir indeed uses permanent
connections. I think there may be some misunderstanding on my side.
Please explain.

Debain 8, Bacula 7.4.3.

--

Mursenkov Andrey



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

ADSM.ORG Privacy and Data Security by https://kimlaw.us