This topic created in 3828 days ago, the information mentioned may be changed or developed.
6 replies • 2016-06-02 11:04:43 +08:00
 |
|
log format 里面加 $upstream_addr 就可以纪录 这个请求调度到哪个后端
|
 |
|
另外一个方法是后端 server 增加一个自定义 header ,把 IP 写进去
|
 |
|
一般使用 header 写进去 前段可以直接查看 调试最佳 写日志也可以 如果没有 elk 不方便
|