A10¸ºÔؾùºâSLB²âÊÔÅäÖà v1.0 ÏÂÔر¾ÎÄ

A10ÍøÂ縺Ôؾùºâ²âÊÔ·½°¸

ÔÚ´Ë·þÎñ×éÄÚ¼ÓÈë³ÉÔ±£¬ÐèҪעÒâ³ÉÔ±ÐèҪѡÔñ¶Ë¿ÚºÅΪ80.

Ìí¼ÓÐéÄâ·þÎñÆ÷£¬Ê¹ÓÃÃû³Æweb-vip£¬ÅäÖÃipµØַΪ10.0.1.12£¬Ìí¼Ó¶Ë¿ÚΪTCP 80£¬ ·þÎñ×éÔòÑ¡Ôñ¸Õ²Å½¨Á¢µÄSG-80¡£

A10ÍøÂ縺Ôؾùºâ²âÊÔ·½°¸

Ч¹û²âÊÔ

ÓòâÊÔÈí¼þApache BenchÄ£Äâ·ÃÎÊÇëÇó£¬Á¬½ÓÇëÇó±»¾ùºâµÄ·ÖÅäµ½ÁË2̨·þÎñÆ÷ÉÏ¡£

ab ¨Cn 100 http://192.168.8.10/ ; Ä£Äâ100¸ö·ÃÎÊÇëÇó£¬×îºóÒÔ¡±/¡±½áβ

ʹÓÃÃüÁshow slb server¡±À´²é¿´·þÎñÆ÷״̬

2. Weight Round Robin Ëã·¨ÅäÖü°ÑéÖ¤

²ÉÓÃȨÖØÂÖѯËã·¨£¬A10¿ÉÒÔ¸ù¾Ý¶¨ÒåÖµ°ÑÇëÇó°´±ÈÀý·ÖÅäµ½ºǫ́·þÎñÆ÷ÉÏ¡£ ´´½¨ Real server

´´½¨Á½¸öService£¬·Ö±ð¹ØÁªµ½Á½Ì¨Õæʵ·þÎñÆ÷£¨10.0.2.18£¬10.0.2.19£©£¬²¢ÉèÖÃweightÖµ¡£

slb server rs1 10.0.2.18 weight 8 port 80 tcp !

slb server rs2 10.0.2.19 weight 2

A10ÍøÂ縺Ôؾùºâ²âÊÔ·½°¸

port 80 tcp

´´½¨Service-group

´´½¨¸ºÔؾùºâ·þÎñÆ÷×飬°ó¶¨2¸öserverµ½Õâ¸ö·þÎñÆ÷×飬£¬²¢Ñ¡ÔñWeight Round Robin Ëã·¨¡£

slb service-group SG-80 tcp method weighted-rr member rs1:80 member rs2:80

´´½¨Virtual-server

´´½¨ÐéÄâ·þÎñÆ÷£¬°ó¶¨·þÎñÆ÷×éµ½Õâ¸öÐéÄâ·þÎñÆ÷

slb virtual-server web-vip 10.0.1.12 port 80 http

service-group SG-80

Ч¹û²âÊÔ

ÓòâÊÔÈí¼þApache BenchÄ£Äâ100¸ö·ÃÎÊÇëÇó£¬Á¬½ÓÇëÇó»á°´ÕÕȨÖØÖµµÄÉèÖÃÇé¿ö·ÖÅäµ½ÁË2̨·þÎñÆ÷ÉÏ¡£

ab ¨Cn http://10.0.1.12/ GUI£º

´ò¿ªÅäÖÃģʽ£¬Ñ¡ÔñSLB-·þÎñÆ÷£¬Ñ¡Ôñ·þÎñÆ÷rs1ºÍrs2£¬½øÈëºó¸ø·þÎñÆ÷½øÐÐȨÖصķÖÅä¡£ÀýÈçrs1·ÖÅä4£¬rs2·ÖÅä2¡£

´ò¿ªÅäÖÃģʽ£¬Ñ¡ÔñSLB-·þÎñ×飬µã»÷SG-80Ãû³Æ£¬½øÈëºó¸ü¸ÄË㷨ΪWeighted Round Robin£¬ÒâΪ¼ÓȨÂÖѯ£¬¸ù¾ÝÅäÖõÄȨÖرÈÀý½øÐиºÔØ·Öµ£¡£

A10ÍøÂ縺Ôؾùºâ²âÊÔ·½°¸

×¢Ò⣺

ÔÚÌṩÏàͬ·þÎñµÄ¶ą̀·þÎñÆ÷Ö®¼ä½øÐиºÔØ·Öµ£µÄËã·¨£¬ÊÇÐèÒªÔÚ·þÎñ×éÖÐÈ¥¸ü¸ÄµÄ£¬¶øÕâÀï½ö½öÊÇËã·¨£¬ÖÁÓÚËã·¨ÖÐÓõ½µÄ¾ßÌå²ÎÊýÊÇÐèÒªÔÚSLBÖзþÎñÆ÷µÄÅäÖÃÖж¨ÒåµÄ¡£

¿ÉʹÓõÄËã·¨ÀàÐÍÓУº