[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Balancing and proxing

From: Ryan Schmidt <subversion-2012c_at_ryandesign.com>
Date: Fri, 9 Aug 2013 18:12:01 -0500

On Aug 9, 2013, at 15:40, "Naumenko, Roman" wrote:

> I wanted to check if it's possible to configure subversion in
> master-slave mode with some sort of common URL on the proxy server or
> loadbalancer, so end users wouldn't bother with different names for
> slave/master/readonly and geolocal names.

You can configure any number of read-only slaves which maintain copies of the master repository with a very slight delay. The mirroring and keeping in sync would be accomplished using svnsync. To access the repositories, users would use the hostname of a mirror near to them. For read operations, they would occur on the mirror and therefore be faster than accessing the farther-away master. For write operations, you configure the mirror to proxy those requests back to the master. (Search for "write-through proxy" for more on this.) In this way the users only need to know the address of their closest mirror; they do not need to know which is the master or to know its address.

> Of course, it would be ideal if subversion nodes could just share a
> storage, so any sort of requests from a load balancer can processed by
> any node without need to replicate changes over network.

If your storage is robust (i.e. a cluster filesystem, such as Xsan) and you want to run multiple Subversion servers that each have access to the same repositories on the same storage, then yes, you can do that instead.
Received on 2013-08-10 01:12:36 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.