canonical/cos-lib

Feat: Improve Nginx performance

开放

#145 创建于 2025年5月6日

 (0 条评论) (0 个反应) (0 位负责人)Python (6 个派生)auto 404
good first issue

仓库指标

星标
 (0 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

From a review in another Nginx PR, there were some minor improvement comments:

  1. Use Syntax: resolver address ... [valid=time] to shorten the valid attribute on the resolver to something like 5s as by default it'll use the default DNS TTL which might be large. In the backend for reverse proxy, you usually want to be reactive to change.
  2. Shorten the default DNS timeout (30s, huge when requests are pending to be proxied) with a resolver_timeout to something like 5s.

This was attempted to be apart of the Nginx miration to cos-lib, but created PR smell. This should still be investigated.

贡献者指南