Thanks Jens, that's great.

On 18 Aug 2014, at 16:52, Jens Alfke wrote:

> 
>> On Aug 18, 2014, at 2:35 AM, Daniel McGreal <[email protected]> wrote:
>> 
>> The SG documentation at 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 a topic in the Google 
> Groups "Couchbase Mobile" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/mobile-couchbase/IcrxDtfIpa4/unsubscribe.
> To unsubscribe from this group and all its topics, 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.

-- 
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/9DA595FF-0947-4139-9D37-6BCE36C2E27A%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to