2014年1月29日

nginx HttpLuaModule

摘要: http://wiki.nginx.org/HttpLuaModule#Directives Name ngx_lua - Embed the power of Lua into NginxThis module is not distributed with the Nginx source. See the installation instructions. Status This module is under active development and is production ready. Version This document describes ngx_lua v0.9 阅读全文

posted @ 2014-01-29 15:06 strikebone 阅读(2499) 评论(0) 推荐(0) 编辑

通过nginx + lua来统计nginx上的监控网络请求和性能

摘要: 介绍以前我们为nginx做统计,都是通过对日志的分析来完成.比较麻烦,现在基于ngx_lua插件,开发了实时统计站点状态的脚本,解放生产力.项目主页: https://github.com/skyeydemon/ngx-lua-stats功能支持分不同虚拟主机统计, 同一个虚拟主机下可以分不同的location统计.可以统计与query-times request-time status-code speed 相关的数据.环境依赖nginx + ngx_http_lua_module安装http://wiki.nginx.org/HttpLuaModule#Installation使用方法添加 阅读全文

posted @ 2014-01-29 14:36 strikebone 阅读(4997) 评论(0) 推荐(0) 编辑

nginx 知识点

摘要: $request_time 和$upstream_response_time 的区别看官方文档:[http://nginx.org/en/docs/http/ngx_http_log_module.html#log_format]|| $request_time ||request processing time in seconds with a milliseconds resolution;time elapsed between the first bytes were read from the client andthe log write after the last bytes 阅读全文

posted @ 2014-01-29 14:25 strikebone 阅读(661) 评论(0) 推荐(0) 编辑

导航