¡m¤À¨É¡nServer Load Balance HA | |
Array SLB¤ä´©Cluster»PHA¨âºØ°ª¥i¥Î©Ê¬[ºc¡C
¨ä¤¤HA¬[ºc¥HUnit¡AGroup¡APolicy¤T¼hÃö«Y¨Ó¶i¦æ³W¹º¡C
¦bHA¬[ºc¤¤¡A¨C¤@¥xAPV´N¬O¤@ÓUnit¡F
Unit¶¡³z¹L¤@±øºô¸ô½u¹ï±µ¨Ó°µ¬°HearBeat¡C
¦Ó³o¨ÇUnit©Ò²Õ¦¨ªºHAªA°È¸sÅé´N¬O¤@ÓGroup¡C
n¨Ì¾Ú¦óºØ±ø¥óHC Check¨Ó¶i¦æActiveÓÅé(Unit)¤Á´«¡A´N¬O¶¶¤l»¡ªºPolicy¡C
¥H¤U¬°SLB HAªº¥Ü½dÀô¹Ò¡A§Ú̳z¹LWebUI¨Ó³]©w¤@²ÕHA¡A³Ì«á¦A±q³]©wÀɨӬd¬ÝCLI»yªk¡C
Unit¦@¦³u1»Pu2¨â¥x¡APort1 IP¤À§O¬°10.10.1.104»P10.10.1.114
Port2 HeartBeat IP«h¤À§O¬°2.2.2.1/30»P2.2.2.2/30
u1¦³¸û°ªªºÀu¥ýÅv100¡Au2ªºÀu¥ýÅv¬°¸û§Cªº50
Group ID¬°1
PolicyªºHealth CheckºÊ±±¶µ¥Ø¬°Port1ªºª¬ºA¡F·íµo¥Í²§±`®É¡A¤Á´«¨ìGroup¤¤ªº¥t¤@ÓUnit
APVªºHA³]©w¥i¦bSYSTEM CONFIGURATION / High Availability / HAùضi¦æ¡C
¦ý¦b³]©w¤§«e¡A§ÚÌ¥ý¨ìSYSTEM CONFIGURATION / Basic Networking / Interface / PortùØ¡A
³]©wHeartBeatªºIP³]©w©óPort2¡C
³]©wUnit
HeartBeat IP³]©w¦n«á¡A
¦bSYSTEM CONFIGURATION / High Availability / HA / General Config¤¤§Ú̳z¹L ADD ³v¨B±Nu1»Pu2¨âÓUnit¥HHeartBeatªºIP¨Ó«Ø¥ß¡C
³]©wGroup
¦bSYSTEM CONFIGURATION / High Availability / HA / Groups¤¤¡A«Ø¥ßID¬°1ªºHA Group¡C
µM«á¦bGroup 1¤W³sÂI·Æ¹«¨â¤U¡A¨Ó³]©wGroup¤¤ªº¨âÓUnit u1»Pu2¡C
¨ä¤¤u1¦³¸û¤jªºÀu¥ýÅv100¡Au2¦³¸û¤pªºÀu¥ýÅv50¡C
·N¿×µÛ¦b¥¿±`ª¬ªp¤U¡Au1¬°Active¡A¦Óu2¬°Standby¡C
µM«á©óGROUP FLOATING IP¤¤±NnªA°ÈªºVIP³]©w¦bFloating IPùØ¡C
±µµÛ±Ò¥ÎGroup¡C
Preemptªº¥\¯à¦b©óActive/Standby Unitªº¤Á´«®É¾÷¿ï¾Ü¡C
¦bNon preempt¼Ò¦¡¤U¡AActive Unit failoverµ¹Standby Unit«á¡A´N¥ÑStandby Unit¨ú±oActive¸ê®æ¡F
¨Ã¤£·|ÀHìUnitªº«ì´_¡A§âActive¸ê®æÂkÁÙ¡Aª½¨ìfailoverªºª¬ªp¦A«×µo¥Í¡C
¦ÓPreempt¼Ò¦¡¡A«h¥HGroup¤¤Unitªºpriority¬°°Ñ¦Ò¡C
¥unìUnitªºpriority¸û°ª¡A¤@¥¹«ì´_¤W½u«á¡A´N·|«·s¨ú±oActiveªº¦a¦ì¡C
Preempt»PNon preemptþÓ¤ñ¸û¦n¡A¨Ã¨S¦³µª®×¡Aµø¬[ºc»P»Ý¨D¦Ó©w¡C
Y¤£·Q¤Á¨ì³Æ´©®É¡A¦]¬°¥D¾÷¦^´_¦Ó¦A¤Á´«¤@¦¸¡A¨º´N¤£n±Ò¥ÎPreempt¡C
³]©wPolicy¤¤ªºHealth CheckºÊ±±Ãþ«¬
¦bSYSTEM CONFIGURATION / High Availability / HA / HC Condition¤¤¥i³]©w±ýºÊ±±ªºÃþ«¬¶µ¥Ø¡C
¦b¦¹½d¨Ò¤¤¡A§Ú̺ʴú¦Û©w¸qªºPort1ª¬ºA¡C
³]©wPolicy¤¤ªº¤Á´«¤è¦¡Decision
µM«á¦bSYSTEM CONFIGURATION / High Availability / HA / Decision¤¤¥i³]©w¹F¨ìºÊ±±±ø¥ó®É¡An¦p¦ó¤Á´«Unit¡C
§Ú̳]©w¬°¹F¨ì±ø¥ó«á¡A¤Á´«¨ìGroup¤¤ªº¥t¤@ÓUnit¡AGroup_Failover¡C
³]©w¦P¨B
¦bSYSTEM CONFIGURATION / High Availability / HA / Synchronization¤¤¡A°µ¦P¨B³]©w¡C
Bootup¤ÎRuntime Config§Ú̳£³]©w¬°¦P¨B¡C
HA SSF
¥t¥~¡AHA¤]´£¨ÑStateful Session Failover (SSF) function¡C
·ífailoverµo¥Í®É¡A§âªA°ÈÂà¨ì¥t¤@¥xUnit¤W¡C
¤£¹LHA¤£¬O¥»¨Ó´NÀ³¸Ó¦p¦¹¡H¶¶¤l¨ä¹ê¤£¬O«Ü©ú¥Õ³oÓSSFªº¯u¥¿·N²[...
³]©wSecondary Network Link
°£¤F³]©wHeartBeat¥~¡A§Ṳ́]¥i¥H§âAPVªA°Èªº¤¶±IP³]©w¬°²Ä¤Gºô¸ô³s½u¡A
³z¹L¨âÓºô¸ô³s½u¨Ó´î¤Ö»~§PUnit±¾ÂIªº·N¥~©Ê¡C
¦^¨ìSYSTEM CONFIGURATION / High Availability / HA / General Config¡A©Ô¨ì³Ì¤U±¡C
·s¼W¤@ÓSecondary Network Link¡C
§â¨âÓUnit¥HªA°Èªº¤¶±IP¥[¤J¡C
±Ò¥ÎHA
³Ì«á¦bSYSTEM CONFIGURATION / High Availability / HA / General Config¤¤¡A§Ú̱ҥÎHA¬[ºc¡C
³]©w¨ì¦¹¡A²Ä¤@¥xUnitªºHAªº³]©w¤w¸g§¹¦¨¡A±µµÛ«ÂЦP¼Ë¨BÆJ©ó²Ä¤G¥xUnit¡C
¡ôHA¤¤FFO«üªº¬OFast Failover¡A»ÝnÃB¥~ªºlicense»P½u§÷¡A¤@¯ëHA¨Ã¤£»Ýn±Ò¥Î¡C
¨â¥xUnit³£³]©w¦¨«á¡A´N¥i¥H¦bHAªºGeneral Information¬Ý¨ìHA Group¤¤ªº¸ê°T¤w¸gÅܦ¨ºñ¿O¡C
¦pªG³]©w¥¿½Tªº¸Ü¡A¨â¥xUnit¬Ý¨ìªº°T®§À³¸Ó¬O¤@Pªº¡A
³o®É§ÚÌ´N¥i¥H¶}©l©ó¨ä¤¤¤@¥xUnit¤¤¶i¦æSLBªºReal¡AGroup¡AVirtual»PPolicy¬ÛÃö³]©w¡A
µM«á¦Û°Ê¦P¨B¨ì¥t¤@¥xUnit¤¤¡C
HA´ú¸Õ
¥Ñ©óu104¦³¸û¤jªºÀu¥ýÅv20¡Au114¦³¸û¤pªºÀu¥ýÅv10¡A
©Ò¥H¦b¥¿±`±¡ªp¤U¡ASLB·|³z¹Lu104¨Ó¶i¦æ¡C
¤@¥¹¹F¨ìºÊ´ú±ø¥ó¡A©Îu104¥¢¥h³s½u¯à¤O¡Astandbyªºu114´N·|±µ¤â¨Ó¶i¦æSLB¡C
CLI³]©w
¥H¤W³o¨ÇWebUIªºHA¾Þ§@¡A§¹¥þ¥i³z¹LCLI¨Ó¶i¦æ¡A«ü¥O¦p¤U
Unit
ha unit u1 2.2.2.1
ha unit u2 2.2.2.2
Group
ha group id 1
ha group fip 1 10.10.1.200 port1
ha group priority u1 1 100
ha group priority u2 1 50
ha group enable 1
Health Condition
ha hc vcondition name "vc_PortDown" V_1 AND
ha hc vcondition member "vc_PortDown" "PORT_1"
Decision
ha decision rule "vc_PortDown" Group_Failover 1
Sync
ha synconfig bootup on
ha synconfit runtime on
SSF
ha ssf on
ha ssf on net
ha ssf peer 2.2.2.2
Secondary Link
ha link network on
ha link network secondary u1 1 10.10.1.104 65521
ha link network secondary u2 1 10.10.1.114 65521
Enable HA
ha on
¥t¥~¡A¦b³W¹ºHA¬[ºc®É¡A¦³¤@¥ó¨Æ°È¥²nª`·N¡I
¦h¥xUnit¶¡ªº¸ê®Æ½Æ¼g¡A·|¦bHA³]©w§¹¦¨«á¤~¶}©l¶i¦æ¡C
Y¦b³]©wHA«e¡A¤w¥ý¦b¬Y¤@¥xUnit¤W°µ¤F«Ü¦h³]©w¡A
¨º»ò¦bHA±Ò¥Î«á¡A³o¨Ç¥ý«e´N¤w³]©w¦nªº¸ê®Æ¬O¤£·|¦Û°Ê¦P¨Bªº¡I
Y¦³·N³W¹ºHA¬[ºc¡A½Ð°È¥²¥ý§¹¦¨HA³]©w¡A¦A¨Ó¶i¦æ¨ä¥¦SLBªº³]©w¡AÅý³o¨Ç³]©w¯à°÷¦Û°Ê¦P¨B½Æ¼g¡C
♥¶¶¤l¦Ñ±Cªººô©ç¡A½Ð¦hÃö·Ó¡ã
If you don't like something, change it.
If you can't change it, change your attitude.
Don't complain!
|