Skip to content

Commit a170e57

Browse files
authored
Merge pull request #43 from mila-iqia/feat/concurrent_read
feat: Add parameters to configure concurrent reads
2 parents 4a4a40c + 804be1c commit a170e57

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ __Note:__ More options can be seen in `defaults/main.yml`
1717
- `bareos_director` - If you need to override backup director IP address on your client's /etc/hosts
1818
- `bareos_repo` - Defaults to Bareos Community Repository. Can be changed to use the Bareos Subscription Repository
1919
- `bareos_sd_max_concurrent_jobs` - [Optional] SD-level maximum concurrent jobs, defaults to 50
20+
- `bareos_sd_file_device_concurrent_read` - [Optional] SD-level specifies the maximum number of Jobs with the current Storage resource that can read concurrently
2021
- `bareos_catalog_backup_script` - You need to set it to `/usr/lib/bareos/scripts/make_catalog_backup` if using Bareos >=23
2122
```
2223
bareos_director:
@@ -90,6 +91,7 @@ bareos_dir_storage:
9091
bareos_sd_ip: 10.0.0.1
9192
media_type: File2 # optional, defaults to 'File'
9293
max_concurrent_jobs: 42 # optional, defaults to '50'
94+
max_concurrent_read_jobs: 5 # optional
9395
```
9496
`device` can also become `devices` if you have multiple devices :
9597
```

templates/bareos-dir/storage/storage.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ Storage {
1212
Device = {{ item.device }}
1313
{% endif %}
1414
Maximum Concurrent Jobs = {{ item.max_concurrent_jobs | default('50') }}
15+
{% if item.max_concurrent_read_jobs is defined %}
16+
Maximum Concurrent Read Jobs = {{ item.max_concurrent_read_jobs }}
17+
{% endif %}
1518
}

templates/bareos-sd/storage/bareos-sd.conf.j2

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
Storage {
22
Name = {{ inventory_hostname }}-sd
33
Maximum Concurrent Jobs = {{ bareos_sd_max_concurrent_jobs | default('50') }}
4+
{% if bareos_sd_file_device_concurrent_read is defined %}
5+
File Device Concurrent Read = {{ bareos_sd_file_device_concurrent_read }}
6+
{% endif %}
47

58
# remove comment from "Plugin Directory" to load plugins from specified directory.
69
# if "Plugin Names" is defined, only the specified plugins will be loaded,

0 commit comments

Comments
 (0)