1 This patch sets the default value of the number of "workers" in the |
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 |
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 |
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. |
4 a large number of cores. This patch is not suitable for the upstream. |
5 |
5 |
6 --- swift-2.3.0/etc/account-server.conf-sample.~2~ 2016-02-08 00:02:16.969218591 -0800 |
6 --- swift-2.7.0/etc/account-server.conf-sample.~2~ 2016-08-08 19:02:28.015815430 -0700 |
7 +++ swift-2.3.0/etc/account-server.conf-sample 2016-02-08 00:02:17.037019168 -0800 |
7 +++ swift-2.7.0/etc/account-server.conf-sample 2016-08-08 19:02:28.090297810 -0700 |
8 @@ -10,8 +10,9 @@ bind_port = 6002 |
8 @@ -10,8 +10,9 @@ bind_port = 6002 |
9 # disable_fallocate = false |
9 # disable_fallocate = false |
10 # |
10 # |
11 # Use an integer to override the number of pre-forked processes that will |
11 # Use an integer to override the number of pre-forked processes that will |
12 -# accept connections. |
12 -# accept connections. |
15 +# cores in the system. |
15 +# cores in the system. |
16 +workers = 1 |
16 +workers = 1 |
17 # |
17 # |
18 # Maximum concurrent requests per worker |
18 # Maximum concurrent requests per worker |
19 # max_clients = 1024 |
19 # max_clients = 1024 |
20 --- swift-2.3.0/etc/container-server.conf-sample.~2~ 2016-02-08 00:02:16.969741046 -0800 |
20 --- swift-2.7.0/etc/container-server.conf-sample.~2~ 2016-08-08 19:02:28.016881720 -0700 |
21 +++ swift-2.3.0/etc/container-server.conf-sample 2016-02-08 00:02:17.037565309 -0800 |
21 +++ swift-2.7.0/etc/container-server.conf-sample 2016-08-08 19:02:28.090842415 -0700 |
22 @@ -10,8 +10,9 @@ bind_port = 6001 |
22 @@ -10,8 +10,9 @@ bind_port = 6001 |
23 # disable_fallocate = false |
23 # disable_fallocate = false |
24 # |
24 # |
25 # Use an integer to override the number of pre-forked processes that will |
25 # Use an integer to override the number of pre-forked processes that will |
26 -# accept connections. |
26 -# accept connections. |
29 +# cores in the system. |
29 +# cores in the system. |
30 +workers = 1 |
30 +workers = 1 |
31 # |
31 # |
32 # Maximum concurrent requests per worker |
32 # Maximum concurrent requests per worker |
33 # max_clients = 1024 |
33 # max_clients = 1024 |
34 --- swift-2.3.0/etc/object-server.conf-sample.~2~ 2016-02-08 00:02:16.971225158 -0800 |
34 --- swift-2.7.0/etc/object-server.conf-sample.~2~ 2016-08-08 19:02:28.018004470 -0700 |
35 +++ swift-2.3.0/etc/object-server.conf-sample 2016-02-08 00:02:17.038057162 -0800 |
35 +++ swift-2.7.0/etc/object-server.conf-sample 2016-08-08 19:02:28.091373715 -0700 |
36 @@ -12,8 +12,9 @@ bind_port = 6000 |
36 @@ -12,9 +12,10 @@ bind_port = 6000 |
37 # expiring_objects_account_name = expiring_objects |
37 # expiring_objects_account_name = expiring_objects |
38 # |
38 # |
39 # Use an integer to override the number of pre-forked processes that will |
39 # Use an integer to override the number of pre-forked processes that will |
40 -# accept connections. |
40 -# accept connections. NOTE: if servers_per_port is set, this setting is |
|
41 +# accept connections. Use "auto" or default for the number of effective cpu |
|
42 +# cores in the system. NOTE: if servers_per_port is set, this setting is |
|
43 # ignored. |
41 -# workers = auto |
44 -# workers = auto |
42 +# accept connections. Use "auto" or default for the number of effective cpu |
|
43 +# cores in the system. |
|
44 +workers = 1 |
45 +workers = 1 |
45 # |
46 # |
46 # Maximum concurrent requests per worker |
47 # Make object-server run this many worker processes per unique port of |
47 # max_clients = 1024 |
48 # "local" ring devices across all storage policies. This can help provide |
48 --- swift-2.3.0/etc/proxy-server.conf-sample.~1~ 2015-04-30 06:57:42.000000000 -0700 |
49 --- swift-2.7.0/etc/proxy-server.conf-sample.~1~ 2016-03-25 02:42:55.000000000 -0700 |
49 +++ swift-2.3.0/etc/proxy-server.conf-sample 2016-02-08 00:02:17.038685067 -0800 |
50 +++ swift-2.7.0/etc/proxy-server.conf-sample 2016-08-08 19:39:35.918794285 -0700 |
50 @@ -23,10 +23,10 @@ bind_port = 8080 |
51 @@ -23,10 +23,10 @@ bind_port = 8080 |
51 # disallowed_sections = swift.valid_api_versions, container_quotas, tempurl |
52 # disallowed_sections = swift.valid_api_versions, container_quotas, tempurl |
52 |
53 |
53 # Use an integer to override the number of pre-forked processes that will |
54 # 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. Should default to the number of effective cpu |