[Resolved] Using loadbalancer extProcessor

Status
Not open for further replies.

toki

Active Member
#1
Hi there,

We have a large pool of servers running PHP lsapi daemonised. At the moment, we use HAproxy and keepalived to manage this, but we'd like to investigate using LiteSpeed Web Server's internal load balancing mechanism.

Is there any documentation on how to set this up? The docs I found were quite basic.

Thanks
Toki
 

mistwang

LiteSpeed Staff
#2
Just define a external app for each backend node, add those backend nodes to Load balancer. then update php script handler configuration to use the load balancer.

The built-in load balancer does not have session affinity, requests from the same client may not assigned to the same backend node. So, you need to make sure to have a shared PHP session storage.
 

toki

Active Member
#4
Sorry I actually get errors when I implement this.

Code:
2015-11-10 10:10:30.749 ERROR [config:server:epsr:node-1] missing <path>
2015-11-10 10:10:30.749 ERROR [config:server:epsr:node-2] missing <path>
2015-11-10 10:10:30.749 ERROR [config:server:epsr:testlb] Can not find handler with type: 13, name: node-1.
2015-11-10 10:10:30.749 ERROR [config:server:epsr:testlb] Can not find External Application: node-1, type: lsapi
2015-11-10 10:10:30.749 ERROR [config:server:epsr:testlb] Can not find handler with type: 13, name: node-2.
2015-11-10 10:10:30.749 ERROR [config:server:epsr:testlb] Can not find External Application: node-2, type: lsapi
 
Last edited by a moderator:

toki

Active Member
#6
Fixed. It was because I had autoStart set to 1, when it should have been set to 0, for the lsapi external applications.
 
Status
Not open for further replies.
Top