Sunday, June 1, 2014

Using Weighted Load Balancing.

What is a Weighted Load balancer?

Weighted load balancing can be configured in the PeopleSoft web server. The web server will direct the user requests to the application servers which have been configured in the configuration.properties file. By using the weighted load balancing we can control the percentage of requests which will be directed to a particular application server.

What is the syntax for configuring weighted load balancing?

The configuration.properties file of the web server is used to configure the application servers which will be listening for the web requests. For configuring weighted load balancing the below method is used,

psserver=Host1:Port1#Wt,Host2:Port2#Wt
 
 The weights of the application server can be rated from 1-10 where 1 is for low and 10 is for maximum load.

Example:
psserver=appserver1:9000#6,appserver2:9010#1

In the above example, the appserver1 will recieve 6 times more requests than the appserver2.

What is Jolt failover?

The failovers can be configured using the {} as below,

psserver=<host>:<port>#wt{failover servers}

By using weighted load balancing, we can configure for failover backup. 

There are 2 options,
Strict failover with weighted backup.
Strict failover with sequential backup.

Failover with weighted backup:
The failovers in this case are seperated by a comma as below,

psserver=Host1:Port1#Wt{Host3:Port3#Wt,Host4:Port4#Wt},Host2:Port2#Wt
 
Failover with sequential backup:

For setting up sequential backup multiple servers are configured separated by a semi colon as below,
 
psserver=Host1:Port1#Wt{Host3:Port3;Host4:Port4},Host2:Port2#Wt 
 
 

No comments:

Post a Comment