The -z flag specifies a cluster of Couchbase servers. There a several ways to specify a cluster using -z. For example:
-z 11211=MC_HOST1:MC_PORT1,MC_HOST2:MC_PORT2This is a libmemcached-style of cluster specification, via a list of comma-separated HOST:PORT's.
Here, moxi will listen on port 11211.
-z 11211={ some libvbucket JSON config here }This is useful for testing libvbucket-style cluster configuration.
Again, moxi will listen on port 11211.
-x url=http://HOST:8080/pools/default/bucketsStreaming/BUCKET_NAMEThis specifies a REST URL where moxi can dynamically request a libvbucket-style cluster configuration.
The following, by the way, is an ease-of-use shortcut for
specifying a -z url=URL:
./moxi http://HOST:8080/pools/default/bucketsStreaming/BUCKET_NAME