How to connect couchbase cluster using standalone Moxi and PHP SDK


#1

I am running a couchbase cluster and the type of buckets are couchbase (not memcached)
Trying to connect the couchbase cluster through the standalone moxi server running on the web server itself.
But I am not finding any option to connect the couchbase cluster via standalone moxi.

All I am seeing in the API document is this
$myCluster = new CouchbaseCluster(‘couchbase://10.4.4.1,10.4.4.2,10.4.4.3’);

Is there a way to do this and do you have any reference?


#2

@tjegan moxi is only needed when you want memcached compatibility.

When you are using our official SDKs, connect them directly to the cluster and leave moxi alone completely. That gives you the best performance and it’s the way we recommend to deploy it!


#3

@daschl thanks for the prompt response. We will remove moxi and use official SDKs only.


#4

@tjegan great! Let us know if you have any issues. You can also find the official docs here: http://docs.couchbase.com/developer/php-2.0/php-intro.html