Shunze ¾Ç¶é >¸ê°T³]³Æ±M°Ï >Array > ¡m¤À¨É¡nServer Load Balance HA «¢Åo¡AÁÙ¨S¦³µù¥U©ÎªÌµn¤J¡C½Ð§A[µù¥U|µn¤J]
« ¤W¤@½g¥DÃD ¤U¤@½g¥DÃD » Åã¥Ü¦¨¦C¦L¼Ò¦¡ | ¼W¥[¨ì§Úªº³Ì·R
µoªí·s¥DÃD µoªí¦^ÂÐ
§@ªÌ
¥DÃD
shunze
¤u¤Í§B§B


µù¥U¤é´Á: 2002 04
¨Ó¦Û: ¼é¦Á²×¤î¤§¦a
¤å³¹: 2380

shunze Â÷½u
¡m¤À¨É¡nServer Load Balance HA¤Þ¥Î¦^ÂÐ ½s¿è/§R°£¤å³¹ ·j´M¥Ñ  µoªíªº¨ä¥L¤å³¹ ¦^³øµ¹ª©¥D IP ¦ì¸m ¦^¦¹­¶³Ì¤W¤è

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¤¤±N­nª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
¥u­n­ì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¨ìºÊ±±±ø¥ó®É¡A­n¦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!




2014-07-23, 12:19 shunze ªº­Ó¤H¸ê®Æ §â shunze ¥[¤J¦n¤Í¦Cªí µo°eEmailµ¹ shunze ÂsÄý shunze ªººô¯¸ MSN : shunze@gmail.com
shunze
¤u¤Í§B§B


µù¥U¤é´Á: 2002 04
¨Ó¦Û: ¼é¦Á²×¤î¤§¦a
¤å³¹: 2380

shunze Â÷½u
¤Þ¥Î¦^ÂÐ ½s¿è/§R°£¤å³¹ ·j´M¥Ñ  µoªíªº¨ä¥L¤å³¹ ¦^³øµ¹ª©¥D IP ¦ì¸m ¦^¦¹­¶³Ì¤W¤è

¤µ¤Ñ³Q¦Ñ®v´£¿ô¤F¤@­Ó¦bHA³]©w¤W®e©öº|±¼ªº¦a¤è¡C

¦bADMIN TOOLS / Config Managment / Synchorization / Nodes/PeersùØ¡A¤]¦³HAªº³]©w­n¶i¦æ¡C

¥ý³]©w Challenge Code¡A



µM«á§â¨â­ÓUnit³v¤@¥[¤J¡C




¡ôNode Name­n¥´¸òUnit¤@¼Ëªº¦W¦r³á¡AIP´N¥ÎHeartBeat IP¡C



³]©w¦n«á¡AAPV·|¦Û¤v§P§O¸ÓUnit¬OLocalÁÙ¬OPeer Node¡C


¥ÎCLI¨Ó³]©w¡A«ü¥O¦p¤U

synconfig challenge configuration
synconfig challenge "XXXXXQkf3EYza35KVCJq"

synconfig configuration
synconfig peer AN-1 2.2.2.1
synconfig peer AN-2 2.2.2.2



♥¶¶¤l¦Ñ±Cªººô©ç¡A½Ð¦hÃö·Ó¡ã

If you don't like something, change it.
If you can't change it, change your attitude.
Don't complain!




2014-08-07, 18:13 shunze ªº­Ó¤H¸ê®Æ §â shunze ¥[¤J¦n¤Í¦Cªí µo°eEmailµ¹ shunze ÂsÄý shunze ªººô¯¸ MSN : shunze@gmail.com
  « ¤W¤@½g¥DÃD ¤U¤@½g¥DÃD »
µoªí·s¥DÃD µoªí¦^ÂÐ
¸õ¨ì:

Powered by: Burning Board 1.1.1 2001 WoltLab GbR