[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freenx-knx
Subject:    Re: [FreeNX-kNX] Loadbalance only works with random mode
From:       Simon Gao <Simon.Gao () schrodinger ! com>
Date:       2008-08-25 18:52:42
Message-ID: 48B2FF7A.9070909 () schrodinger ! com
[Download RAW message or body]

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
________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:

http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ
  
         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com/kb/ 

________________________________________________________________
       FreeNX-kNX mailing list --- FreeNX-kNX@kde.org
      https://mail.kde.org/mailman/listinfo/freenx-knx
________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic