[FreeNX-kNX] Loadbalance only works with random mode

Fabian Franz FabianFranz at gmx.de
Mon Aug 25 03:37:39 UTC 2008


> I am having problem with setting up FreeNX loadbalance using 
> "round-robin" mode. If I chose anything other than "random", then 
> nxclient connects to the server directly instead of routing to the 
> machines in the load balancing pool.  So loadbalance only works with 
> "random".  This occurs to 0.7.2 and 0.7.3.
> 
> These are the changes I made to the stock node.conf file.
> 
> ENABLE_SSH_AUTHENTICATION="1"
> LOAD_BALANCE_SERVERS="192.168.x.x 192.168.x.x"
> LOAD_BALANCE_ALGORITHM="round-robin"
> 
> Where should I check for this problem?

Thank you fixed in SVN.

A space was the problem, in the arithmetic evaluation.

A % B does not work, however A%B does:

-let SERVER_LB_NR=(SERVER_LB_NR+1) % SERVER_LB_NR_OF_HOSTS
+let SERVER_LB_NR=(SERVER_LB_NR+1)%SERVER_LB_NR_OF_HOSTS

Best Wishes,

Fabian



More information about the FreeNX-kNX mailing list