Lookaside clone support proof of concept
Augie Fackler
raf at durin42.com
Tue Sep 24 22:31:35 UTC 2013
On Oct 5, 2012, at 6:38 PM, Matt Mackall <mpm at selenic.com> wrote:
> On Fri, 2012-10-05 at 15:23 -0500, Augie Fackler wrote:
>> At the last sprint I talked some about an idea I had to extend (possibly via an extension) the wire protocol to allow some sort of advisory "go fetch from over there first" tricks. I finally got around to doing this today(see [0] for code), and it worked out pretty well. It's a little raw at the moment, but I think docstring on the module explains how to use it well enough. I think this might be most interesting at the moment to Mozilla (as implemented), but it's not hard to envision this letting you direct the client to pull from another (potentially lagged) repository before pulling from the mainline repository to spread out lag over more mirrors.
>>
>> Thoughts? Anyone got preferences on how I should proceed?
>>
>> [0]: http://hg.durin42.com/augie/mercurial/lookaside-bundle/file/tip/lookaside.py
>
> I like it. Thoughts:
>
> - could use pushkey, rather than caps/new command
I'd like to at least retain the capability trick, because right now we can do the "no, go use pushkey" step in-line with a changegroupsubset call, which is a win because then the server can send you to the lookaside location iff it has a URL that it knows you could use instead (e.g. it's possible to envision lots of people wanting to pull a repo first thing in the morning, and not having pulled since the previous morning, so you might have that bundle hot in a cache and ready to serve from a CDN.) Does that make sense?
> - wants a [web] config setting
> - probably wants a better name
For sure. I was hoping to pick something terrible enough people would solicit better names.
> - we can unpack a stream rather than a temp file
> - "with"
Can I pleeeeaaaase use this as a carrot to get people on 2.6? I understand if that's not okay, but I'd like to have at least a a little carrot.
I'm preparing a patch for this to go in hgext, but I'll wait until I get answers on my two questions here.
>
> --
> Mathematics is the supreme nostalgia of our time.
>
>
More information about the Mercurial-devel
mailing list