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
#
|