Bug#985818: unblock: swift/2.26.0-9
Hi,
As we've noticed some errors with "greenlet.error: cannot switch to a
different thread" in production, I'd like to also fix the uwsgi
configuration for account+container to a single thread by default, as
per the attached debdiff. After the fix, the error is gone from our
production, so it seems to do the trick. Note that thanks to uwsgi, the
performances is still ok.
Debdiff attached. Sorry that it had to be a follow-up to this bug.
Cheers,
Thomas Goirand (zigo)
diff -Nru swift-2.26.0/debian/changelog swift-2.26.0/debian/changelog
--- swift-2.26.0/debian/changelog 2021-03-24 10:12:53.000000000 +0100
+++ swift-2.26.0/debian/changelog 2021-03-24 11:53:15.000000000 +0100
@@ -1,3 +1,10 @@
+swift (2.26.0-10) unstable; urgency=medium
+
+ * Switch account+container-server on a single uwsgi tread, to avoid locks
+ with "greenlet.error: cannot switch to a different thread" in the logs.
+
+ -- Thomas Goirand <zigo@debian.org> Wed, 24 Mar 2021 11:53:15 +0100
+
swift (2.26.0-9) unstable; urgency=medium
* Add python3-dnspython as Recommends for the proxy, as this is needed for
diff -Nru swift-2.26.0/debian/swift-account-server-uwsgi.ini swift-2.26.0/debian/swift-account-server-uwsgi.ini
--- swift-2.26.0/debian/swift-account-server-uwsgi.ini 2021-03-24 10:12:53.000000000 +0100
+++ swift-2.26.0/debian/swift-account-server-uwsgi.ini 2021-03-24 11:53:15.000000000 +0100
@@ -38,7 +38,7 @@
##################################
# We ran benches to validate these values, and they seem ok:
-threads = 12
+threads = 1
listen = 100
# These are used in the gate.
diff -Nru swift-2.26.0/debian/swift-container-server-uwsgi.ini swift-2.26.0/debian/swift-container-server-uwsgi.ini
--- swift-2.26.0/debian/swift-container-server-uwsgi.ini 2021-03-24 10:12:53.000000000 +0100
+++ swift-2.26.0/debian/swift-container-server-uwsgi.ini 2021-03-24 11:53:15.000000000 +0100
@@ -38,7 +38,7 @@
##################################
# We ran benches to validate these values, and they seem ok:
-threads = 12
+threads = 1
listen = 100
# These are used in the gate.
Reply to: