nginx tcp proxy问题stream-lua-nginx-module

337 views
Skip to first unread message

Lucien Li

unread,
Jul 22, 2016, 2:23:21 AM7/22/16
to openresty
Hi
    春哥你好, 目前我想开发一个tcp proxy作为redis cluster的代理中间件,类似于twemproxy一样。

目前我的想法是:
用stream-lua-nginx-module结合lua-resty-redis 把redis cluster的路由信息都缓存在lua vm中,
用户通过redis的官方驱动访问, 然后nginx tcp modue 根据路由信息 给后端redis发送请求。


因为stream-lua-nginx-module我看比较新, 不知道是否可以用到生产环境?  会不会当量非常大的时候出现一些坑?
感谢春哥的解答!

YuanSheng Wang

unread,
Jul 26, 2016, 7:30:03 AM7/26/16
to open...@googlegroups.com
先用,先了解。有没有坑,猜测是没有用的,实际跑起来才知道。

如果不放心,可以多 review 一下 stream 代码,多层保护。

 
感谢春哥的解答!

--
--
邮件来自列表“openresty”,专用于技术讨论!
订阅: 请发空白邮件到 openresty...@googlegroups.com
发言: 请发邮件到 open...@googlegroups.com
退订: 请发邮件至 openresty+...@googlegroups.com
归档: http://groups.google.com/group/openresty
官网: http://openresty.org/
仓库: https://github.com/agentzh/ngx_openresty
教程: http://openresty.org/download/agentzh-nginx-tutorials-zhcn.html



--

YuanSheng Wang
---------------------------------------
OpenResty lover ^_^

4647...@qq.com

unread,
Dec 13, 2016, 3:46:21 AM12/13/16
to openresty
大家好, 请教:下游tcp,上游redis、mongo等。openresty如何归并后端redis和mongo结果排序后,回复下游tcp客户端呢? 最好结合lua使用。
给下配置,以及指点指点思路,谢谢。

在 2016年7月22日星期五 UTC+8下午2:23:21,Lucien Li写道:
Reply all
Reply to author
Forward
0 new messages