> On Aug 18, 2014, at 2:35 AM, Daniel McGreal <[email protected]> wrote:
> 
> The SG documentation at Configuration Files 
> <http://developer.couchbase.com/mobile/develop/guides/sync-gateway/administering-sync-gateway/command-line-tool/index.html#configuration-files>
>  suggests that SG can support multiple buckets per SG instance?

Yes, just add multiple items to the top-level "databases" object in the config.

> Is it possible to add (or remove) buckets without restarting SG? If not, 
> where would I need to look to add such functionality?

Yes, we added that feature for Couchbase Cloud. To add a database you PUT to 
its URL (/dbname) with a JSON body that's the same data you'd put in the config 
file's "databases" object. To remove a database you DELETE its URL; this 
doesn't actually do anything to the bucket on Couchbase Server, it just unhooks 
it from the Gateway.

The catch is that these operations don't update the config file. You're 
responsible for doing that yourself. (Or you can decide not to put the database 
config in the config file at all, and just issue a series of PUTs on startup.)

—Jens

-- 
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/512F6B47-0177-4821-9559-6B881DC7A993%40couchbase.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to