couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: FW: CouchDB shared hosting
Date Wed, 08 Jul 2009 07:10:17 GMT
On Tue, Jul 07, 2009 at 07:44:15PM +0200, Stream Service || Mark Scholten wrote:
> - 1 instance for multiple databases (not an instance per database)

This already happens. That is, if you do operations to
http://yourserver/firstdb/... and http://yourserver/seconddb/... then they
will be two different databases, but the same couchdb instance manages them.

The database filehandles are kept open up to a limit of (I think) 100. After
that, the least-recently-used database is closed. But that's transparent to
users, since http is stateless.

Some care would be needed on a shared platform to prevent access to magic
URLs at the top level like /_restart. You can set up specific proxying
rules, e.g.

http://yourserver/user1/*  =>  http://localhost:5984/user1/*

(with user-specific authentication for each rule) and block out access to
the top level entirely.

Mime
View raw message