App Server Settings
Table of Contents
Ruby路径 | 运行模式 | Max Connections | Environment | Initial Request Timeout (secs) | Retry Timeout (secs) | Connection Keepalive Timeout | Response Buffering | Max Idle Time | Back Log | Run On Start Up | Priority | 内存软限制 (bytes) | 内存硬限制 (bytes) | Process Soft Limit | 进程硬限制
WSGI路径 | 运行模式 | Max Connections | Environment | Initial Request Timeout (secs) | Retry Timeout (secs) | Connection Keepalive Timeout | Response Buffering | Max Idle Time | Back Log | Run On Start Up | Priority | 内存软限制 (bytes) | 内存硬限制 (bytes) | Process Soft Limit | 进程硬限制
Node路径 | 运行模式 | Max Connections | Environment | Initial Request Timeout (secs) | Retry Timeout (secs) | Connection Keepalive Timeout | Response Buffering | Max Idle Time | Back Log | Run On Start Up | Priority | 内存软限制 (bytes) | 内存硬限制 (bytes) | Process Soft Limit | 进程硬限制
Rack/Rails默认设置⇑
Description
Rack/Rails的默认配置. 这些设置可以被context级别覆盖.
Ruby路径⇑
Description
Ruby可执行文件的路径。 通常是 /usr/bin/ruby 或 /usr/local/bin/ruby (取决于Ruby的安装文章)
Syntax
绝对路径
运行模式⇑
Description
指定Rack/Rails的运行模式:"发展", "生产"或者是"预发布". 默认为 "生产".
Syntax
从列表中选择
Max Connections⇑
Description
Specifies the maximum number of concurrent connections that can be established between the server and an external application. This setting controls how many requests can be processed concurrently by an external application, however, the real limit also depends on the external application itself. Setting this value higher will not help if the external application is not fast enough or cannot scale to a large number of concurrent requests.
Syntax
整数
提示
Setting a high value does not directly translate to higher performance. Setting the limit to a value that will not overload the external application will provide the best performance/throughput.
Environment⇑
Description
Specifies extra environment variables for the external application.
Syntax
Key=value. Multiple variables can be separated by "ENTER"
Initial Request Timeout (secs)⇑
Description
Specifies the maximum time in seconds the server will wait for the external application to respond to the first request over a new established connection. If the server does not receive any data from the external application within this timeout limit, it will mark this connection as bad. This helps to identify communication problems with external applications as quickly as possible. If some requests take longer to process, increase this limit to avoid 503 error messages.
Syntax
整数
Retry Timeout (secs)⇑
Description
Specifies the period of time that the server waits before retrying an external application that had a prior communication problem.
Syntax
整数
Connection Keepalive Timeout⇑
Description
Specifies the maximum time in seconds to keep an idle persistent connection open.
When set to "-1", the connection will never timeout. When set to 0 or greater, the connection will be closed after this time in seconds has passed.
Syntax
int
Response Buffering⇑
Description
Specifies whether to buffer responses received from external applications. If a "nph-" (Non-Parsed-Header) script is detected, buffering is turned off for responses with full HTTP headers.
Syntax
从列表中选择
Max Idle Time⇑
Description
Specifies the maximum idle time before an external application is stopped by the server, freeing idle resources. When set to "-1", the external application will not be stopped by the server unless running in ProcessGroup mode where idle external applications will be stopped after 30 seconds. The default value is "-1".
Syntax
从单选框选择
提示
This feature is especially useful in the mass hosting environment where, in order to prevent files owned by one virtual host from being accessed by the external application scripts of another virtual host, many different applications are run at the same time in SetUID mode. Set this value low to prevent these external applications from idling unnecessarily.
Back Log⇑
Description
Specifies the backlog of the listening socket. Required if Start By Server is enabled.
Syntax
整数
Run On Start Up⇑
Description
Specifies whether to start the external application at server start up. Only applicable to external applications that can manage their own child processes and where Instances value is set to "1".
If enabled, external processes will be created at server startup instead of run-time.
When selecting "Yes (Detached mode)", all detached process can be restarted at the Server level or Virtual Host level by touching the '.lsphp_restart.txt' file under the $SERVER_ROOT/admin/tmp/ or $VH_ROOT/ directory respectively.
Default value: Yes (Detached mode)
Syntax
从单选框选择
提示
If the configured external process has significant startup overhead, like a Rails app, then this option should be enabled to decrease first page response time.
Priority⇑
Description
Specifies priority of the external application process. Value ranges from -20 to 20. A lower number means a higher priority. An external application process cannot have a higher priority than the web server. If this priority is set to a lower number than the server's, the server's priority will be used for this value.
Syntax
int
See Also
Server 优先级
内存软限制 (bytes)⇑
Description
以字节为单位指定服务器启动的外部应用进程或程序的内存占用限制。
此限制的目的主要是为了防范软件缺陷或蓄意攻击造成的过度内存使用, 而不是限制正常使用。确保留有足够的内存,否则您的应用程序可能故障并 返回503错误。限制可以在服务器级别或独立的外部应用程序级别设置。如 果未在独立的外部应用程序级别设定限制,将使用服务器级别的限制。
如果在两个级别都没有设置该限制,或者限制值设为0,将使用操 作系统的默认设置。
Syntax
整数
提示
[注意] 不要过度调整这个限制。如果您的应用程序需要更多的内存, 这可能会导致503错误。
内存硬限制 (bytes)⇑
Description
与内存软限制 (bytes)非常相同,但是在一个用户进程中,软限制 可以被放宽到硬限制的数值。硬限制可以在服务器级别或独立的外部应用程序级别设 置。如果未在独立的外部应用程序级别设定限制,将使用服务器级别的限制。
如果在两个级别都没有设置该限制,或者限制值设为0,将使用操 作系统的默认设置。
Syntax
整数
提示
[注意] 不要过度调整这个限制。如果您的应用程序需要更多的内存, 这可能会导致503错误。
Process Soft Limit⇑
Description
Limits the total number of processes that can be created on behalf of a user. All existing processes will be counted against this limit, not just new processes to be started.
The limit can be set at the server level or at an individual external application level. The server-level limit will be used if it is not set at an individual application level. The operating system's default setting will be used if this value is 0 or absent at both levels.
Syntax
整数
提示
PHP scripts can call for forking processes. The main purpose of this limit is as a last line of defense to prevent fork bombs and other attacks caused by PHP processes creating other processes.
Setting this setting too low can severely hurt functionality. The setting will thus be ignored below certain levels.
When Run On Start Up is set to "Yes (Daemon mode)", the actual process limit will be higher than this setting to make sure parent processes are not limited.
进程硬限制⇑
Description
与Process Soft Limit非常相同,但是,在用户进程中软限制 可以被放宽到硬限制的数值。硬限制可以在服务器级别或独立的外部应用程序级别设 置。如果未在独立的外部应用程序级别设定限制,将使用服务器级别的限制。 如果在两个级别都没有设置该限制,或者限制值设为0,将使用操 作系统的默认设置。
Syntax
整数
Python WSGI Default Settings⇑
Description
Default configurations for Python WSGI applications. These settings can be overriden at the context level.
WSGI路径⇑
Description
LiteSpeed Python Web服务器的可执行文件(lswsgi)的路径。
This 可执行文件是通过使用LiteSpeed的WSGI LSAPI模块编译Python生成的。
Syntax
绝对路径
Node.js App Default Settings⇑
Description
Default configurations for Node.js applications. These settings can be overriden at the context level.
Node路径⇑
Description
Node.js执行文件的路径.
Syntax
绝对路径