These 3 commits are when the Protocol Buffers files have changed:
| Commit: | 55f56b3 | |
|---|---|---|
| Author: | lianglli | |
Feature: sync ngx_ingress_module with failover, unit and API routing 将 ngx_ingress_module 更新到更完整的特性集,并保持开源版干净(剔除 所有外部基础设施耦合)。 新增特性: - 故障转移(failover):新增 ngx_ingress_failover.{c,h},按响应状态码 匹配规则切换到备用 upstream 或重定向;通过 ngx_http_special_response 与 upstream intercept_errors 路径接入(均以 T_INGRESS_FAILOVER 隔离, 未启用 ingress 时零影响);新增 $ingress_failover_count 变量。 - unit 单元路由:支持按权重选择单元,含一致性哈希(基于 x-utdid, 回退到客户端地址),复用 mod_common 的 ngx_comm_math。 - API 路由变量:$ingress_api_name/version/type/mark 等,支持默认 api 类型配置。 - protobuf schema 扩展:HostType、UnitWeight.consistent_hashing、 Redirect、FailoverRule/Failover、VirtualService.unit/failover、 ExpireTime、HostCertEntry(host_certs 为 schema,模块侧不实现证书 应用)。 开源适配与清理: - 剔除依赖外部基础设施的代码路径:服务发现探活、流量调度单元路由、 自定义追踪头特判、x-biz-info 业务标解析等,产出干净通用模块。 - 适配 nginx 1.31.3:cookie 头改用 ngx_http_parse_cookie_lines (headers_in.cookie 链表);比较函数返回类型对齐 ngx_shm_compar_func。 - config:接入 ngx_ingress_failover.c 与 T_INGRESS_FAILOVER。 - src/http/ngx_http_special_response.c:T_INGRESS_FAILOVER 下开放 ngx_http_send_special_response 供 failover 复用,并在错误响应路径接入 failover 判定。 - src/http/ngx_http_upstream.c:intercept_errors 路径接入 failover 判定。
| Commit: | a4e2c31 | |
|---|---|---|
| Author: | lianglli | |
HTTP Route: supports routing based on multiple values, nginx var, or mod of header, cookie, query parameter while also being able to add HTTP headers and query parameter
The documentation is generated from this commit.
| Commit: | 21846b9 | |
|---|---|---|
| Author: | drawing | |
| Committer: | drawing | |
ingress module: add ingress module