You should look at HttpLuaModule: http://wiki.nginx.org/HttpLuaModule#ngx.location.capture_multi Example: -- construct the requests table local reqs = {} table.insert(reqs, { "/mysql" }) table.insert(reqs, { "/postgres" }) table.insert(reqs, { "/redis" }) table.insert(reqs, { "/memcached" }) -- issue all the requests atby logar.damir - Nginx Mailing List - English
@gregr401 I applied the patch to original redis module, as provided by Sergey. It works great. Previous I used module from Git. Compiled OK. Regarding Redis2: I use it when advanced processing is required (pipeline, redis Lua script). When all I need is simple get with high frequency I prefer strict C module. @Sergey. Used original download url now and applied your patch. Work's great. Thaby logar.damir - Nginx Mailing List - English
Agentzh, how about when using select (http://www.redis.io/commands/select) to select specific database #. Does pipelining work ok in this case? My command at the moment is: redis2_query select 2; redis2_query evalsha $sha1keyvickrey 1 $val; redis2_query select 0; redis2_pass redisbackend; Are this 3 redis2_query commands running on the same connection? If not, could you maybe add anotherby logar.damir - Nginx Mailing List - English
Gregr, I'm using multibulk reply without pipelining. If it helps, here's a working sample. I haven't used pipelining yet, since support for this a quite new (2011-04-03 for lua-redis-parser). Maybe try to update agentzh modules first. #First save some test values to redis: location /testluasetnginx { redis2_query hset testkey "testhash1" "value1"; redis2_qby logar.damir - Nginx Mailing List - English
I'm new to redis/nginx combinations, however I think you should also add following modules: -https://github.com/agentzh/lua-redis-parser -https://github.com/chaoslawful/lua-nginx-module. Then you can use content_by_lua ' local replies = ngx.location.capture("/redis2") local parser = require('redis.parser') -- assuming the replies variable holds n redis responses -- to be paby logar.damir - Nginx Mailing List - English
I'm having problem with redis module: http://wiki.nginx.org/HttpRedis (version 0.32 downloaded from mirror at https://github.com/elcuervo/nginx_http_redis) As I tried, variable $redis_db is never used and result always comes from "default" - database 0. Am I missing something in my config? my nginx.conf (part of): upstream { server 192.168.2.178:6379; keepalive 256 single;}by logar.damir - Nginx Mailing List - English