From: Will Palmer <wmpalmer@gmail.com>
To: "J.H." <warthog19@eaglescrag.net>
Cc: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
"Luke Kenneth Casson Leighton" <luke.leighton@gmail.com>,
git <git@vger.kernel.org>
Subject: Re: http://tech.slashdot.org/comments.pl?sid=1885890&cid=34358134
Date: Tue, 30 Nov 2010 09:43:50 +0000 [thread overview]
Message-ID: <1291110230.11984.21.camel@wpalmer.simply-domain> (raw)
In-Reply-To: <4CF3FEB0.9040806@eaglescrag.net>
On Mon, 2010-11-29 at 11:27 -0800, J.H. wrote:
> > I want my version control software to use p2p concepts for efficiency. I
> > don't want my version control software to be a p2p client any more than
> > I want my text-editor to be a mail client.
>
> Keep in mind that adding p2p concepts to something doesn't make it more
> efficient, in fact in most cases it makes it dramatically *LESS* efficient.
As a simple use-case:
Everyone comes into an office in the morning and runs "git remote
update". This potentially causes a lot of traffic between the office and
their offsite central repository. If this were a p2p scenario, the
transfer from the offsite could potentially happen only once.
That counts as "more efficient", to me.
>
> git-torrent like concepts have come up in the past, and I keep pointing
> out how and why they likely won't be useful. The biggest reason: there
> is no advantage for a client to stay in the cloud once they have their
> data.
This is true of bittorrent as well: People stay in the cloud for
altruistic reasons.
You're thinking p2p in terms of "every peer serves data, and keeps
serving data. The network is more robust over time". I'm thinking p2p in
terms of "Every peer has the ability to serve data. Adding a server is
as trivial as adding a client."
The greatest advantage I can think of is "no existing server needs to
agree to the addition of a new server", or at least "the addition of an
existing server is accepted by convention, no questions asked"
> ..... You can force this, sure, but clones are seldom and rare to begin
> with (as you mentioned) so there won't be a very large cloud to pull
> from to start with. With that in mind, I really see no advantage to p2p
> inside of the git core at all. It adds a lot of complexity for little gain.
I agree that git itself is not a good place to explore p2p concepts. I
assume it would be much more useful to develop an independent p2p layer
and allow git to somehow use that.
And while there won't be "a large cloud", it's almost a guarantee that
there would be more than the /one/ server currently available during
clones or long fetches.
> Now you do mention things that would be useful:
>
> - Ability to resume a clone that you only have a partial download for
> (maybe just pack files?)
> - Ability to include something like a 'meta-link' like list of
> repositories to check for data (inferred from the multiple download
> locations)
>
> There are things we can learn from p2p, but I don't think adding it to
> git is actually useful.
>
> Just my $0.02 though.
>
> - John 'Warthog9' Hawley
>
The biggest hurdle, I assume, would be "get git to talk to more than one
source of data at once", even if one needs to set those up manually. If
I understand correctly, packfiles are generated in a way which would not
necessarily be consistent between clones.
next prev parent reply other threads:[~2010-11-30 9:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-27 17:33 http://tech.slashdot.org/comments.pl?sid=1885890&cid=34358134 Luke Kenneth Casson Leighton
2010-11-27 18:36 ` http://tech.slashdot.org/comments.pl?sid=1885890&cid=34358134 Ævar Arnfjörð Bjarmason
2010-11-27 19:06 ` http://tech.slashdot.org/comments.pl?sid=1885890&cid=34358134 Luke Kenneth Casson Leighton
2010-11-27 19:28 ` http://tech.slashdot.org/comments.pl?sid=1885890&cid=34358134 Jonathan Nieder
2010-11-27 20:19 ` http://tech.slashdot.org/comments.pl?sid=1885890&cid=34358134 Ævar Arnfjörð Bjarmason
2010-11-29 10:12 ` http://tech.slashdot.org/comments.pl?sid=1885890&cid=34358134 Will Palmer
2010-11-29 10:35 ` http://tech.slashdot.org/comments.pl?sid=1885890&cid=34358134 Nguyen Thai Ngoc Duy
2010-11-29 19:27 ` http://tech.slashdot.org/comments.pl?sid=1885890&cid=34358134 J.H.
2010-11-30 9:43 ` Will Palmer [this message]
2010-11-30 10:08 ` http://tech.slashdot.org/comments.pl?sid=1885890&cid=34358134 Jan Krüger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1291110230.11984.21.camel@wpalmer.simply-domain \
--to=wmpalmer@gmail.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=luke.leighton@gmail.com \
--cc=warthog19@eaglescrag.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).