Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
litespeed_wiki:lslb:ha [2020/06/19 14:16] Jackson Zhang |
litespeed_wiki:lslb:ha [2020/08/12 18:44] Lisa Clarke [Syncing Cache Between Two HA Nodes] Editing |
||
---|---|---|---|
Line 230: | Line 230: | ||
Try accessing 10.10.31.31 (VIP) from the browser. You will see the backend server page. Disable one node, and you can still see the webpage. Check ADC HA status. The live node will become Master when the other one down. | Try accessing 10.10.31.31 (VIP) from the browser. You will see the backend server page. Disable one node, and you can still see the webpage. Check ADC HA status. The live node will become Master when the other one down. | ||
- | ===== How two HA ADC nodes handle cache purge and cache sync? ===== | + | ===== Syncing Cache Between Two HA Nodes ===== |
- | Caches will be synced between two HA ADC nodes. When the backend LiteSpeed cache plugin sends purge request to the live ADC, such cache purge will be synced. Cache file for purge request won't be deleted at that time while it will be regenerated when a new request for that URL coming. Cache purge will be synced automatically, While cache replication can be enabled or disabled at user's preference. To enable cache replication, please go to " ADC Web Admin Console >> Configuration >> HA >> Enable Replication for Cached Data >> Yes". | + | Cache purge is automatically synced between two HA nodes. When a node receives a purge request, the cached file will not be deleted immediately. It will be regenerated when a new request for that URL is received. |
+ | |||
+ | Further cache replication can be enabled or disabled as desired. To enable cache replication, navigate to **ADC WebAdmin Console > Configuration > HA** and set **Enable Replication for Cached Data** to ''Yes''. | ||
{{ :litespeed_wiki:lslb:adc-ha-enablecachereplication.png?800 |}} | {{ :litespeed_wiki:lslb:adc-ha-enablecachereplication.png?800 |}} | ||
- | Please also keep in mind that the replication is only between two front end HA mode ADCs, not including backend cluster web server at all. Backend cluster server nodes should avoid using cache. | + | When replication is enabled, caches are synced between the HA ADC nodes. When the backend LiteSpeed Cache plugin sends a cache request to the live ADC, that request will be synced with the nodes. |
+ | |||
+ | **NOTE 1**: Replication happens only between two front end High Availability ADCs, and //not// backend cluster web servers. Avoid caching on the cluster-server-node layer, as cached data within web server nodes will not be purged properly and will no longer be synchronized. In a clustered environment, LSCache data should //only be maintained at the ADC layer//. | ||
+ | |||
+ | **NOTE 2**: Only LSCache data is synced between two HA ADCs. //Configuration is not synced//. Therefore, the ADCs must be manually configured independently to serve the same sites. | ||