<br><tt><font size=2>freenx-knx-bounces@kde.org wrote on 04/09/2011 01:30:04:<br>
<br>
> I have a system setup with four nodes being routed through a single
<br>
> 'head' machine using load balancing.  Load balancing works fine
<br>
> using round-robbin and random (I have yet to try to implement load
<br>
> based),</font></tt>
<br>
<br><tt><font size=2>Hmmm</font></tt>
<br><tt><font size=2>To implement load-based load balancing, you have to</font></tt>
<br>
<br><tt><font size=2>        cp nxcheckload.sample
nxcheckload</font></tt>
<br>
<br><tt><font size=2>on all the nx machines (and then edit them).</font></tt>
<br>
<br><tt><font size=2>Set up ssh i.e. create user nxcal on all the nodes
with</font></tt>
<br><tt><font size=2>the same ~/.ssh/authorized_keys</font></tt>
<br>
<br><tt><font size=2>Edit the nxcheckload on the load-balancer to use the</font></tt>
<br><tt><font size=2>nxcal ssh keyfile, un-comment the ssh line then then
comment</font></tt>
<br><tt><font size=2>out the echo $RANDOM.</font></tt>
<br>
<br><tt><font size=2>nxserver expects a larger value for lower utilization,</font></tt>
<br><tt><font size=2>but I haven't really tested nxcheckload, so I couldn't
say</font></tt>
<br><tt><font size=2>how accurate it is.</font></tt>
<br>
<br><tt><font size=2>Good luck if you try it . . .</font></tt>
<br>
<br><tt><font size=2>> but it appears that the ENABLE_LOAD_BALANCE_PREFERENCE
<br>
> directive does nothing.</font></tt>
<br>
<br><tt><font size=2>Yup</font></tt>
<br>
<br><tt><font size=2>> The client either connects to an existing <br>
> session or starts a new one with no sort of prompting the user.  I
<br>
> have found absolutely no documentation on how to allow the user to
<br>
> choose the server, so I may just be doing it wrong.</font></tt>
<br>
<br><tt><font size=2>In theory . . </font></tt>
<br>
<br><tt><font size=2>ENABLE_LOAD_BALANCE_PREFERENCE=1</font></tt>
<br><tt><font size=2>and</font></tt>
<br><tt><font size=2>PREFERRED_HOST="yourpreferredhosthere"</font></tt>
<br>
<br><tt><font size=2>should ignore load balancing and connect you to</font></tt>
<br><tt><font size=2>"yourpreferredhosthere" provided that "yourpreferredhosthere"</font></tt>
<br><tt><font size=2>is included somewhere in nxloadconfig/LOAD_BALANCE_SERVERS=</font></tt>
<br>
<br><tt><font size=2>However PREFERRED_HOST is set from &host=yourpreferredhosthere</font></tt>
<br><tt><font size=2>on the "start session" command line from
the nxclient which</font></tt>
<br><tt><font size=2>it tries to get from </font></tt>
<br>
<br><tt><font size=2>        SSH_ORIGINAL_COMMAND</font></tt>
<br>
<br><tt><font size=2>which is never set anywhere in the code, see in the
log entry</font></tt>
<br>
<br><tt><font size=2>-- NX SERVER START: -c /usr/bin/nxserver - ORIG_COMMAND=</font></tt>
<br>
<br><tt><font size=2>so nxserver reverts to what you have set in</font></tt>
<br><tt><font size=2>LOAD_BALANCE_ALGORITHM to choose the host to which
to</font></tt>
<br><tt><font size=2>connect you.</font></tt>
<br>
<br><tt><font size=2>Looks like this option wasn't ever completed.</font></tt>
<br>
<br><tt><font size=2>You also need an nx client which sets host= for load</font></tt>
<br><tt><font size=2>balancing which rules out nomachine's nxclient.</font></tt>
<br><tt><font size=2><br>
> <br>
> Also, the 4 nodes are setup as members of a NIS domain for <br>
> authentication.  The machine that is acting as the nx load-balancer
<br>
> is also the NIS master, but does not authenticate through NIS (NIS
<br>
> users cannot log into the machine).  This is an issue since nx
<br>
> appears to be authenticating the user on the load-balancing server.
<br>
> Is there a way to either hand off authentication to the nodes or <br>
> force nx to authenticate against ypserve instead of passwd/shadow
<br>
> .... or is this more of an ssh problem.<br>
</font></tt>
<br><tt><font size=2>You need to get ssh to hand off user/password authentication.</font></tt>
<br>
<br><tt><font size=2>> <br>
> thanks,<br>
> Matt<br>
> <br>
> ----------------------------------------<br>
> Matthew Beals<br>
> Michigan Technological University<br>
> Department of Atmospheric Sciences<br>
> 1400 Townsend Drive<br>
> B019a Fisher Hall<br>
> Houghton, MI 49931<br>
> mjbeals@mtu.edu</font></tt>