monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Setting up a "cluster" of monotone servers


From: Nathaniel J. Smith
Subject: Re: [Monotone-devel] Setting up a "cluster" of monotone servers
Date: Mon, 29 Jan 2007 16:08:50 -0800
User-agent: Mutt/1.2.5.1i

On Mon, Jan 29, 2007 at 10:50:52AM -0600, Timothy Brownawell wrote:
> On Mon, 2007-01-29 at 10:06 +0100, Richard Levitte - VMS Whacker wrote:
> >     A different solution could be to make it possible for a server to
> >     initiate a sync with another server, and have that done directly
> >     after there's been anything happening that changes the contents of
> >     the database.  This would probably just need a little bit of
> >     hackery of the netsync code to have an appropriate trigger point
> >     that starts the netsync, and a hook that returns a list of other
> >     servers to communicate with.
> 
> You probably don't want to have it actually run a standard netsync
> session, that'd just make our cpu usage even worse (refinement is
> moderately expensive). What might be good would be a 'mirror'
> connection, that starts as a normal netsync but instead of closing when
> transfer is done, it stays open. Then whenever new data comes in on
> another netsync, it just gets sent across the mirror connection
> (probably after asking the other side if it has it already, in case
> there's a bunch of servers all mirroring eachother).

Refinement isn't expensive so much as building the merkle trie is
expensive, I think?  And we should probably start caching those at
some point for scalability anyway...

-- Nathaniel




reply via email to

[Prev in Thread] Current Thread [Next in Thread]