Cool Solutions

Load-Balancing with WebAccess



By:

June 12, 2007 3:41 am

Reads: 4115

Comments:0

Score:0

Problem

A Forum reader recently asked:

“We are run GroupWise 7 and have installed the 7r1 patches. We are creating a second WebAccess agent and I would like to know how to load balance between this agent and the current one we have running. Any information would be helpful.”

And here’s the response from Robert Mahar …

Solution

We have several WebAccess servers, and our official links to them are built dynamically. It’s something like this …

(Warning: I write drivers in C and assembler, not Javascript, so you will want to pass this to your web developer. They should be able to figure out what we are doing – and why I cannot type.)

<script language=Javascript type="text/javascript">
var linkString="Groupwise WebAccess";
var hostPrefix="WebAccess";
var domainSuffix=".your.domain";
document.write( "<a href=" + "https://" + hostPrefix + ( new 
Date().getSeconds() % 3 ) + domainSuffix">" + linkString + "</a>");
</script>

This will sort of randomly select links:

https://WebAccess0.your.domain
https://WebAccess1.your.domain
https://WebAccess2.your.domain

If you cannot calculate the URL, use a hard-coded array and use

( new Date().getSeconds() % 3 )

as the index into the array.

We find that this spreads the load very evenly. For example, right now we have 101, 97, and 105 users currently using the three servers, respectively. And that’s pretty decent load balancing.

See also the Cool Solutions GroupWise 6.5 Best Practices Guide at:
http://www.novell.com/coolsolutions/feature/9814.html
for additional guidelines on load balancing techniques.

VN:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)

Tags:
Categories: Uncategorized

Disclaimer: This content is not supported by Novell. It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test it thoroughly before using it in a production environment.

Comment

RSS