Chapter4define
Parameter
Description
<string2>
Thisisonestring,indicatingthenameof
server.Asformultipleservernames,spaceis
usedbetweeneachtwoservernamesandall
servernamesarequotedwithsinglequotes,
suchasāserver1server2ā.
balanceThissetsvirtualserver.Sixmodesare
available:rr,wrr,lc,wlc,shanddh.
rr|wrr|lc|wlc|sh|dh"rr"indicatesselectingserverinvirtualserver
sequentially;"wrr"indicatesselectingvirtual
serverinsequenceofweight;"lc"indicates
selectingserveraccordingtoresponsetime,
thefastertheresponsetime,thehigher
thepriority;"wlc"indicatesselectingserver
accordingtoresponsetimeandweight;the
shortertheresponsetimeandthelarger
theweight,thelargerthepriority;"sh"
indicatesselectingserverwithHASHquery
accordingtosourceaddress;"dh"indicates
selectingserverwithHASHqueryaccording
todestinationaddress.
backup
ThisspecifiesIDofbackupvirtualserver.
Whenallserversinonegroupstopproviding
services,datainserversofvirtualserverwill
bebackeduptothespecifiedvirtualserver.
<number>
Thisisonenumber,indicatingIDofvirtual
server.
Command
Illustration
Duringcommunicationprocess,ifoneserverisdeletedfromthe
virtualserver ,connectionsonthisserverwillnotbedisconnected
andonlyafterre-establishmentofconnection,canconīæguration
ofvirtualservertakeeffect.
Ifconnectedservergetsdisconnectedduringcommunication,
clientwillnotbeconnectedtoanotherserverinvirtualserver
unlessre-establishingconnection.
Whenvirtualserverissettoweightbalancealgorithm,thetotal
numberofconnectionsisassignedaccordingtoweightvalue.Here
weightvalueisnotpriority.
"dh"and"sh"algorithmsproceedHASHqueryaccordingtoIPad-
dress.OnlywhensourceIPanddestinationIParedisperse,can
connectionsbeallocatedtodifferentserversaveragely.
Beforedeīæningvirtualserver ,deīæneservers.Fordetails,please
refertothetopicserver .
ExampleT oaddvirtual_server1,whichcontainsserver1andserver2,exe-
cutethefollowingcommand:
#virtual_serveraddnamevirtual_server1server
āserver1server2ā
virtual_servermodify
Command
Function
Thiscommandisusedtomodifyonevirtualserver .
ConfidentialandProprietaryInformationofZTECORPORATION61