Question on Moxi on Client
I was wondering about two things
First one is the Moxi on Client side. I do understand how it looks like in architecture mode. However, I am having trouble thinking about how to code this part. It will be great if I could see any examples using Client side moxi.
Second one is that when you connect to one of the servers of Couchbase, does the client get the all available server lists?
This is because I've tried with connecting with one uri list and when that server goes down in the middle of gets and sets, it seems the client cannot connect to the server anymore. Doesn't the client should receive all connectable servers ips and if one goes down, connect to alternate servers? I've tried with three URIs and they seem to alternate when one goes down. Does this mean the CLient must know as many server IPs as possible in order to prevent "unable to connect to servers"?
Thank you
1. To set up moxi on the client side you just need to download moxi, install it on the same machine that you run your client, and tell it where Couchbase is and how to communicate with Membase. Then you just tell you client to talk to moxi. So basically tell you client to connect to localhost:moxi_port. If you run moxi on the server side then you potentially have to do two network hops to get to the correct server, but if you run it on the client side you will only have to do one.
2. We recommend that you give your client more than one address to your Couchbase cluster for exactly the reason you described.