小编Dar*_*rio的帖子

Apache - 最大线程数?

我尝试将我的 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。我是否遗漏了什么?

谢谢。

apache-2.2

4
推荐指数
1
解决办法
4万
查看次数

nginx 上游和fail_timeout

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=3fail_timeout=120,这是否意味着请求在 120/3 秒后超时,则不成功?

nginx

4
推荐指数
1
解决办法
9024
查看次数

标签 统计

apache-2.2 ×1

nginx ×1