Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
litespeed_wiki:lslb:ha [2018/08/03 16:28]
Jackson Zhang
litespeed_wiki:lslb:ha [2020/11/18 15:36] (current)
Lisa Clarke Redirect to new Documentation Site
Line 1: Line 1:
-====== How to enable HA for Web ADC? ====== +~~REDIRECT>​https://docs.litespeedtech.com/products/lsadc/settings/~~
-LiteSpeed Web ADC HA setup provides a failover setup for two ADC Nodes. When one node is temporarily unavailable,​ the other one will automatically detect and take over the traffic.  +
- +
-LiteSpeed Web ADC HA will use keepalived to detect the failover. +
- +
-===== Two example Nodes ===== +
- +
-Node110.10.30.96 +
-Node2: 10.10.30.97 +
- +
-Virtual IP: 10.10.31.31 +
- +
-===== Install and configure keepalived ===== +
- +
-Before you configure ADC HA, You should install keepalived on both node 1 and node 2. +
-On CentOS, you can do yum install: +
-  yum install keepalived +
-or on Ubuntu/Debian, you can do apt-get: +
-  apt-get install keepalived +
- +
-Then Start keepalived:​ +
-  service keepalived start +
-   +
-Also need to setup autorestart during the system reboot: +
-  systemctl enable keepalived +
-or +
-  chkconfig keepalived on +
-  +
- +
-The keepalive configuration file is located at /etc/keepalived/keepalived.conf,​ but you should not edit this configuration file directly, instead, you should use ADC Web Admin GUI -> HA config to add.  The manually added VIP to keepalived config wont be pick up by ADC HA config. The VIP configure under ADC HA tab is just a GUI to update the keepalived config file. So you should ​ just use the WebAdmin GUI to manage VIP if they want to see it in the status. We will explain on later steps on how to add VIP in GUI. +
- +
- +
-===== Configure HA on LiteSpeed Web ADC =====  +
- +
-==== Node 1 ==== +
- login to node 1 ADC Web Admin Console: sample configuration +
- +
-  Server Address 10.10.30.96:​11122 +
-  Replication Cluster 10.10.30.96:​11122,​10.10.30.97:​11122 +
-  Heart Beat Interval (secs) 10 +
-  Heart Beat Timeout (secs) 30 +
-  Is Gzip Stream  ​      Yes +
-  Enable incremental sync      Yes +
-  Is File Cache Enabled  ​      Yes +
-  File Cache Server Address ​ 10.10.30.96:​1447 +
-   +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-ha1.png?​800 |}} +
- +
- then "​Add"​ HA interface:​ +
- +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-ha1-add-internface.png?​800 |}}   +
- +
- HA Status page will look like the following when running: +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-ha1-status.png?​800 |}} +
- +
-==== Node 2 ==== +
- +
- login to node 1 ADC Web Admin Console: sample configuration +
- +
-  Server Address 10.10.30.97:​11122 +
-  Replication Cluster 10.10.30.96:​11122,​10.10.30.97:​11122 +
-  Heart Beat Interval (secs) 10 +
-  Heart Beat Timeout (secs) 30 +
-  Is Gzip Stream  ​      Yes +
-  Enable incremental sync      Yes +
-  Is File Cache Enabled  ​      Yes +
-  File Cache Server Address ​ 10.10.30.97:​1447 +
-   +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-ha1.png?​800 |}}   +
- +
-then add HA interface:​ +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-ha2-add-internface.png?​800 |}} +
- +
-HA status: +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-ha2-status.png?​800 |}} +
- +
-===== testing ===== +
- +
-Assuming you have configured the listener, virtual Host and backend clusterHTTP on both Node 1 and node 2 seperately. +
- +
-Listener:  +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-listener.png?​800 |}} +
- +
-Virtual Host: +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-vhost.png?​800 |}} +
- +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-vhost2.png?​800 |}} +
- +
- +
-ClusterHTTP setup: +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-clusterhttp.png?​800 |}} +
- +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-clusterhttp-2.png?​800 |}} +
- +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-clusterhttp-3.png?​800 |}} +
- +
-{{ :​litespeed_wiki:​lslb:​adc-ha-configuration-clusterhttp-4.png?​800 |}} +
- +
- +
-Try access 10.10.31.31 (VIP) from the browser, you will see the backend server page. Disable one node, you can still see the webpage. Check ADC HA status, live node will become Master when the other one down. +
- +
  • Admin
  • Last modified: 2018/08/03 16:28
  • by Jackson Zhang