HTTP directives
aio directive (HTTP)
Choose file I/O strategy; for a document archive, compare worker latency under cold-file reads. Context: http, server, location. Documented default: off. Version: 0.8.11; threads 1.7.11. OSS documentation; check target build. Linux native AIO requires directio for nonblocking reads and suitable build; threads requires --with-threads. Alignment and OS affect results. Example is a partial http configuration fragment; use a disposable lab, not a production tuning prescription.
Formal Syntax & Structure
nginx syntaxnginx
aio on | off | threads[=pool];Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| mode | on | off | threads | Select native AIO, synchronous path, or thread pool offload. |
| pool | identifier or expression | Select a thread pool with threads mode; defaults to default. |
Working Example
Example Snippetnginx
aio threads;