-
Notifications
You must be signed in to change notification settings - Fork 144
redis pass to unix sockets working? #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
yeah, it is working, I just tested it now.
then, in your /etc/redis/redis.conf, search for "unixsocketperm". modify "unixsocket" and "unixsocketperm" as following: then, then, in your nginx configuration, just pass to: |
@tzukav are you sure this is working? This does not seem to work for me at all.
I have no trouble connecting to the UNIX socket with It would be a very nice feature to use UNIX sockets with redis2-nginx-module. |
can i confirm this is still working. |
@woutd is nginx using www-data as user? |
"Resource temporarily unavailable" can be a user, permissions error. if the socket file exists, i'm pretty sure there is a user or permission error. |
you can try by changing the nginx user to root temporarily, restart nginx and then see if it is working or not |
Thanks for your answer @tzukav. |
@woutd redis has max connection set by default to something like 10k as i remember. consider increasing ulimit too, the process may be auto killed if something like max open files is hit. |
That is true, I already increased Edit: Increasing |
@woutd yeah, i had same problem with backlog long time ago but in nginx, not redis. backlog is a always a problem in high traffic scenarios. forgot to tell you about it. |
@tzukav looks nice. Thanks for the info and your support. I guess this ticket can be closed as UNIX socket support certainly works. |
It is possible to use unix socket in redis pass instead of localhost IP?
Like unix://path/redis.sock?
Thanks and
best regards.
The text was updated successfully, but these errors were encountered: