Moxi connecting to a downstream server problem
Wed, 10/12/2011 - 09:49
Hi,
I am trying to make failover memcached cluster with moxi:
/opt/moxi/bin/moxi -Z port_listen=11311,concurrency=1024,wait_queue_timeout=100,connect_timeout=100,connect_max_errors=4,connect_retry_interval=30000,downstream_conn_max=2,downstream_timeout=500 -z 11311=srv1:11211,srv2:11211,srv3:11211 -vvv
But when "srv1" is down, and client's request some keys, moxi say errors like that:
2011-10-12 20:40:42: (cproxy.c.1858) 52: assign_downstream, matched to upstream 2011-10-12 20:40:42: (cproxy.c.1932) 52: cproxy_forward prot 5 to prot 8 2011-10-12 20:40:42: (cproxy.c.1421) 52: cproxy_connect_downstream server_index 1 in 2 2011-10-12 20:40:42: (cproxy.c.3332) zacquire_dc, 127.0.0.1:11212:(null):(null):0, 5, 6825, (0) 2011-10-12 20:40:42: (cproxy.c.1911) 52: could not forward upstream to downstream 2011-10-12 20:40:42: (cproxy.c.2004) 52: upstream_error: END
and original request not proxified to next memcached server.
What I'm doing wrong?
Why client's requests not proxified to another downstream server?
Thanks,
Troy
Hi,
I think you may need to configure your moxi with a different format for the server list. See here:
http://www.couchbase.org/wiki/display/membase/Standalone+Moxi+Component#...
-Alex