我尝试将我的 Apache 服务器配置为最多使用 120 个线程和每个线程一个 (Oracle) SQL 连接。我通过设置做到了这一点:
MaxClients 120
Run Code Online (Sandbox Code Playgroud)
在 httpd.conf 文件中。我还设置了:
oci8.max_persistent = 1
Run Code Online (Sandbox Code Playgroud)
在 php.ini 文件中。
但是,我看到线程/连接的数量偶尔会超过 120。我是否遗漏了什么?
谢谢。
nginx 官方文档中的定义fail_timeout
如下:
* the time during which the specified number of unsuccessful attempts to communicate with the server should happen to consider the server unavailable;
* and the period of time the server will be considered unavailable.
Run Code Online (Sandbox Code Playgroud)
我的问题是,单个请求的超时时间是多少,之后该请求被标记为不成功,该超时值是如何定义的?
如果max_fails=3
和fail_timeout=120
,这是否意味着请求在 120/3 秒后超时,则不成功?