[FreeNX-kNX] Load balancing with FreeNX

Rajesh Kumar Mallah mallah at tradeindia.com
Thu Jun 28 17:31:53 UTC 2007


Rajesh Kumar Mallah wrote:
> Prakash Velayutham wrote:
>   
>> Hi,
>>
>> I have the sessions in a shared NFS area now (just the db part and not
>> the home), but I still see issues with the load-balancing. Could you
>> please explain a little more about your setup? Here is mine.
>>
>> frontier (load-balancer)
>> headnode (NXserver1)
>> cellulose (NXserver2)
>> protein (NFS server)
>>
>> All systems running OpenSUSE - 10.2 with NX-1.5.0-73 and FreeNX 0.6. I
>> have copied the /var/lib/nxserver/db folder from one of the machines
>> upto the NFS server and set the uid, gid as required.
>> I have mounted this shared folder in all the systems under
>> /var/lib/nxserver/db. Only nx user or anyone from root group is able to
>> write to this folder now.
>>
>> I have set up round-robin load-balancing algo in frontier. I have added
>> the 2 load-balanced NX servers in frontier's node.conf like this.
>>
>> SERVER_LOADBALANCING="Yes"
>> LOAD_BALANCE_SERVERS="headnode.chmccorp.cchmc.org cellulose.cchmc.org"
>> LOAD_BALANCE_ALGORITHM="round-robin"
>>
>> I will set it to "load" once I get this simple setup working.
>>
>> Now if I start a client session to connect to frontier, I can see that
>> the sessions gets started in cellulose transparently. I can also see
>> that the corresponding files get created in the shared NFS area.
>>
>> protein:~ # ls -al /home/var/lib/nxserver/db
>> total 24
>> drwxr-xr-x  5 vdr  root 4096 Jun 22 10:06 .
>> drwxr-xr-x  3 root root 4096 Jun 22 10:00 ..
>> drwx------  2 vdr  root 4096 Jun 22 10:00 closed
>> drwx------  2 vdr  root 4096 Jun 22 10:00 failed
>> -rw-r--r--  1 vdr  1051    2 Jun 22 10:06 round-robin
>> -rw-------  2 vdr  1051    0 Jun 22 10:06 round-robin.lock
>> -rw-------  2 vdr  1051    0 Jun 22 10:06 round-robin.lock.mFTX14846
>> drwx------  2 vdr  root 4096 Jun 22 10:08 running
>>
>> But if I start another session from the same client (a Mac OS X client),
>> and try to connect to frontier again, even though the first session is
>> still running, it says "Trying to resume session" and actually kills the
>> first session and then fails in resuming too.
>>
>> That is a major issue. Any ideas?
>>     
Hi,

Are the issues resolved ? if yes congrats!
if no lets discuss (either here or pvt)

Regds
mallah.

>> Thanks,
>> Prakash
>>     




More information about the FreeNX-kNX mailing list