>
>
>
> I am far from being an expert on Couchbase Server, but I *believe* this 
> is improved in version 3.0 (to be released imminently.) It has much better 
> support for buckets whose contents are larger than their RAM allocation.
>
> Also, you might consider CBGB <https://github.com/couchbaselabs/cbgb>, 
> which is an experimental Couchbase-compatible server designed for 
> multi-tenancy: it doesn't scale as well to high demand, but it scales 
> extremely well to lots of buckets. It's not an official product, but it's 
> stable enough that we used it for the (now retired) couchbasecloud hosted 
> system.
>

Both those are interesting to learn about - I'll take a look, thanks
 

>
> You don't have to run multiple gateways; each one can already support any 
> number of independent databases, each with its own user accounts.
>
>
That's what I thought when I first read the documentation, but when I set 
it up and tested it I found the user accounts were the same in each 
database.  

My sync config on a new server is:

{
   "interface":":4984",
   "adminInterface":":4985",
   "log":["REST"],
   "databases":{
      "sync_gateway":{
         "server":"http://localhost:8091";,
         "bucket":"default",
         "sync":`function(doc) {channel(["public"]);}`
      },
      "database2":{
         "server":"http://localhost:8091";,
         "bucket":"default",
         "sync":`function(doc) {channel(["public2"]);}`
      }
   }
}  

I only PUT a user to sync_gateway.  I added a second database (database2) 
to the config file and the user seems to be visible in the second database

$ http GET localhost:4985/database2/_user/marcus
HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Length: 75
Content-Type: text/plain; charset=utf-8
Date: Tue, 30 Sep 2014 18:09:00 GMT
Server: Couchbase Sync Gateway/1.00

{"name":"marcus","admin_channels":["public"],"all_channels":["public"]}

$ http GET localhost:4985/sync_gateway/_user/marcus
HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Length: 75
Content-Type: text/plain; charset=utf-8
Date: Tue, 30 Sep 2014 18:09:41 GMT
Server: Couchbase Sync Gateway/1.00

{"name":"marcus","admin_channels":["public"],"all_channels":["public"]}

I hope I've missed something simple here, as multiple sync gateway 
"databases" in the same bucket is all I need!

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/af0111c8-5a0d-4800-8084-d55cf7e2298e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to