Skip to content

Behavioral Notes

naati targets drop-in behavioral parity with NGINX 1.30.8 on the wire, in CLI output, and in logs. Keep these practical operational differences in mind when migrating:

On-Disk HTTP Cache Format

  • naati uses its own crash-safe binary format for proxy_cache_path, fastcgi_cache_path, uwsgi_cache_path, and scgi_cache_path files.
  • Always start naati with a clean cache directory rather than reusing cached files written by NGINX.
  • Temporary cache writes are created inside the cache directory so renames remain atomic on the same filesystem.
  • max_size accounts file sizes rounded to 4 KB filesystem blocks.

Shared-Memory Zones & Buffering

  • Shared-memory zones (TLS session cache, OCSP cache, sticky learn, limit_req/limit_conn, and HTTP cache keys zones) use a lock-free fixed-capacity layout rather than NGINX’s global LRU slab allocator. Size zone=name:size with normal operational headroom.
  • Buffered upstream responses stay in memory up to configured buffer limits rather than spilling to *_temp_path files on disk.

Dynamic DNS Resolution, IPv6 & Syslog

  • resolve upstream peer capacity scales with the configured upstream zone size (up to 1,024 resolved addresses per hostname).
  • IPv6 client listeners ([::]:port, always ipv6only=on) and unix: sockets work out of the box; IPv6 upstream peers, IPv6 mail clients, IPv6 listen ... quic, and listen port-range syntax (addr:port1-port2) are on the roadmap.
  • syslog: logging supports UDP targets (syslog:server=host:port); Unix domain socket syslog (server=unix:) is not yet supported.

HTTP/2, Pipelining & Built-In brotli_static

  • HTTP/1.1 pipelined responses are coalesced when buffered. If a client aborts mid-pipeline, already-generated responses may be logged with their full body byte count.
  • Reused HTTP/2 upstream keepalive connections handle late RST_STREAM frames for completed streams cleanly instead of returning spurious 502 responses.
  • naati includes built-in brotli_static on|off|always; support across HTTP/1.1, HTTP/2, and HTTP/3 without requiring an external C module.

Security, TLS & Signals

  • disable_symlinks off; is accepted; enabling disable_symlinks (on, if_not_owner) fails closed at -t and startup. Write-side log and temporary opens avoid following symlinks.
  • ssl_ech_file and OpenSSL engine: private keys are not supported and are rejected at -t.
  • SIGHUP (reload), SIGUSR1 (log reopen), SIGQUIT (graceful drain), and SIGTERM/SIGINT are implemented; SIGUSR2/SIGWINCH live binary upgrade is on the roadmap.

Platform Support

  • Linux only (io_uring with automatic epoll fallback) on amd64 and arm64. macOS / BSD kqueue and Windows builds are not supported (run inside a Linux container or VM on macOS).