On 1 March 2011 10:04, Trond Norbye <[email protected]> wrote:
> I forgot that -h was used to get the help text and not the host name ;-)
> Anyway. I pushed a path that gives you the functionality through the -l
> parameter:
> -l <addr>     interface to listen on (default: INADDR_ANY, all addresses)
>               <addr> may be specified as host:port. If you don't specify
>               a port number the value you specified with -p or -U is
>               used. You may specify multiple addresses separated by comma
>               or by using -l multiple times
> That means you can do:
> ./memcached -l localhost:11210,*:11213,*
> ./memcached -l localhost:11210 -l *:11213 -l \*
> ./memcached -l localhost -p 11213
> ./memcached -l localhost:11213 -l \* -p 11210
> See
> https://github.com/memcached/memcached/commit/6ba9aa2771adcf785fe3fde03cd71832db15b086
> Trond
>

That syntax is ok for me, but you're missing the most important part
of my patch: change the mapping between udp sockets and threads.

If only one port is provided, we should keep the current behaviour
because of compatibility: map the socket to all the threads.

However, if more than one is specified, mapping between udp sockets
and threads has to be one to one in order to get the performance gain.

Regards,
Jaime.

--
Jaime Medrano
Senior Backend Engineer @ Tuenti
http://www.tuenti.com

Reply via email to