File: set-default-workers-value.patch

package info (click to toggle)
swift 2.35.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,760 kB
  • sloc: python: 281,901; javascript: 1,059; sh: 619; pascal: 295; makefile: 81; xml: 32
file content (25 lines) | stat: -rw-r--r-- 1,035 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Description: Set default workers value
 Since the package switched to uwsgi and now reads this value, it can't be
 left as "auto" an commented out.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: not-needed
Last-Update: 2020-10-30

--- swift-2.26.0.orig/etc/proxy-server.conf-sample
+++ swift-2.26.0/etc/proxy-server.conf-sample
@@ -28,8 +28,14 @@ bind_port = 8080
 # accept connections.  Should default to the number of effective cpu
 # cores in the system.  It's worth noting that individual workers will
 # use many eventlet co-routines to service multiple concurrent requests.
-# workers = auto
 #
+# Note that in the Debian package, we've switched the proxy-server to
+# uwsgi, because otherwise, the process may get stuck due to thread logging.
+# Therefore, workers cannot be set to the value "auto", and must contain
+# an interger. We're here setting 20 as a default value, which seems a
+# reasonable value for a moderately busy cluster.
+workers = 20
+
 # Maximum concurrent requests per worker
 # max_clients = 1024
 #