Difference between revisions of "KTCPVS HTTP"

From LVSKB
Jump to: navigation, search
m
m
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
 
   tcpvsadm --add-rule -i http --pattern=.* -r web3:80
 
   tcpvsadm --add-rule -i http --pattern=.* -r web3:80
  
[[Category:Content-Based Scheduling]]
+
[[Category:Content-Based Scheduling|HTTP]]
 +
[[Category:KTCPVS|HTTP]]

Latest revision as of 05:17, 30 July 2006

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