Difference between revisions of "KTCPVS HTTP"

From LVSKB
Jump to: navigation, search
m
m
Line 17: Line 17:
  
 
[[Category:Content-Based Scheduling]]
 
[[Category:Content-Based Scheduling]]
 +
[[Category:KTCPVS]]

Revision as of 04:22, 10 December 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