Documentation

Support

Unity Version Control

Proxy servers

Set up a proxy server to balance traffic between two machines.
Read time 1 minuteLast updated 21 days ago

Use a proxy server with UVCS to help you balance traffic between two machines. For example, you can have a remote server and a local proxy machine. You can configure your proxy server as a daemon, Windows service, or start it manually from the command line. There are multiple benefits if you use a proxy server with UVCS:
  • The proxy server acts as a data cache and only stores read-only revision information.
  • The proxy server stores all of the cached data on a configurable disk directory. For example, administrators can configure the maximum amount of storage the proxy server can use.
  • Data transmission between the proxy server, the repository server, and the client, exchanges data chunks of maximum 4 MB.

Proxy storage

  • Every ten minutes, the proxy checks if the total cache size exceeds the maximum amount of data, and removes the least recently used entries if necessary.
  • Every three minutes, and on shutdown, the proxy saves the Least Recently Used (LRU) list to
    proxy-data-path/proxy-lru.dat
    .
  • On startup and every eight hours, the proxy checks the cache directory for possible inconsistencies. Once every three days, the proxy rebuilds the LRU list and stores the date of the last rebuild under
    proxy-data-path/proxy-last-cache-walk.dat
    .

Log file

The UVCS proxy monitors free space on your disk and cleans up the cache to avoid using up all of the space. For example, the log records something similar to the following when you run low on disk space:
INFO Daemon - Disk is running out of space. 5.78 Gb available. Will delete 1.15 Gb from cacheINFO Daemon - Cleaning up 1.15 Gb (9576 entries)INFO Daemon - Cleaned up 1.15 Gb (9576 entries) in 2578 ms
If there is enough room on the disk (twice the size of the cache), then the log records something similar to the following:
INFO Daemon - Disk still has enough space: 19.53 Gb available.