nginx-c-module-perf-reliability

📁 pproenca/dot-skills 📅 Feb 13, 2026
2
总安装量
2
周安装量
#64244
全站排名
安装命令
npx skills add https://github.com/pproenca/dot-skills --skill nginx-c-module-perf-reliability

Agent 安装分布

amp 2
opencode 2
kimi-cli 2
codex 2
github-copilot 2
claude-code 2

Skill 文档

nginx.org C Module Performance & Reliability Best Practices

Comprehensive performance optimization and reliability guide for nginx C modules, derived from the official nginx development documentation and production engineering experience. Contains 43 rules across 8 categories, prioritized by impact to guide automated optimization and resilience improvements.

Companion skill: This skill complements nginx-c-module-best-practices which covers correctness (memory safety, request lifecycle, configuration). This skill covers performance optimization and operational reliability.

When to Apply

Reference these guidelines when:

  • Optimizing nginx C module throughput and latency
  • Reducing buffer copies and enabling zero-copy I/O paths
  • Tuning connection pooling and socket options
  • Minimizing shared memory lock contention across workers
  • Implementing graceful error recovery and fallback responses
  • Configuring upstream timeouts and retry strategies
  • Building in-module response caches with shared memory
  • Tuning worker process behavior under load

Rule Categories by Priority

Priority Category Impact Prefix
1 Buffer & Zero-Copy I/O CRITICAL buf-
2 Connection Efficiency CRITICAL conn-
3 Lock Contention & Atomics HIGH lock-
4 Error Recovery & Resilience HIGH err-
5 Timeout & Retry Strategy MEDIUM-HIGH timeout-
6 Response Caching MEDIUM cache-
7 Worker & Process Tuning MEDIUM worker-
8 Logging & Metrics LOW-MEDIUM log-

Quick Reference

1. Buffer & Zero-Copy I/O (CRITICAL)

2. Connection Efficiency (CRITICAL)

3. Lock Contention & Atomics (HIGH)

4. Error Recovery & Resilience (HIGH)

5. Timeout & Retry Strategy (MEDIUM-HIGH)

6. Response Caching (MEDIUM)

7. Worker & Process Tuning (MEDIUM)

8. Logging & Metrics (LOW-MEDIUM)

How to Use

Read individual reference files for detailed explanations and code examples:

Reference Files

File Description
references/_sections.md Category definitions and ordering
assets/templates/_template.md Template for new rules
metadata.json Version and reference information