Varnishlog tag explanation
The intention of this page is to explain what the different tags varnishlog outputs mean.
Format
830 ReqEnd c 877345549 1233949945.075706005 1233949945.075754881 0.017112017 0.000022888 0.000025988
830 is identifies the transaction, it will be assigned to only one transaction between a ReqStart? and ReqEnd tag
ReqEnd is the tag, which tells you what kind of log line this is.
c means client. b is backend. - is none or unknown
The rest of the line is the contents of the log line.
ReqEnd
Typically, this looks like
830 ReqEnd c 877345549 1233949945.075706005 1233949945.075754881 0.017112017 0.000022888 0.000025988
The first number (877345549) is the XID, which you'll find in the X-Varnish header sent to the client.
The second number (1233949945.075706005) is the time when we start processing a request. It is decimal seconds since epoch.
The third number (1233949945.075754881) is the time when the request is completed. It is decimal seconds since epoch.
The fourth number (0.017112017) is the time elapsed between the session actually being accept(2)-ed and the start of request processing for this request. Keep in mind that sessions are only accept()ed once, so this is time from the initial request was accepted until the current request begun processing (in other words: other requests from the same client/session could have been processed in the meanwhile).
The fifth number (0.000022888) is the time elapsed from the start of the request processing until we start delivering the object to the client. For all practical purposes, this number is the backend response time.
The sixth and last number (0.000025988) is the time from we start delivering the object until the request completes.
SessionClose
Example:
127 SessionClose - timeout
SessionClose tells you why HTTP client-connections are closed. Below is a list of possible values and what they mean.
timeout
No keep-alive was received within sess_timeout
Connection: close
The client specifed that keepalive should be disabled by sending a "Connection: close" header.
no request
No initial request was received within sess_timeout. This can be caused by port-scans or loadbalancers and monitoring systems that checks if there's a service listening on the port varnish listens at.
EOF
TODO
remote closed
TODO
error
Happens when you reach vcl_error(). Even if the status code indicates success (e.g. 200).
blast
TODO
【转载:https://www.varnish-cache.org/trac/wiki/Varnishlog】
分享到:
相关推荐
6. **异步处理**:对于耗时的操作(如发送邮件、生成报表),采用消息队列(如RabbitMQ、Kafka)进行异步处理,避免阻塞主线程。 7. **安全性**:使用SSL/TLS加密通信,防火墙保护,DDoS防御机制,以及严格的权限...
首页加载时,第一次刷新缓存执行了 453 条查询,耗时 700.32ms,而第二次执行则减少至 136 条查询,耗时 653.47ms。这表明缓存机制在一定程度上提高了性能,但查询次数仍然较多。优化 SQL 查询和使用更高效的查询...
4. **缓存策略**:利用浏览器缓存、服务器端缓存(如Redis、Memcached)以及分布式缓存系统(如Varnish),可以快速响应重复请求,减轻服务器压力。 5. **页面优化**:包括压缩CSS、JavaScript和HTML文件,减少HTTP...
- **异步处理**:使用消息队列处理耗时任务,提高响应速度。 #### 14. 用PHP写出显示客户端IP与服务器IP的代码 **示例代码**: ```php // 获取客户端IP $clientIP = $_SERVER['REMOTE_ADDR']; echo "客户端IP: $...
scratch少儿编程逻辑思维游戏源码-减压游戏.zip
少儿编程scratch项目源代码文件案例素材-英勇之鸟.zip
少儿编程scratch项目源代码文件案例素材-羊羊繁殖V2.5.zip
scratch少儿编程逻辑思维游戏源码-加特林混战 多人游戏.zip
少儿编程scratch项目源代码文件案例素材-西装英雄.zip
在使用 R 语言进行科研绘图时,颜色的选择是一件让人特别纠结的事情。本系列文章介绍了 R 语言科研绘图时常用的一些配色。本资源给大家提供了文章对应的 PPT。
scratch少儿编程逻辑思维游戏源码-海洋战争.zip
少儿编程scratch项目源代码文件案例素材-万圣夜惊魂.zip
HarmonyOS安全开发赋能,含有HarmonyOS多个场景的安全策略赋能
平台的服务端和客户端源码 整理出来的的游戏源码
scratch少儿编程逻辑思维游戏源码-街头霸王.zip
少儿编程scratch项目源代码文件案例素材-小船.zip
scratch少儿编程逻辑思维游戏源码-几何冲刺(4).zip
少儿编程scratch项目源代码文件案例素材-消灭病毒大作战.zip
scratch少儿编程逻辑思维游戏源码-功夫猫.zip
scratch少儿编程逻辑思维游戏源码-节奏积木 马里奥.zip