Make copiers, pullers and finishers configurable

Compliments #999
This commit is contained in:
Audrius Butkevicius
2014-11-23 00:02:09 +00:00
parent ba019efaf1
commit 4427149a38
3 changed files with 18 additions and 15 deletions

View File

@@ -58,6 +58,9 @@ type FolderConfiguration struct {
IgnorePerms bool `xml:"ignorePerms,attr"`
Versioning VersioningConfiguration `xml:"versioning"`
LenientMtimes bool `xml:"lenientMtimes"`
Copiers int `xml:"copiers" default:"1"` // This defines how many files are handled concurrently.
Pullers int `xml:"pullers" default:"16"` // Defines how many blocks are fetched at the same time, possibly between separate copier routines.
Finishers int `xml:"finishers" default:"1"` // Most of the time, should be equal to the number of copiers. These are CPU bound due to hashing.
Invalid string `xml:"-"` // Set at runtime when there is an error, not saved