Setup test environment: Difference between revisions

From MyLVS
Jump to navigation Jump to search
(Created page with "The test setup runs two real server using Direct Routing (DR). We will use later 2 different OS on our test host, Linux and Windows together.<br> =Setup new hosts= Setup the h...")
 
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
The test setup runs two real server using Direct Routing (DR). We will use later 2 different OS on our test host, Linux and Windows together.<br>
 
=Setup new hosts=
=Main=
Setup the hosts, to do goto '''Setup->Server'''<br>
<br>
This is the roadmap of the test setup<br><br>
[[File:myLVS-Full.png|320]]
<br><br>
The test setup runs two real server using Direct Routing (DR). We will use later 2 different OS on our test host, Linux and Windows together.<br><br>
==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'''<br>


click '''Add'''<br>
click '''Add'''<br>
Line 8: Line 16:




Fill the first host, name is ''''Web-01''' with the IP address '''192.168.2.221''', MRTG host will be '''-''', Click '''ADD'''<br><br>
Fill the first host, name is ''''Web-01''' with the IP address '''192.168.2.221''', <br>the MRTG can be anything but use for now '''-''', Click '''ADD'''<br><br>


[[File:01-01-01-Add-Web01.png|640px]]
[[File:01-01-01-Add-Web01.png|640px]]
Line 27: Line 35:
[[File:01-02-03-Summary.png|640px]]<br><br>
[[File:01-02-03-Summary.png|640px]]<br><br>


=Setup a new node=
==Setup a new node==
Setup the node, to do goto '''Setup->Node'''<br>
Setup the node, to do goto '''Setup->Node'''<br>


Line 42: Line 50:


<br><br>
<br><br>
=Assign host to node=
==Assign host to node==
Assign our hosts, to do click '''assign'''<br><br>
Assign our hosts, to do click '''assign'''<br><br>
[[File:02-01-06-AssignServer.png|720px]]
[[File:02-01-06-AssignServer.png|720px]]
Line 50: Line 58:
<br><br>Pick '''WEB-01''' from the drop down box of '''New Host'''<br>
<br><br>Pick '''WEB-01''' from the drop down box of '''New Host'''<br>
Choose '''Direct Routing'''<br>
Choose '''Direct Routing'''<br>
Weight '''100''' Port '''80''' and '''Enable'''<br>
Weight '''100''' Port '''80''' and '''Enable''', Please replace ''newlink'' with an alias name of your choice.<br>
Click '''Add Host to Node'''<br>
Click '''Add Host to Node'''<br>
[[File:02-02-02-Add-Web01-to-node.png|640px]]
[[File:02-02-02-Add-Web01-to-node.png|640px]]
Line 74: Line 82:
   -> 192.168.2.221:80            Route  100    0          0
   -> 192.168.2.221:80            Route  100    0          0
   -> 192.168.2.222:80            Route  100    0          0
   -> 192.168.2.222:80            Route  100    0          0
=Where to go next=
<br>
*Go here: [[Setup windows test client]]

Latest revision as of 20:01, 3 September 2015

Main


This is the roadmap of the test setup

320

The test setup runs two real server using Direct Routing (DR). We will use later 2 different OS on our test host, Linux and Windows together.

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

click Add


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




You should now see the new web server within the configuration:
Click on Copy to create the second node:



Edit the data for the second host, name is 'Web-02 with the IP address 192.168.2.222, MRTG host will be -, Click OK



There should be now 2 hosts available in our host list:



Setup a new node

Setup the node, to do goto Setup->Node

click Add


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 Add



Click Back to leave the confirmation screen



Assign host to node

Assign our hosts, to do click assign



Click add to assign our first server to our new 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


Now goto Apply on Configuration, select OK to apply the current configuration to myLVS

This should be our new inventory

  • Console output:
root@mylvs01:/# 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