CB2.0 & Moxi1.8.1 & Couchbase client
Fri, 10/26/2012 - 02:11
Hi,
I set up a server cluster and want to use the cluster moxi config to connect to it.
My application only requires the memcached functionallities.
Using the moxi, I want all my application servers to connect to 'localhost'.
This works fine, however, it seems it doesn't work with the php couchbase client.
With the couchbase client I can connect to one of the clustered machines ($cb = new Couchbase("10.0.10.200:8091");), but not to the moxi ($cb = new Couchbase("127.0.0.1:8091");).
Is it correct to assume that I need the memcached client instead of the couchbase client in a cluster moxi setup?
Thanks for responding.
Hello,
Any specific reason to use Moxi?
All the client libraries are cluster aware and do not need moxi.
So just takes the PHP client library http://www.couchbase.com/develop/php/next and your application will connect to the cluster. The cluster topology in manage by the SDK.
The following part of the documentation explains how to connect to your Couchbase Server 2.0 using the PHP SDK:
http://www.couchbase.com/docs/couchbase-sdk-php-1.1/api-reference-connec...
Regards
Tug
Tug
@tgrall