upstream : read-timeout,connection-timeout,分级别 500ms,1S,100S,长链接 颗粒度[每个服务api health-check] openresty lua--rest--dynamic upstream traefik--三个出问题了--如何摘掉 ...
分类:
其他好文 时间:
2019-04-28 15:44:12
阅读次数:
119
lnmp、lamp、lnmpa一键安装包(Updated: 2019-02-17) 422 A+ 所属分类:工具 这个脚本是使用shell编写,为了快速在生产环境上部署lnmp/lamp/lnmpa(Linux、Nginx/Tengine/OpenResty、MySQL/MariaDB/Percon ...
分类:
系统相关 时间:
2019-04-20 19:45:21
阅读次数:
224
查看进程ID [root@hadoop03 openresty]# netstat -nltp 进入/proc目录查找相应进程ID目录并进入此目录 [root@hadoop03 usr]# cd /proc/17569/在进程ID目录中查找exe连接,后面就是运行进程ID对应文件的绝对路径 [roo... ...
分类:
系统相关 时间:
2019-04-06 12:42:07
阅读次数:
177
algernon 看到github 的介绍很很强大,一下子想到了openresty,功能看着很强大,支持 redis pg lua markdown quic http2 mysql 限速 pongo2 sass(scss) web 相关的 jsx (js dsl 模板写法) 说明 看官方介绍和很强 ...
分类:
Web程序 时间:
2019-04-05 09:15:55
阅读次数:
171
案例一 rewrite_by_lua ' --引入openresty自带的json处理对象 local cjson = require("cjson") local producer = require "resty.kafka.producer" -- 定义kafka broker地址,ip需要和 ...
分类:
其他好文 时间:
2019-03-26 18:20:53
阅读次数:
553
openresty/lua-resty-shell 是当前最新rc 版本内置的shell 功能,我们可以用来执行一个脚本,以及命令 还是比较方便的。 测试集成了一个oreilly电子书下载的功能 环境准备 docker-compose 文件 version: "3" services: nginx: ...
分类:
系统相关 时间:
2019-03-08 14:02:45
阅读次数:
1155
openresty 1.15.8.1 官方:https://openresty.org/en/ 一 简介 OpenResty® is a dynamic web platform based on NGINX and LuaJIT. openresty是一个基于nginx和luajit的动态web平 ...
分类:
其他好文 时间:
2019-03-07 15:50:34
阅读次数:
193
使用Ngxin搭建正向代理与反向代理 本地负载、软负载、硬负载、动态负载方式 使用Nginx+Keepalived实现Nginx高可用 使用Nginx搭建API接口网关 使用Nginx实现安全、权限控制 使用Nginx搭建动静分离 使用openResty部署应用层NginxLua 使用Nginx配置 ...
分类:
其他好文 时间:
2019-02-11 10:43:52
阅读次数:
185
前边有写过一个简单pushpin 集成stream 的demo,这次测试下sse 的功能 备注: 环境依然使用的是docker-compose运行 环境准备 docker-compose 文件 version: "3" services: pushpin: image: fanout/pushpin ...
分类:
其他好文 时间:
2019-02-07 19:00:12
阅读次数:
244