On Tue, 2007-06-05 at 00:21 +1000, Jake Anderson wrote:
> Aaron Stone wrote:
> > This is looking really good!
> >
> > Rather than pushing the next_uid generator down into the database,
> > however, I'd like to see it happen in a function up at the application
> > level. This way we can easily hook up some cluster coordination code.
> > For your first pass, the function would just do the same thing as the
> > plpgsql code.
> >
> > Aaron
> Just a thought wrt scalability.
> There are diminishing returns to adding nodes to a cluster as writes
> must be shared by all nodes. I'm wondering if its possible for dbmail to
> know on which databases/hosts it might find a users mail box.
> 
> IE I setup 4x databases and 4x frontends. Frontends can connect to any
> database.
> However i split my users (by magic) and put each user on 2 of the
> database machines and I can just keep on scaling as far as I can spend
> money. Just a thought.

That's an excellent point. I've been thinking for a long time that we
don't want to get our hands into the replication code because it's such
a headache, and databases do this for us for free. The price is that the
database does not understand application level partitions (e.g. half of
the users here, half there, which relies on having a concept of users!)

If we take control of replication, it means that we have to add a lot of
meta-information to the database about where the data is being stored
and knowing how to re-duplicate that information when one of its stores
goes down (for example, ensure that each message is duplicated on at
least 3 databases of an n sized cluster).

This approach is that Google does with GoogleFS, Six Apart does with
MogileFS, etc. and it works very well for huge horizontal scaling.

Now that I've written all that, I am sure that should happen in the
database, in the replication code. It's just not likely to happen any
time soon :-\

Aaron

_______________________________________________
Dbmail-dev mailing list
[email protected]
http://twister.fastxs.net/mailman/listinfo/dbmail-dev

Reply via email to