Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
litespeed_wiki:proxy:lsws-as-a-load-balancer [2018/05/31 17:35]
qtwrk created
litespeed_wiki:proxy:lsws-as-a-load-balancer [2018/06/13 22:30] (current)
qtwrk [This Server Solution vs. LiteSpeed Web ADC]
Line 1: Line 1:
-======How to set up the server ​as load balancer======+======How to Set up LSWS as a Load Balancer======
  
-This example ​use 3 servers:+This example ​uses 3 servers:
  
   back1.litespeedtech.com with IP *.*.*.151   back1.litespeedtech.com with IP *.*.*.151
Line 8: Line 8:
  
  
-back1 and back2 will act as 2 back-end nodes, and load will act as load balancer.+''​back1'' ​and ''​back2'' ​will act as 2 back-end nodes, and ''​load'' ​will act as load balancer.
  
  
-=====Verify 3 Servers ​Are Working=====+=====Verify ​the 3 Servers ​are Working=====
 {{:​litespeed_wiki:​config:​lsws-lb-1.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-1.jpg?​direct|}}
  
Line 18: Line 18:
 {{:​litespeed_wiki:​config:​lsws-lb-3.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-3.jpg?​direct|}}
  
-3 servers are deliberately set to display different content to distinguish them from each other.+The 3 servers are deliberately set to display different content to distinguish them from each other.
  
-=====Create New External App=====+=====Create ​New External App=====
  
-Create a new external app in load balancer server, this is can be done either at server level or vhost level.+Create a new external app in the load balancer server. This is can be done either at server level or the vhost level.
  
 {{:​litespeed_wiki:​config:​lsws-lb-4.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-4.jpg?​direct|}}
  
-Choose ​type Web Server+Choose ​**Type** ''​Web Server''​.
  
 {{:​litespeed_wiki:​config:​lsws-lb-5.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-5.jpg?​direct|}}
  
-Set name to back1 , this name will be used in later step, and set IP to backend ​1.+Set **Name** ​to ''​back1''​. This name will be used in later step. Set **Address** to the IP of the first backend ​server.
  
 {{:​litespeed_wiki:​config:​lsws-lb-6.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-6.jpg?​direct|}}
  
-Since this example has 2 back-end nodes , repeat previous step to create ​2rd external app with name back2 and its corresponding IP address.+Since this example has 2 back-end nodes, repeat ​the previous step to create ​a 2nd external app with name ''​back2'' ​and its corresponding IP address.
  
-Now create another external app , with type Load Balancer, and set workers ​to back1 and back2 (these names are created in previous ​step)+Now create another external app, with **Type** ''​Load Balancer''​, and set **Workers** ​to ''​proxy::​back1,proxy::back2'' ​(these names were created in the previous ​steps).
  
 {{:​litespeed_wiki:​config:​lsws-lb-7.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-7.jpg?​direct|}}
Line 42: Line 42:
 {{:​litespeed_wiki:​config:​lsws-lb-8.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-8.jpg?​direct|}}
  
-Finally, there should be 3 external apps as following:+There should be 3 external apps as follows:
  
 {{:​litespeed_wiki:​config:​lsws-lb-9.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-9.jpg?​direct|}}
  
-Now create a new context with type Load Balancer, and in this example, set URI to / for full-site proxy.+Now create a new context with **Type** ''​Load Balancer''​, and in this example, set **URI** to ''​/'' ​for full-site proxy.
  
 {{:​litespeed_wiki:​config:​lsws-lb-10.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-10.jpg?​direct|}}
Line 52: Line 52:
 {{:​litespeed_wiki:​config:​lsws-lb-11.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-11.jpg?​direct|}}
  
-Since 3 servers are using 3 different domains, now add load.litespeedtech.com domain to back-end nodes' ​listener.+Since 3 servers are using 3 different domains, now add ''​load.litespeedtech.com'' ​domain to each of the back-end nodes' ​listeners.
  
 {{:​litespeed_wiki:​config:​lsws-lb-12.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-12.jpg?​direct|}}
- 
-Repeat this step on back2 
  
 Graceful restart all 3 LSWS instances. Graceful restart all 3 LSWS instances.
Line 62: Line 60:
 =====Verify The Load Balancer===== =====Verify The Load Balancer=====
  
-Access it to verify ​if everything is working as expect.+Access it to verify everything is working as expected.
  
 {{:​litespeed_wiki:​config:​lsws-lb-13.jpg?​direct|}} {{:​litespeed_wiki:​config:​lsws-lb-13.jpg?​direct|}}
Line 69: Line 67:
  
  
-Load Balancer will use uncontrollable Round Robin algorithm, rotating between back-end nodes on every access.+===== This Server Solution vsLiteSpeed Web ADC =====
  
-If you need an advanced load balancer solution , please check out our [[https://​www.litespeedtech.com/​products/litespeed-web-adc|LiteSpeed ADC]] +Please refer to this [[https://​www.litespeedtech.com/​support/wiki/​doku.php/​litespeed_wiki:​lslb:​lsws_load_vs_adc|article]]
  • Admin
  • Last modified: 2018/05/31 17:35
  • by qtwrk