Setup test environment
Setup new hosts
Note that the following steps are already done by importing the mysql script mylvs.sql, the steps are showing the steps from scratch
Setup the hosts, goto http://myls.foo ->Setup->Server
Fill the first host, name is 'Web-01 with the IP address 192.168.2.221,
the MRTG can be anything but use for now -, Click ADD
Confirm with OK to return
Setup a new node
Setup the node, to do goto Setup->Node
Add tne new node,we use Demo-Node01 with the node ip 192.168.2.220 on port 80 (http).
We use the easiest scheduler called Round Robing, switch in the enable and monitor flag.
Note: The monitor flag will not have any functions assigned yet but it the flag hast to be enabled to support it.
Click Back to leave the confirmation screen
Assign host to node
Pick WEB-01 from the drop down box of New Host
Choose Direct Routing
Weight 100 Port 80 and Enable, Please replace newlink with an alias name of your choice.
Click Add Host to Node
*Now do the same thing with WEB-02
Finally there should be two new host (WEB01 & WEB-02) in our node Demo-Node01
- Console output:
[email protected]:/# ipvsadm -L -n
IP Virtual Server version 1.2.1 (size=4096) Prot LocalAddress:Port Scheduler Flags -> RemoteAddress:Port Forward Weight ActiveConn InActConn TCP 192.168.2.220:80 rr -> 192.168.2.221:80 Route 100 0 0 -> 192.168.2.222:80 Route 100 0 0
Where to go next
- Go here: Setup windows test client