support rsync connection limits per role
Bug #1891117 reported by
Paul Collins
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Mirror Charm |
Confirmed
|
High
|
Unassigned |
Bug Description
The rsync connection limit is intended to preserve I/O bandwidth.
Depending on the configuration of the mirror, it may be handling multiple roles with separate and essentially independent I/O subsystems.
In this case it might be useful to tune the rsync limits per role.
This can be done by setting "lock file" to a different value in the module config.
To effectively implement a shared global limit, "lock file" in the global context must be set to a unique value not used by any module with its own connection limit. (See comment #2 below.)
See also LP:1891103 for another bug that may have implications for this.
Changed in ubuntu-mirror-charm: | |
status: | New → Confirmed |
Changed in ubuntu-mirror-charm: | |
importance: | Undecided → High |
To post a comment you must log in.
Agreed.
Also, we could either set a "global" limit or a "per module" limit.
Setting a global one could be done using the &merge feature in /etc/rsyncd.conf like
&merge /etc/rsync-juju.d
&include /etc/rsync-juju.d
$ cat /etc/rsync- juju.d/ global. inc
[global]
max connections = xxx