开发者

2 VisualSVNServer instances pointing to same SVN repo?

开发者 https://www.devze.com 2023-01-07 06:43 出处:网络
Would it be possible/safe to run two instances of VisualSVNServer pointing to the same repo? I\'ve searched around and not had any luck finding anything related specifically to this question. The onl

Would it be possible/safe to run two instances of VisualSVNServer pointing to the same repo?

I've searched around and not had any luck finding anything related specifically to this question. The only reason I ask is because we have a need to enable Windows Authentication/Integration over http, and svn authentication over https. It does not seem to be an option to run both within a single instance of VisualSVNServer.

If not, do you know of alternative solution that would allow for this?

Edit: Received the following answer from VisualSVN Support

Thanks to Subversion design, repositories are ready to be accessed by several server instances simultaneously. We haven't experimented a lot with such configuration, but I think it's possible.

Am I understand properly, that you are going to store your repositories on a network storage and run two VisualSVN Server instances on different machines?

Ple开发者_开发百科ase take care about the server.pid. file. In the current release, this file is stored in the repositories folder. So there will be a collision between two instances of VisualSVN Server. We are going to fix this problem in the upcoming release.

You can easily relocate the server.pid to another destination by adding the following command to the "C:\Program Files\VisualSVN Server\conf\httpd-custom.conf" file:

[[

PidFile "C:/Tmp/server.pid"

]]"


You can point two VisualSVN Server instances to the same repository if it stored on SMB share without any problems. It's typical configuration for active/active or active/passive cluster setups.


I wouldn't do this because as far as I know, VisualSVN brings its own web server (Apache) and SVN binaries. I would expect locking issues when running two of each on the same repo, if it's possible at all. VisualSVN probably won't install twice at all.

This sounds like a case for separate installation of SVN and Apache and custom configuration. I can't say whether what you want is possible but I would expect it is. It's probably to be fiddly, though - VisualSVN takes away a lot of configuration hassle that you have when doing the setup manually. Questions about that would be appropriate to ask on Serverfault.com.

Apart from VisualSVN, there also are other, also commercial wrappers. Maybe one of them is more flexible in this respect.

Update: Also, check this out: Supporting Multiple Repository Access Methods from the SVN book

0

精彩评论

暂无评论...
验证码 换一张
取 消