これは、なにをしたくて書いたもの? 先日、WSGIサーバーとして、GunicornやuWSGIを動かしてみました。 uWSGIを試してみる - CLOVER🍀 Gunicornを試してみる - CLOVER🍀 この時に、これらのサーバーには起動時にプロセス数やスレッド数を与えることができるとわかりました。 ところで、複数プロセスや複数スレッドにした時に、アプリケーションから見たらどういうことを気にした方が よさそうなんでしょうかね? WSGIから見る まずは、仕様であるWSGIから見るのが筋でしょう。 幸い、日本語訳もあるようですので。 PEP 333: Python Web Server Gateway Interface v1.0 — knzm.readthedocs.org 2012-12-31 documentation ちなみに、あまり重厚な仕様でもなさそうなので、割と読める