
openresty
文章平均质量分 56
wzjudy
已工作
展开
-
谈openresty nginx upstream 模块健康检查bug
openresty nginx upstream ,在工作过程中遇到过upstream的健康检查结果一开始为不健康后,断开网络,然后重启网络,后端恢复健康,但是upstream的健康检查还是为不健康bug,其该问题已有大神对其做了修改并提交github请见链接:https://github.com/yaoweibin/nginx_upstream_check_module/pull/146/fil...原创 2018-05-09 11:54:32 · 1813 阅读 · 0 评论 -
openresty中nginx不同阶段
详情看图片原创 2017-09-20 08:49:02 · 1487 阅读 · 0 评论 -
lua string 类型转 time 类型
local function string2time( date,time ) --date:YYYYmmdd time:HHMMSS local Y = string.sub(date , 1, 4) local m = string.sub(date , 5, 6) local d = string.sub(date , 7, 8) local H = st原创 2016-11-23 18:38:02 · 1508 阅读 · 0 评论 -
在lua中常用到的几个小函数
local cjson = require("cjson")local iconv = require("iconv")local zhttp = require("resty.http")--16进制转换为短类型function hex2short(hex) local len0 = string.byte(h原创 2016-11-01 09:14:20 · 4088 阅读 · 0 评论 -
lua实现详细日志记录
openresty下的nginx实现写日志原创 2016-10-27 09:46:36 · 6858 阅读 · 0 评论