Skip to content

Commit 4aa71eb

Browse files
authored
Merge pull request #36 from mila-iqia/FixIssue/35
Allow max concurrent jobs definition
2 parents e34b3b4 + ca8db5a commit 4aa71eb

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ __Note:__ More options can be seen in `defaults/main.yml`
1313
- `bareos_sensu_postgres_pass` - Set pass for user sensu to postgresql
1414
- `bareos_email` - Email address used for messages (Daemon, Standard) and Catalog bootstrap
1515
- `bareos_dir_ip_eth` - Director ethernet IP address
16+
- `bareos_dir_max_concurrent_jobs` - [Optional] Director-level maximum concurrent jobs, defaults to 50
1617
- `bareos_director` - If you need to override backup director IP address on your client's /etc/hosts
1718
- `bareos_repo` - Defaults to Bareos Community Repository. Can be changed to use the Bareos Subscription Repository
19+
- `bareos_sd_max_concurrent_jobs` - [Optional] SD-level maximum concurrent jobs, defaults to 50
1820
```
1921
bareos_director:
2022
ip: 10.0.0.1
@@ -34,6 +36,7 @@ bareos_clients:
3436
director_ip: 10.0.0.1 # optional
3537
director_name: backup # optional
3638
max_job_bandwidth: 1 mb/s # optional
39+
max_concurrent_jobs: 42 # optional, defaults to '20'
3740
```
3841

3942
- `bareos_filesets`: List of filesets in following format:
@@ -141,6 +144,7 @@ bareos_jobdefs:
141144
full_pool: FullFoo
142145
incr_pool: IncrementalFoo
143146
type: JOB_TYPE # optional, defaults to 'Backup'
147+
max_concurrent_jobs: 42 # optional, defaults to '50'
144148
```
145149

146150
`bareos_jobs`: List of jobs in following format:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Director { # define myself
22
Name = bareos-dir
33
QueryFile = "/usr/lib/bareos/scripts/query.sql"
4-
Maximum Concurrent Jobs = 50
4+
Maximum Concurrent Jobs = {{ bareos_dir_max_concurrent_jobs | default('50') }}
55
Password = "{{ bareos_director_password }}"
66
Messages = Daemon
77
Auditing = yes

templates/bareos-dir/jobdefs/jobdef.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Keep the legacy defaults when the template is used to define JobDefs resources
5555
{% if item.max_concurrent_jobs is defined %}
5656
Maximum Concurrent Jobs = {{ item.max_concurrent_jobs }}
5757
{% elif _resource_type == 'JobDefs' %}
58-
Maximum Concurrent Jobs = 50
58+
Maximum Concurrent Jobs = {{ item.max_concurrent_jobs | default('50') }}
5959
{% endif %}
6060
{% if item.allow_dup_jobs is defined %}
6161
Allow Duplicate Jobs = {{ item.allow_dup_jobs }}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Storage {
22
Name = {{ inventory_hostname }}-sd
3-
Maximum Concurrent Jobs = 50
3+
Maximum Concurrent Jobs = {{ bareos_sd_max_concurrent_jobs | default('50') }}
44

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

templates/myself.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# {{ ansible_managed }}
22
Client {
33
Name = {{ item.name }}
4-
Maximum Concurrent Jobs = 20
4+
Maximum Concurrent Jobs = {{ item.max_concurrent_jobs | default('20') }}
55
{% if item.max_job_bandwidth is defined %}
66
Maximum Bandwidth Per Job = {{ item.max_job_bandwidth }}
77
{% endif %}

0 commit comments

Comments
 (0)