You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Steven Woody <na...@gmail.com> on 2010/08/11 07:46:49 UTC
What's the current status for subversion replication?
Hi,
What's the current status for subversion servers replication? Does it
allow read/write on both master and slaver sides? Is it stable enough
to put in real life use? I plan to do it for supporting concurrent
development in different GEO locations, what is the right manual I
should go to read, is it the "SVN Book"?
Thanks in advance.
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 (narkewoody@gmail.com)
Re: What's the current status for subversion replication?
Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
On Thursday 12 August 2010, you wrote:
> Ulrich Eckhardt wrote:
> > On Wednesday 11 August 2010, Ryan Schmidt wrote:
> > > you can set up a write-through proxy so that people who check out
> > > from a slave and try to commit will be transparently redirected to
> > > the master.
> >
> > How?
>
> It's described in the book:
>
> http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.s
> erverconfig.httpd.extra.writethruproxy
Ah, thanks. I read the whole chapter on setting up svnsync, but it only
said "never write to the mirror". In particular, it didn't mention that you
could set up a write proxy if you are using Apache to serve the repository.
Uli
--
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
RE: What's the current status for subversion replication?
Posted by Jon Foster <Jo...@cabot.co.uk>.
Ulrich Eckhardt wrote:
> On Wednesday 11 August 2010, Ryan Schmidt wrote:
> > you can set up a write-through proxy so that people who check out
> > from a slave and try to commit will be transparently redirected to
> > the master.
>
> How?
It's described in the book:
http://svnbook.red-bean.com/nightly/en/svn.serverconfig.httpd.html#svn.s
erverconfig.httpd.extra.writethruproxy
Kind regards,
Jon
**********************************************************************
This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Cabot Communications Ltd.
If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone.
Cabot Communications Limited
Verona House, Filwood Road, Bristol BS16 3RY, UK
+44 (0) 1179584232
Co. Registered in England number 02817269
Please contact the sender if you believe you have received this email in error.
**********************************************************************
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Re: What's the current status for subversion replication?
Posted by Ulrich Eckhardt <ec...@satorlaser.com>.
On Wednesday 11 August 2010, Ryan Schmidt wrote:
> you can set up a write-through proxy so that people who check out
> from a slave and try to commit will be transparently redirected to
> the master.
How?
Uli
--
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************
Re: What's the current status for subversion replication?
Posted by Steven Woody <na...@gmail.com>.
On 14 August 2010 02:08, Jon Foster <Jo...@cabot.co.uk> wrote:
> Steven Woody wrote:
>> Thanks everyone, and, can I get know if the replication/write-through
>> things support https?
>
> Yes, they do.
>
>> The master that I want to mirror is using https
>
> On the mirror, you need the appropriate Apache modules and
> configuration.
> Make sure you have mod_proxy and mod_ssl loaded as well as the normal
> Subversion modules.
>
> The proxy-specific config I've used is:
>
> <VirtualHost ...>
> ...
> SSLProxyEngine on
> SSLProxyCACertificateFile /some/local/path/master_cert.pem
> SSLProxyVerify require
> SSLProxyVerifyDepth 10
>
> <Location /svn>
> ... standard SVN config omitted ...
> SVNMasterURI https://masterserver.mysite.example/svn
> </Location>
> </VirtualHost>
>
> The path /some/local/path/master_cert.pem should contain the SSL
> certificate for your master SVN server. To create it, I just browsed to
> the master SVN server using a web browser and saved the SSL certificate
> to a file. (In Firefox: Navigate to SSL page, click padlock in
> bottom-right corner of browser, "View Certificate", "Details",
> "Export").
>
> Useful reference:
> http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
>
> Kind regards,
>
> Jon
>
>
Thanks for the example that will be surely useful when I begin to
setup my slaver. And, I still have a question: with the
replication/write-through, can one issue a 'svn lock' command on the
slaver or master? Thanks!
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 (narkewoody@gmail.com)
RE: What's the current status for subversion replication?
Posted by Jon Foster <Jo...@cabot.co.uk>.
Steven Woody wrote:
> Thanks everyone, and, can I get know if the replication/write-through
> things support https?
Yes, they do.
> The master that I want to mirror is using https
On the mirror, you need the appropriate Apache modules and
configuration.
Make sure you have mod_proxy and mod_ssl loaded as well as the normal
Subversion modules.
The proxy-specific config I've used is:
<VirtualHost ...>
...
SSLProxyEngine on
SSLProxyCACertificateFile /some/local/path/master_cert.pem
SSLProxyVerify require
SSLProxyVerifyDepth 10
<Location /svn>
... standard SVN config omitted ...
SVNMasterURI https://masterserver.mysite.example/svn
</Location>
</VirtualHost>
The path /some/local/path/master_cert.pem should contain the SSL
certificate for your master SVN server. To create it, I just browsed to
the master SVN server using a web browser and saved the SSL certificate
to a file. (In Firefox: Navigate to SSL page, click padlock in
bottom-right corner of browser, "View Certificate", "Details",
"Export").
Useful reference:
http://httpd.apache.org/docs/2.2/mod/mod_ssl.html
Kind regards,
Jon
**********************************************************************
This email and its attachments may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Cabot Communications Ltd.
If you are not the intended recipient of this email and its attachments, you must take no action based upon them, nor must you copy or show them to anyone.
Cabot Communications Limited
Verona House, Filwood Road, Bristol BS16 3RY, UK
+44 (0) 1179584232
Co. Registered in England number 02817269
Please contact the sender if you believe you have received this email in error.
**********************************************************************
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
Re: What's the current status for subversion replication?
Posted by Steven Woody <na...@gmail.com>.
On 11 August 2010 17:44, Campbell Allan
<ca...@sword-ciboodle.com> wrote:
>
> On Wednesday 11 Aug 2010, Ryan Schmidt wrote:
>> On Aug 11, 2010, at 02:46, Steven Woody wrote:
>> > What's the current status for subversion servers replication? Does it
>> > allow read/write on both master and slaver sides? Is it stable enough
>> > to put in real life use? I plan to do it for supporting concurrent
>> > development in different GEO locations, what is the right manual I
>> > should go to read, is it the "SVN Book"?
>>
>> The software the Subversion project provides for this task is called
>> svnsync. All writes occur on the master; the slaves are read-only. But you
>> can set up a write-through proxy so that people who check out from a slave
>> and try to commit will be transparently redirected to the master.
>
> This is pretty easy to set up too, the documentation is very clear about this.
> I've not looked at it the last few months but I did come across a couple of
> issues. One is easily worked around, the other not so easy but will not
> affect everyone.
>
> Svnsync does not automatically pick up on changes to revision properties so
> the post-revprop-change hook of the master needs to deal with this explicitly
> with the copy-revprops option.
>
> Svnsync doesn't really understand locking so the two repositories aren't
> always in sync. This will not be a problem for many I suspect but does affect
> the repositories I maintain unfortunately. I've read about several solutions,
> usually involving some kind of third party script but my investigations
> haven't gone much further.
>
> --
>
>
Thanks everyone, and, can I get know if the replication/write-through
things support https? The master that I want to mirror is using https
in a windows server and the users are authenticated by their windows
accounts. It's not familiar to me since all my experiences of
subversion are about Linux.
--
Life is the only flaw in an otherwise perfect nonexistence
-- Schopenhauer
narke
public key at http://subkeys.pgp.net:11371 (narkewoody@gmail.com)
Re: What's the current status for subversion replication?
Posted by Campbell Allan <ca...@sword-ciboodle.com>.
On Wednesday 11 Aug 2010, Ryan Schmidt wrote:
> On Aug 11, 2010, at 02:46, Steven Woody wrote:
> > What's the current status for subversion servers replication? Does it
> > allow read/write on both master and slaver sides? Is it stable enough
> > to put in real life use? I plan to do it for supporting concurrent
> > development in different GEO locations, what is the right manual I
> > should go to read, is it the "SVN Book"?
>
> The software the Subversion project provides for this task is called
> svnsync. All writes occur on the master; the slaves are read-only. But you
> can set up a write-through proxy so that people who check out from a slave
> and try to commit will be transparently redirected to the master.
This is pretty easy to set up too, the documentation is very clear about this.
I've not looked at it the last few months but I did come across a couple of
issues. One is easily worked around, the other not so easy but will not
affect everyone.
Svnsync does not automatically pick up on changes to revision properties so
the post-revprop-change hook of the master needs to deal with this explicitly
with the copy-revprops option.
Svnsync doesn't really understand locking so the two repositories aren't
always in sync. This will not be a problem for many I suspect but does affect
the repositories I maintain unfortunately. I've read about several solutions,
usually involving some kind of third party script but my investigations
haven't gone much further.
--
__________________________________________________________________________________
Sword Ciboodle is the trading name of ciboodle Limited (a company
registered in Scotland with registered number SC143434 and whose
registered office is at India of Inchinnan, Renfrewshire, UK,
PA4 9LH) which is part of the Sword Group of companies.
This email (and any attachments) is intended for the named
recipient(s) and is private and confidential. If it is not for you,
please inform us and then delete it. If you are not the intended
recipient(s), the use, disclosure, copying or distribution of any
information contained within this email is prohibited. Messages to
and from us may be monitored. If the content is not about the
business of the Sword Group then the message is neither from nor
sanctioned by us.
Internet communications are not secure. You should scan this
message and any attachments for viruses. Under no circumstances
do we accept liability for any loss or damage which may result from
your receipt of this email or any attachment.
__________________________________________________________________________________
Re: What's the current status for subversion replication?
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 11, 2010, at 02:46, Steven Woody wrote:
> What's the current status for subversion servers replication? Does it
> allow read/write on both master and slaver sides? Is it stable enough
> to put in real life use? I plan to do it for supporting concurrent
> development in different GEO locations, what is the right manual I
> should go to read, is it the "SVN Book"?
The software the Subversion project provides for this task is called svnsync. All writes occur on the master; the slaves are read-only. But you can set up a write-through proxy so that people who check out from a slave and try to commit will be transparently redirected to the master.