Difference between revisions of "KTCPVS HTTP"

From LVSKB
Jump to: navigation, search
 
m
Line 15: Line 15:
 
   tcpvsadm --add-rule -i http --pattern=/html/.* -r web2:80
 
   tcpvsadm --add-rule -i http --pattern=/html/.* -r web2:80
 
   tcpvsadm --add-rule -i http --pattern=.* -r web3:80
 
   tcpvsadm --add-rule -i http --pattern=.* -r web3:80
 +
 +
[[Category:Content-Based Scheduling]]

Revision as of 11:25, 15 July 2005

Using the KTCPVS HTTP scheduler

The http scheduler is to assign jobs to servers according to the specified content-based scheduling rules.

In the example, there are three web servers, web1, web2 and web3. web1 is used for serving images, web2 is for static pages, web3 is for the rest. The tcpvsadm commands of this example are as follows:

 tcpvsadm -A -i http -s http
 tcpvsadm -a -i http -r web1:80
 tcpvsadm -a -i http -r web2:80
 tcpvsadm -a -i http -r web3:80
 tcpvsadm --add-rule -i http --pattern=/images/.* -r web1:80
 tcpvsadm --add-rule -i http --pattern=/html/.* -r web2:80
 tcpvsadm --add-rule -i http --pattern=.* -r web3:80