Wednesday 25 January 2012

Appserver loadbalancing and failover


Appserver loadbalancing and failover

appserver loadbalancing or failover are specified in configuration.properties file located in webserver directory. psserver parameter is edited according to our needs. some examples are given below.

1. psserver=host1:port1#wt1,Host2:port2#wt
eg: psserver=host1:9000#3,host2:9050#1
In this case, appserver running on host1 would receive 3x more requests than appserver2 running on host2


2. psserver=<host>:<port>#wt{failover servers}-failover string is added in curly brackets.
eg: psserver=host1:9000{host2:9020}
if host1 fails host2 will take up. 


3. psserver=Host1:9000#3{Host3:9080#3,Host4:9070#1},Host2:9020#1
In this case host3 and 4 are the failover servers for host 1. means if host1 is down host3 and host4 will replace it. host3 and host 4 will do a weighted load balancing also as specified. 




4.sequential backup with r failover string
psserver=Host1:9000#4{Host3:9010;Host4:9020},Host2:9030#1
In this case, the system assigns Host 4 the requests when both Hosts 1 and 3 are down.

1 comment: