Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有几个 apache 实例在 windows 机器上运行,为了避免 Python 的 GIL 造成的 IO 瓶颈,我需要设置 apache 的工作进程的亲和力。
Apache 会写入其主要看门狗进程的 PID,但从未写入包含嵌入式 WSGI (modwsgi) 的进程的 PID。
除了一次重新启动一项服务来查找新的 WSGI PID 并设置其亲和性之外,是否有更好的方法来记录 WSGI 进程的 PID,或者以某种方式标记 apache 服务以使用预定义的亲和性?
Windows 上没有单独的 mod_wsgi 进程。WSGI 应用程序在 Apache 子进程内运行,与处理静态文件请求的进程相同。