[p4] 1 proxy pointing to 2 servers
Greg Whitfield
Greg.Whitfield at lightworkdesign.com
Wed Oct 22 01:54:04 PDT 2008
I've done this in the past, and luckily remembered to write down how to
do it again! Here's what I did:
Setting up a new proxy on an existing proxy server
The following steps describe how to set up multiple proxy services on
one server, which saves having to have a dedicated machine per proxy.
1. Create a folder on the server machine that will be the proxy
cache.
2. From an existing proxy folder cache, copy the following files:
a. Svcinst.exe
b. Svcinst.dll
c. P4p.exe
d. P4ps.exe
e. P4.exe
3. Run a command prompt in the cache folder.
4. Run "svcinst create -n <Name for Proxy> -e <path to p4ps.exe> -a
5. Run regedit, and locate
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<Name for Proxy>
6. Create a new key "Parameters".
7. Set the following string values in the new key:
a. P4LOG=log
b. P4PCACHE=<folder name for new cache folder created in (1)>
c. P4PORT=<port that Proxy will show itself on>
d. P4TARGET=<Perforce server that this is a proxy of>
8. Run Services, and start the new service (or use "Net Start <Name
for Proxy>")
A suggested naming convention for the service is:
"P4 Proxy <label of destination>"
I also recommend that the service description should be set to contain
both the proxy port and a description of the destination - it makes
tracking down which proxies are doing what much easier.
Hope that helps.
Greg
~~~~
-----Original Message-----
From: perforce-user-bounces at perforce.com
[mailto:perforce-user-bounces at perforce.com] On Behalf Of Brad Holt
Sent: 21 October 2008 22:41
To: perforce-user at perforce.com
Subject: [p4] 1 proxy pointing to 2 servers
We're splitting a db over 2 servers, but there was already a web of
proxies pointing at the server. I will need those proxies to all now be
able to service both servers. The windows installer got the existing
proxy pointing to the one server, now we need it to also point to the
other.
I assume the best answer would be just another instance of P4P with some
parameters pointing to the different server? BTW this is all windows :(
_______________________________________________
perforce-user mailing list - perforce-user at perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
More information about the perforce-user
mailing list