I've implemented support for Unix domain sockets in Redis:
* http://github.com/tav/redis/compare/upstream...master
It yields anywhere between 20-90% performance increases on the Linux
and OS X 10.5 systems that I've tried.
The code includes updates for the redis core as well as
redis-benchmark and redis-cli.
The redis.conf file now has a new ``connection`` setting, which can be
either "tcp" or "unix". If tcp is chosen, then the usual port/bind
settings are used. Otherwise, it looks for a ``unixsocket`` setting
which defaults to /tmp/redis.sock.
The redis-benchmark and redis-cli take a new optional -u parameter for
the path to the domain socket.
It'd be great to have this merged upstream. Do let me know if there's
anything that I need to do.
--
Thanks, tav
plex:espians/tav | t...@espians.com | +44 (0) 7809 569 369
http://tav.espians.com | http://twitter.com/tav | skype:tavespian
tav, this is super awesome! thanks a lot for tackling this, hope your
code
gets merged soon.
tim
Would be neat to have this included either way though.
Cheers, Mathias
--
http://scalarium.com | http://paperplanes.de
http://twitter.com/roidrage
If Redis using only as local storage, unix socket are excellent, but
what if i need use network replication? In typically usage pattern,
one or more client work with Redis local, all data replicated over the
net to second node, and few client work at this node too. For better
usage, we need two interface at one time - unix soket for local client
and network for inter-node communication and remote client. This
behavior can be implemented?
2010/8/4 Mathias Meyer <pomon...@googlemail.com>:
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
>
--
C уважением, Александр Лозовюк
Alpha-Beta-Release Blog
http://abrdev.com
Cheers,
Pieter
2010/8/4 Александр Лозовюк <aleks....@gmail.com>:
Yeah, that was a bummer =(
I've since spoken to him and have incorporated supporting both types
together as he'd done. Just set:
connection tcp+unix
The code is structured so that it'd be possible to add other
connection types in the future. In particular, I'd like support for
TLS connections to communicate securely across datacenters without
proxying.
The updated code can be seen at the same place:
* http://github.com/tav/redis/compare/upstream...master
--
Cheers, tav
Cheers,
Pieter
On Thu, Aug 5, 2010 at 3:36 AM, trung <tr...@phamcom.com> wrote:
> I was going to ask for the same thing :)
>
> When will it be merged to the master branch? Thanks.
>
Hey, I want to merge this indeed.
Only stopper after I read the whole code tomorrow morning, is that in
the variable names you used "socket" to refer to unix domain sockets.
Actually everything is a socket ;) And for sure the common usage of
the word socket is more biased to actual TCP or UDP sockets, so I
would change this var naming. All the rest is ok for me.
Another small note is that probably it is possible to avoid closing
the sockets after the fork() in the childs. This was my fault, you
just followed my code indeed. But I think that as it's not possible to
return to the event loop in the saving code there is no point in
closing the socket.
Cheers,
Salvatore
> Cheers,
> Pieter
>
> On Thu, Aug 5, 2010 at 3:36 AM, trung <tr...@phamcom.com> wrote:
>> I was going to ask for the same thing :)
>>
>> When will it be merged to the master branch? Thanks.
>>
>> --
>> You received this message because you are subscribed to the Google Groups "Redis DB" group.
>> To post to this group, send email to redi...@googlegroups.com.
>> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
>> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>>
>>
>
> --
> You received this message because you are subscribed to the Google Groups "Redis DB" group.
> To post to this group, send email to redi...@googlegroups.com.
> To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
>
>
--
Salvatore 'antirez' Sanfilippo
http://invece.org
"Once you have something that grows faster than education grows,
you’re always going to get a pop culture.", Alan Kay