此内容没有您所选择的语言版本。
6.4. Testing the Configuration
This section discusses basic testing of your load balancer and proxy configuration.
Initial Testing
Start the load balancer and the proxy machines. Note that the Satellite Proxy logs will not be created until the first requests are delivered (/var/log/rhn/). Try to install and remove an RPM file, such as zsh.
The
/var/log/squid/access.log file on the load balancer should contain information similar to the following:
This example shows that the client requests are balanced between the two different proxies. A single
yum package install is still shared between the multiple proxies because multiple requests are involved during a package installation. The client IP address is 192.168.100.19 and you can see the named proxya.example.com and proxyb.example.com cache peers corresponding to the two different Satellite Proxies.
Squid Load Balancer Log Files
Refer to the following log files to monitor load balancer activity:
/var/log/squid/access.logfor watching requests arriving from the client/var/log/squid/cache.logfor debugging SSL startup issues and cache peers on ports 80 and 443
You can use the
netstat command to ensure that the squid load balancer is listening on the correct ports:
netstat -tulpn | grep squid | grep tcp
# netstat -tulpn | grep squid | grep tcp
tcp 0 0 :::80 :::* LISTEN 29120/(squid)
tcp 0 0 :::443 :::* LISTEN 29120/(squid)