[FreeNX-kNX] Loadbalance only works with random mode
Simon Gao
Simon.Gao at schrodinger.com
Mon Aug 25 18:52:42 UTC 2008
Fabian Franz wrote:
>> 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
> ________________________________________________________________
>
Thank you for the quick fix. "round-robin" now worked like a charm.
Simon
More information about the FreeNX-kNX
mailing list