|
1 This patch sets the default value of the number of "workers" in the |
|
2 Swift configuration files for a single CPU system. The default based on |
|
3 the number of CPUs (cores) found may not be efficient on a system with |
|
4 a large number of cores. This patch is not suitable for the upstream. |
|
5 |
|
6 --- swift-2.2.2/etc/account-server.conf-sample.~2~ 2015-03-03 13:32:49.269716798 -0800 |
|
7 +++ swift-2.2.2/etc/account-server.conf-sample 2015-03-03 13:32:49.300905746 -0800 |
|
8 @@ -10,8 +10,9 @@ bind_port = 6002 |
|
9 # disable_fallocate = false |
|
10 # |
|
11 # Use an integer to override the number of pre-forked processes that will |
|
12 -# accept connections. |
|
13 -# workers = auto |
|
14 +# accept connections. Use "auto" or default for the number of effective cpu |
|
15 +# cores in the system. |
|
16 +workers = 1 |
|
17 # |
|
18 # Maximum concurrent requests per worker |
|
19 # max_clients = 1024 |
|
20 --- swift-2.2.2/etc/container-server.conf-sample.~2~ 2015-03-03 13:32:49.269950594 -0800 |
|
21 +++ swift-2.2.2/etc/container-server.conf-sample 2015-03-03 13:32:49.301151407 -0800 |
|
22 @@ -10,8 +10,9 @@ bind_port = 6001 |
|
23 # disable_fallocate = false |
|
24 # |
|
25 # Use an integer to override the number of pre-forked processes that will |
|
26 -# accept connections. |
|
27 -# workers = auto |
|
28 +# accept connections. Use "auto" or default for the number of effective cpu |
|
29 +# cores in the system. |
|
30 +workers = 1 |
|
31 # |
|
32 # Maximum concurrent requests per worker |
|
33 # max_clients = 1024 |
|
34 --- swift-2.2.2/etc/object-server.conf-sample.~2~ 2015-03-03 13:32:49.270540923 -0800 |
|
35 +++ swift-2.2.2/etc/object-server.conf-sample 2015-03-03 13:32:49.301367390 -0800 |
|
36 @@ -12,8 +12,9 @@ bind_port = 6000 |
|
37 # expiring_objects_account_name = expiring_objects |
|
38 # |
|
39 # Use an integer to override the number of pre-forked processes that will |
|
40 -# accept connections. |
|
41 -# workers = auto |
|
42 +# accept connections. Use "auto" or default for the number of effective cpu |
|
43 +# cores in the system. |
|
44 +workers = 1 |
|
45 # |
|
46 # Maximum concurrent requests per worker |
|
47 # max_clients = 1024 |
|
48 --- swift-2.2.2/etc/proxy-server.conf-sample.~1~ 2015-02-01 23:44:14.000000000 -0800 |
|
49 +++ swift-2.2.2/etc/proxy-server.conf-sample 2015-03-03 13:32:49.301633168 -0800 |
|
50 @@ -22,10 +22,10 @@ bind_port = 8080 |
|
51 # disallowed_sections = container_quotas, tempurl, bulk_delete.max_failed_deletes |
|
52 |
|
53 # Use an integer to override the number of pre-forked processes that will |
|
54 -# accept connections. Should default to the number of effective cpu |
|
55 +# accept connections. Use "auto" or default for the number of effective cpu |
|
56 # cores in the system. It's worth noting that individual workers will |
|
57 # use many eventlet co-routines to service multiple concurrent requests. |
|
58 -# workers = auto |
|
59 +workers = 1 |
|
60 # |
|
61 # Maximum concurrent requests per worker |
|
62 # max_clients = 1024 |