Syntax: **worker_cpu_affinity** [mask1 mask2 mask3 ... | auto | off]
Default: worker_cpu_affinity off
Context: main
Bind worker processes to the sets of CPUs.
When set to 'auto', Tengine will automatically bind each worker process to a specific CPU. If the number of worker processes is larger than the number of your CPUs, then the rest of worker processes will be bond in descendant order. For example, if there are 8 CPUs in your system:
@ -48,11 +53,14 @@ When set to 'auto', Tengine will automatically bind each worker process to a spe
When set to 'off', Tengine will disable the CPU affinity.
This directive can specify the page for the specific HTTP response status.
@ -72,55 +80,69 @@ For example:
In this server block, the 404 error page will be set to Tengine's default 404 page.
---
> Syntax: **request_time_cache** [on | off]
> Default: request_time_cache on
> Context: http, server, location
### request_time_cache
Syntax: **request_time_cache** [on | off]
Default: request_time_cache on
Context: http, server, location
When set to 'off', Tengine will get a more precise time on $request_time, $request_time_msec, $request_time_usec because it does not use time cache.
---
> Syntax: **log_empty_request** [on | off]
> Default: log_empty_request on
> Context: http, server, location
### log_empty_request
Syntax: **log_empty_request** [on | off]
Default: log_empty_request on
Context: http, server, location
When you specify it 'off', Tengine will not record any access log when a client issues a connection without any data being sent.
By default, it's on. In the above case, it will print a 400 Bad Request message into the access log.
By default, it's on. In the above case, it will print a 400 Bad Request message into the access log.
### server_admin
Syntax: **server_admin** admin
---
Default: none
> Syntax: **server_admin** admin
> Default: none
> Context: http, server, location
Context: http, server, location
Specify the administrator's information, which will appear in a default 4xx/5xx error response when 'server_info' is turned on.
---
> Syntax: **server_info** on | off
> Default: server_info on
> Context: http, server, location
### server_info
Syntax: **server_info** on | off
Default: server_info on
Context: http, server, location
Show up the server information in a default 4xx/5xx error response. The URL accessed by the user, the hostname serving the request, and the time are included.
---
> Syntax: **server_tag** off | customized_tag
> Default: none
> Context: http, server, location
### server_tag
Syntax: **server_tag** off | customized_tag
Default: none
Context: http, server, location
Specify the customized 'Server' header in the HTTP responses, for example, 'Apache/2.2.22', 'IIS 6.0', 'Lighttpd', etc. You could also suppress the 'Server' header by setting it to 'off'.
---
> Syntax: **reuse_port** on | off
> Default: reuse_port off
> Context: events
### reuse_port
turn on support for SO_REUSEPORT socket option. This option is supported since Linux 3.9.
Syntax: **reuse_port** on | off
Default: reuse_port off
[benchmark](benchmark.html)
<!-- [benchmark](../download/reuseport.pdf) -->
Context: events
turn on support for SO_REUSEPORT socket option. This option is supported since Linux 3.9.