Moxi+load balancer for cluster.

381 views
Skip to first unread message

Andrey Python Nikishaev

unread,
Sep 19, 2011, 3:59:39 PM9/19/11
to mem...@googlegroups.com
I used Client-side proxy model, so my Moxi connect to one of the servers in cluster. This is problem due to this server can die, and client will not connect to cluster.
Moxi-cluster config file can use only one url, so only way is to use load-balancer that will ballance Moxi between servers in cluster.

I tried to use Nginx proxy, but it not working.

Can anyone use moxi with balancer?

David Holtkamp

unread,
Sep 19, 2011, 4:02:41 PM9/19/11
to mem...@googlegroups.com
I believe if you read the wiki page, you will see that you can
actually list multiple servers in the Moxi configuration.

Perry Krug

unread,
Sep 19, 2011, 4:04:59 PM9/19/11
to mem...@googlegroups.com
David is correct, you can supply Moxi with multiple URL's (either on the command-line or via the config file).

I'd also be curious what problems you're having with nginx as we have quite a few people using Moxi+load balancer.

Perry Krug
Solutions Architect
direct: 831-824-4123
emailpe...@couchbase.com

David Holtkamp

unread,
Sep 19, 2011, 4:07:18 PM9/19/11
to mem...@googlegroups.com
Also, just to avoid an easy mistake:
"Multiple URL's can be specified in the cluster REST/URL config file, but must be separated by '|' (vertical 'pipe' bar) characters (because the comma character is already used as a key=value delimiter)..."

Kenneth Williams

unread,
Sep 19, 2011, 4:11:02 PM9/19/11
to mem...@googlegroups.com
Moxi should work fine loadbalanced. I've not used nginx, but I've used
others, namely apache mod_proxy and haproxy.

If you want to try haproxy, start with a config like this
http://pastebin.com/gfpxuXbP that should get you going.

Chad Kouse

unread,
Sep 19, 2011, 4:12:42 PM9/19/11
to mem...@googlegroups.com
We've used haproxy in production for quite some time with good results.

--chad

David Holtkamp

unread,
Sep 19, 2011, 4:17:23 PM9/19/11
to mem...@googlegroups.com
What is the advantage of using a proxy over listing multiple servers
in the Moxi configuration? Is Moxi not intelligent enough to switch
over to the working server if one server goes down and
auto-failover's?

Chad Kouse

unread,
Sep 19, 2011, 4:18:50 PM9/19/11
to mem...@googlegroups.com
The benefit is - if you add more nodes you only have to add them to
the proxy instead of tacking them on to the startup parameters of your
client side moxi. If your cluster size is pretty constant it won't be
a big problem for you.

--chad

Andrey Python Nikishaev

unread,
Sep 20, 2011, 2:35:26 AM9/20/11
to mem...@googlegroups.com
Thanks guys i just missed this option in manual, cause was looking at the wrong place.

R N

unread,
Mar 5, 2014, 4:31:18 PM3/5/14
to mem...@googlegroups.com
we set up 4 nodes in a security group in AWS using it as a cluster. how can see the performance and if at any data loss if we kill one node in the cluster. please provide any info on how to test the scenario when one node fails in the cluster. thanks
Reply all
Reply to author
Forward
0 new messages