distribution/registry/storage/driver
Tony Holdstock-Brown 33c448f147 Implement regulator in filesystem driver
This commit refactors base.regulator into the 2.4 interfaces and adds a
filesystem configuration option `maxthreads` to configure the regulator.

By default `maxthreads` is set to 100. This means the FS driver is
limited to 100 concurrent blocking file operations. Any subsequent
operations will block in Go until previous filesystem operations
complete.

This ensures that the registry can never open thousands of simultaneous
threads from os filesystem operations.

Note that `maxthreads` can never be less than 25.

Add test case covering parsable string maxthreads

Signed-off-by: Tony Holdstock-Brown <tony@docker.com>
2016-05-03 09:33:22 -07:00
..
azure Update missing blob error checking with latest Azure API 2016-03-14 15:59:03 -07:00
base Implement regulator in filesystem driver 2016-05-03 09:33:22 -07:00
factory Add documentation for how to register new StorageDrivers 2016-03-29 14:42:19 -07:00
filesystem Implement regulator in filesystem driver 2016-05-03 09:33:22 -07:00
gcs Storagedriver: GCS: add chunksize parameter 2016-03-08 16:38:39 -08:00
inmemory Adds new storagedriver.FileWriter interface 2016-03-08 16:37:44 -08:00
middleware Adds new s3 driver using aws-sdk-go instead of goamz 2016-02-12 15:59:26 -08:00
oss Support FileWriter interface for OSS storage driver 2016-03-08 16:38:39 -08:00
s3-aws Merge pull request #1660 from jhaohai/cn-north-1-fix 2016-04-25 16:07:54 -07:00
s3-goamz Adds new storagedriver.FileWriter interface 2016-03-08 16:37:44 -08:00
swift detect outdated container listings during Stat() and getAllSegments() 2016-04-06 15:21:27 +02:00
testsuites StorageDriver: Testsuite: call Close before getting Size 2016-03-08 16:38:38 -08:00
fileinfo.go Move storagedriver package to registry/storage/driver 2015-02-11 12:43:04 -08:00
storagedriver.go Remove the example 2016-03-29 14:42:28 -07:00