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

NameTypeDescription
modeon | off | threadsSelect native AIO, synchronous path, or thread pool offload.
poolidentifier or expressionSelect a thread pool with threads mode; defaults to default.

Working Example

Example Snippetnginx
aio threads;
Nginx Reference