On 6/3/22 14:34, Bill Arlofski via Bacula-users wrote:
On 6/3/22 09:51, Josip Deanovic wrote:
Could you please say few words about "Job Storage group support"
feature.
What exactly is that?
I tried to search for it on the net, including the documentation but
couldn't find anything that would explain what Job Storage group support
might be.
Regards!
--
Josip Deanovic
Hello Josip,
This new StorageGroup feature allows you to specify more than one
Storage in a Job or Pool.
For example:
----8<----
Job {
Name = Test
Storage = Storage_1, Storage_2, Storage_3, ...
StorageGroupPolicy = (ListedOrder|LeastUsed)
...
}
----8<----
Then, when Bacula starts a job, if it cannot reach the first one for
some reason, or the first one rejects the job (ie: some
mis-configuration issue, or devices are disabled on it), then the next
one is tried, and so on until it finds one that works.
Why does this choice happen only at job start? I have always thought it
should occur at each volume selection, which might alleviate some of the
issues with concurrent jobs writing to multi-drive autochangers,
particularly when writing to the same pool. Much of the volume shuffling
between drives is simply because the job's storage device cannot be
reassigned. This would basically be assigning volume and device as an
atomic pair, meaning volume and device would always be assigned from
within a single critical section, probably where the volume selection
code is now. That pairing would persist as long as it was assigned to
one or more jobs.
The `StorageGroupPolicy` setting allows you to tell Bacula what
criteria to use when selecting
the storage. The default is
`ListedOrder` and will be used if not specified.
The `LeastUsed` policy checks all of the specified Storages and
chooses the one with the least number of jobs currently
running on it.
I understand there are more `StorageGroupPolicy` options being planned.
Hope this helps,
Bill
--
Bill Arlofski
w...@protonmail.com
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users