[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:       "Fabian Franz" <FabianFranz () gmx ! de>
Date:       2008-08-25 3:37:39
Message-ID: 20080825033739.29620 () gmx ! net
[Download RAW message or body]

> 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
________________________________________________________________
     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