Closed GoogleCodeExporter closed 9 years ago
There are several possible workarounds:
1/ you bind on your vpn address, and you define a
Unix socket for your local connections. As a bonus,
your app server connections to Redis will be faster.
2/ you bind on localhost, so your app can access Redis,
and you run a proxy listening to the vpn address. For
instance, haproxy in TCP mode seems to work quite well
with Redis, and is quite easy to install.
http://haproxy.1wt.eu/
Example of haproxy configuration:
global
daemon
maxconn 1024
defaults
mode tcp
timeout connect 5000ms
timeout client 50000ms
timeout server 50000ms
frontend redis
bind *:1521
default_backend servers
backend servers
server R1 127.0.0.1:6379 maxconn 1000
Regards,
Didier.
Original comment by didier...@gmail.com
on 24 Mar 2011 at 6:34
Hey - those are good workarounds. I think I'm going to implement #1 almost
immediately. I guess I don't actually have any further need to bind to
multiple interfaces, so ... thanks!
Original comment by iandenni...@gmail.com
on 24 Mar 2011 at 10:03
As clear from the behavior Redis shows when using multiple bind statements in
the config; Redis only binds to a single address. Thanks for your suggestion
Didier! This is a great way to solve this (as this will not be natively
supported by Redis).
Original comment by pcnoordh...@gmail.com
on 29 Mar 2011 at 8:42
Original issue reported on code.google.com by
iandenni...@gmail.com
on 24 Mar 2011 at 1:23