distribution/registry
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
..
api Enable URLs returned from the registry to be configured as relative. 2016-03-23 15:14:32 -07:00
auth Fix some typos in comments and strings 2016-02-23 22:33:38 +01:00
client Merge pull request #1522 from RichardScothern/tag-events 2016-03-23 16:41:29 -07:00
handlers Ensure we log io.Copy errors and bytes copied/total in uploads 2016-04-04 17:21:36 -07:00
listener [Server] Listen and serve on a unix socket 2015-05-11 16:00:14 +03:00
middleware Add pull through cache functionality to the Registry which can be configured 2015-08-04 16:09:55 -07:00
proxy Implement regulator in filesystem driver 2016-05-03 09:33:22 -07:00
storage Implement regulator in filesystem driver 2016-05-03 09:33:22 -07:00
doc.go Move initialization code from main.go to the registry package 2015-09-09 14:39:31 -07:00
garbagecollect.go Update the gc documentation. 2016-03-30 16:57:21 -07:00
garbagecollect_test.go Fix signature handling with GC. 2016-03-30 16:10:27 -07:00
registry.go Implements garbage collection subcommand 2016-02-29 14:15:21 -08:00
root.go Implements garbage collection subcommand 2016-02-29 14:15:21 -08:00