ProxyCache is a WAPT feature designed to replace the legacy secondary proxycache mirror system. It downloads and caches packages on-demand from the primary WAPT server, improving efficiency and reducing unnecessary data synchronization.
ProxyCache offers several key advantages, but also introduces some considerations.
Advantages
Considerations
Bandwidth optimization: Only requested packages are downloaded, reducing unnecessary data transfer.
Migration needed: Secondary repository mirrors are deprecated and will be removed in WAPT 2.7.1.
Disk space efficiency: Unused packages are not stored, and automatic cleanup frees up space.
Network dependency: Requires reliable connectivity to the primary WAPT server for uncached packages.
ProxyCache replaces the legacy secondary proxycache mirror system by downloading and caching packages on-demand from the primary WAPT server.
It ensures that only necessary packages are stored and served locally, optimizing bandwidth and disk space usage.
Activation: ProxyCache is enabled on a dedicated server or machine acting as a cache proxy.
On-Demand Download: When a client requests a package, ProxyCache checks its local cache. If the package is not available, it downloads it from the primary WAPT server.
Local Caching: The downloaded package is stored locally in the ProxyCache directory. Subsequent requests for the same package are served directly from the cache.
Automatic Updates: If the package on the primary server changes, ProxyCache re-downloads it to ensure clients always receive the latest version.
Cleanup Mechanism: Unused packages are automatically removed after a configurable period to free up disk space.
A client requests the vlc package. ProxyCache does not have it in its cache, so it downloads the package from the primary WAPT server. Then stores it locally, and serves it to the client.
Another client requests the same vlc package. ProxyCache finds the file in its local cache and serves it directly, without contacting the primary server.
Note
Integration with TFTP
TFTP integration: The TFTP server can fetch its files using the HTTP protocol (instead of only locally), allowing it to be directed toward the ProxyCache for optimized file distribution.
The WAPT Server ProxyCache optimizes package distribution by caching packages from upstream repositories (such as Debian, Red Hat, and Ubuntu) for WAPT agents.
This feature is available starting with WAPT 2.7 and requires the WAPT server to have access to the upstream Linux repositories in order to download packages on demand.
Client machines retrieve packages directly from the ProxyCache and therefore do not require direct access to the upstream repositories.
Local Caching: Once a package has been downloaded, it is stored locally in the ProxyCache directory. Any subsequent requests for the same package are served directly from the local cache, reducing external bandwidth usage and improving download performance.
HTTP Server: ProxyCache does not use Nginx or Apache (httpd). It relies on a built-in HTTP server based on mormot2, specific to WAPT.
By default, the WaptProxyCache package deploys with a pre-configured set of parameters in the conf.ini.
Notably, cached packages are retained for 60 days by default, as defined by the TimeoutSec parameter (5184000 seconds) in the [http_settings.DiskCache] section, as well as in each individual URL section ([http_settings.Url#X]):
In addition, the disk cache size is unlimited by default (MaxSizeKB=-1), meaning no upper bound is enforced on the total amount of data stored locally.
As the ProxyCache agent is designed to retrieve and store a potentially large number of packages over time, and given the unlimited cache size combined with a 60-day retention period, administrators should ensure that sufficient disk space is allocated on the host machine and monitored regularly to avoid disk saturation.
Redirecting the disk cache with a symbolic link
The proxycache can grow quickly, especially when it serves packages, WUA updates and WADS images. It is common to store it on a dedicated disk or volume.
Warning
Do not change the cache location by editing the paths in the WAPT configuration files or in the proxycache package. Several internal WAPT paths are hardcoded, and the proxycache configuration is regenerated each time the package is installed or updated. A custom path would be lost or would break at the next update of the solution.
The recommended method is to keep the default path and redirect it to the other disk with a symbolic link. WAPT keeps using the path it expects, and only the storage location changes.
Stop the services WAPTProxyCacheHTTP, WAPTProxyCacheHTTPS and wapttftpserver.
Move the existing cache folder to the new disk (for example D:\wapt_proxycache).
Rules are essential for providing hosts with information about where to retrieve new packages.
To use this feature, hosts must have the use_repo_rule parameter enabled.
Warning
The rules are applied from top to bottom.
The first rule that matches the conditions overrides all the other rules placed under.
Defines the list of available remote proxycache.
The list includes http://download.windowsupdate.com/microsoftupdate/v6/wsusscan/ to allow directly downloading of Windows Updates by the remote repositories to preserve WAPT Server bandwidth. If your certificate is self-signed, continue to use HTTP.
The option No Fallback will prevent from falling back to the main WAPT Server and will avoid undesired network congestion if the remote proxycache becomes temporarily unavailable.
The option Proxy will need to be set if the remote proxycache is required to connect via a proxy.
Window for setting proxycache rules in the WAPT Console¶
You can then choose from the different above parameters and affect values to a specific secondary WAPT proxycache.