About the Team Foundation Server Proxy Config File

vstsuetb

The Team Foundation Server Proxy has a separate XML configuration file that maintains information required for the proxy configuration. This topic describes the nodes found in this file and their effect on the Team Foundation Server Proxy configuration.

Team Foundation Server Proxy Config Nodes

The following XML nodes are found in the Team Foundation Server Proxy config file, which is located at %ProgramFiles%Microsoft Visual Studio 2005 Team Foundation ServerWeb ServicesVersionControlProxyproxy.config.

<ProxyConfiguration>
This is the root element of the proxy configuration file. For example:
<ProxyConfiguration
    xmlns:xsd=”http://www.w3.org/2001/XMLSchema”
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance”>
<!– Additional nodes omitted for clarity –>
</ProxyConfiguration>

<Servers>
This node represents a collection of <Server> nodes that correspond to the application tier that the proxy serves files from. Each <Server> node contains a <Uri> node that specifies the URI of the VersionControl virtual directory of the application tier. For example:
<Servers>
   <Server>
      <Uri>http://tfserver:8080/VersionControl</Uri>
   </Server>
</Servers>

<CacheRoot>
This node contains the root directory of the file cache. This directory contains one folder for each application tier for which the proxy is configured. For example:
<CacheRoot>C:Program FilesMicrosoft Visual Studio 2005 Team Foundation ServerWeb ServicesVersionControlProxyData</CacheRoot>

<CacheLimitPolicy>
This node specifies at what point the proxy will run the clean-up routine to remove stale files. This can be configured in one of two ways: you can use a <PercentageBasedPolicy> node that runs the clean-up routine when a certain percentage of available disk space is filled, or you can use a <FixedSizeBasedPolicy> node to specify a fixed size for the cache (in megabytes). When the specified size is reached, the clean-up routine is run. For example:
<CacheLimitPolicy>     
   <!– Cache limit expressed as percentage of disk space –>
   <PercentageBasedPolicy>75</PercentageBasedPolicy>    </CacheLimitPolicy>
<CacheLimitPolicy>
   <!– Cache limit expressed as MB –>
   <FixedSizeBasedPolicy>500</FixedSizeBasedPolicy>
</CacheLimitPolicy>

<StatisticsPersistTime>
This node indicates how frequently (in hours) statistics should be written to disk. For example:
<StatisticsPersistTime>1</StatisticsPersistTime>

<ReaderChunkSize>
This node sets the reader chunk size. For example:
<ReaderChunkSize>1048576</ReaderChunkSize>

 <WriterChunkSize>
This node sets the writer chunk size. For example:
<WriterChunkSize>1048576</WriterChunkSize>

Changing Proxy Configuration Settings

To change the proxy configuration, you must open the proxy.config file in a text or XML editor and change the values specified manually. After saving the files you must recycle the application pool for the changes take effect.

0 comments

Discussion is closed.

Feedback usabilla icon