[THIN] Re: PNAgent and Load Balacing

  • From: Evan Mann <emann@xxxxxxxxxxxxxxxxxxxxx>
  • To: thin@xxxxxxxxxxxxx
  • Date: Thu, 16 Nov 2006 10:05:27 -0500

I've been using the default "Advanced" load evaluator which does rely on
cpu, memory, and number of sessions, and it's actually been working out
rather nicely.  I have a few custom built applications that like to lock
up and peg the CPU at 50%+, but I have the resource manager send me
e-mail alerts at certain levels so I can get in there and kill the app.
I haven't had time (or desire to be honest) to play around with
threadmaster or such to mitigage a manual intervation.
 
It's not the ideal way to evaluate load, but it has actually turned out
to be a realistic evaluation of what my machines can really handle.
Even if I did tweak the evaluators, I wouldn't wan tto add more sessions
because I'll just make my end user experience worse.

 
________________________________

From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On
Behalf Of Joe Shonk
Sent: Thursday, November 16, 2006 9:40 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: PNAgent and Load Balacing


If you box is heavily loaded, then you need to reevaluate what Load
Evaluator you are using...  Rememebr CPU/Memory are volatile settings so
they do not make great load balancers.  Prehaps as a secondary metric,
but not as primary metric. 

Joe 


On 11/16/06, Evan Mann <emann@xxxxxxxxxxxxxxxxxxxxx> wrote: 

        Sessions sharing is preferred over load balancing to alternate
servers.
        I suppose the one way I could see you forcing session sharing
ALL the
        time is to turn off all your load monitoring and let your
servers get
        overloaded and come to a screeching hault.  But why would you
want to
        also force it to session share if the box is so heavily loaded?
        
        
        
        -----Original Message-----
        From: thin-bounce@xxxxxxxxxxxxx
[mailto:thin-bounce@xxxxxxxxxxxxx] On
        Behalf Of Matthew Shrewsbury
        Sent: Thursday, November 16, 2006 8:53 AM
        To: thin@xxxxxxxxxxxxx
        Subject: [THIN] Re: PNAgent and Load Balacing
        
        I think I am also experiencing this issue. Is there any setting
to force
        session sharing over load balancing?
        
        -Matthew
        
        -----Original Message----- 
        From: thin-bounce@xxxxxxxxxxxxx
[mailto:thin-bounce@xxxxxxxxxxxxx] On
        Behalf Of Evan Mann
        Sent: Thursday, November 16, 2006 8:44 AM 
        To: thin@xxxxxxxxxxxxx
        Subject: [THIN] Re: PNAgent and Load Balacing
        
        I can tell you from personal experience for the past 6 months,
that
        session sharing will NOT always force you onto the same server.
I was 
        running only 4 CPS4.0 servers, heavily loaded, all users
connecting via
        PNAgent or WI via CAG.  I'd say about 50% of the time session
sharing
        would kick in, and 50% of the time farm load balancing would
kick in and 
        launch a new app on a different server instead of session
sharing on the
        same server, for any given users.
        
        Load balancing is also "in effect", but if user a launches app a
on
        server a, and then user a goes to launch app b, if the load
balancer 
        sees server a hasn't hit it's load balancing boundaries, it will
launch
        app b on server a as part of session sharing.  If the load
balancer sees
        server a has hit a load balancing boundary, it will kick the app
to 
        another server.
        
        When I added 3 more servers, the percentages changed so that
session
        sharing went up and farm load balancing went down.
        
        You should adjust your load balancer settings so that you don't
let a 
        server get up to 80% of the total memory if that is a problem.
        
        -----Original Message-----
        From: thin-bounce@xxxxxxxxxxxxx [mailto:
thin-bounce@xxxxxxxxxxxxx <mailto:thin-bounce@xxxxxxxxxxxxx> ] On
        Behalf Of Angela Smith
        Sent: Thursday, November 16, 2006 7:10 AM
        To: thin@xxxxxxxxxxxxx
        Subject: [THIN] Re: PNAgent and Load Balacing
        
        Hi Rick
        
        My main concern with Session Sharing is I always thought
Published
        Applications would be launched from the least loaded PS4 server.
This
        isn't the case as all subsequent applications are run from the
same 
        Server hosting the first application.  Because I cannot control
the
        amount of applications a user can open, Im concerned users may
open
        every application and use excess server resources.  My servers
        occasionally use close to 80% of the total memory (4Gb).  I have
a farm 
        of servers and have around 400 concurrent users.
        
        You mentioned I can control the amount of apps a user runs from
the 1
        Host.
        Where do I find this setting?  All my users run their apps from
the same
        Host (ie the Host that lauched App1 due to session sharing) so
this may 
        ease my burden a little knowing user A can open x amount of apps
from
        any one host.
        
        Regards
        Ang
        
        >From: "Rick Mack" <Rick.Mack@xxxxxxxxxxxxxx >
        >Reply-To: thin@xxxxxxxxxxxxx
        >To: <thin@xxxxxxxxxxxxx>
        >Subject: [THIN] Re: PNAgent and Load Balacing
        >Date: Wed, 15 Nov 2006 08:37:28 +1000 
        >
        >Hi Angela,
        >
        >Unfortunately, you're quite right.
        >
        >You can restrict the number of times a user can log on, or the
number
        >of instances of a specific published application that they can
run. 
        >However while you could restrict the total number of published
        >aplications a user can run on any one server, I'm not aware of
any way
        >you could make that work by selectively turning off session
sharing 
        >when an application number limit has been reached.
        >
        >About the only way you'd get something different is if you
siloed your
        >applications so that different servers had different apps. But
that
        >would end up being slower in terms of application startup time
so it
        >wouldn't win you any kudos from your users.
        >
        >Pardon my asking, but what is the reason for your objection to
session
        >sharing? 
        >
        >Regards,
        >
        >Rick
        >
        >Ulrich Mack
        >Volante Systems, a division of Commander
        >
        >
        >-----Original Message-----
        >From: thin-bounce@xxxxxxxxxxxxx
[mailto:thin-bounce@xxxxxxxxxxxxx] On
        >Behalf Of Angela Smith
        >Sent: Tuesday, 14 November 2006 10:13 PM
        >To: thin@xxxxxxxxxxxxx
        >Subject: [THIN] Re: PNAgent and Load Balacing
        >
        >Hi Rick
        >
        >Thanks for the reply.  Makes sense.  I did a quick google on it
and an
        >article stated it uses the same connection for opening multiple

        >applications from the same host.  I want to restrict all users
to
        >opening 8 applications across the farm.  I enabled this setting
in farm
        
        >properties but it didn't appear to work (I could open more than
8 
        apps).
        >Is this due to session sharing?.  Will opening 10 applications
appear
        >as
        >1 application as it uses the same session hence the restriction
not
        >working or do I have an issue?
        >
        >Thanks
        >Ang
        >
        >
        > >From: "Rick Mack" <Rick.Mack@xxxxxxxxxxxxxx>
        > >Reply-To: thin@xxxxxxxxxxxxx 
        > >To: <thin@xxxxxxxxxxxxx>
        > >Subject: [THIN] Re: PNAgent and Load Balacing
        > >Date: Tue, 14 Nov 2006 21:55:10 +1000
        > >
        > >Hi Angela, 
        > >
        > >Things are working as designed. It's called session sharing.
        > >
        > >The basic idea is that the startup overhead (load user
profile, group
        
        > >policies etc) for a published application is greatly reduced
if 
        > >subsequent published app instances are started on a server
already
        > >hosting one of your application sessions. That's why the
first
        > >published app startup is slow and subsequent ones are a lot
faster. 
        > >
        > >You can disable session sharing, but I wouldn't. It'd just
slow
        > >everything down quite a lot and the incidence of corrupted
profiles
        > >would go up quite a bit.
        > >
        > >regards,
        > >
        > >Rick
        > >
        > >Ulrich Mack
        > >Volante Systems, a division of Commander
        > >
        > >
        > >________________________________
        > > 
        > >From: thin-bounce@xxxxxxxxxxxxx on behalf of Angela Smith
        > >Sent: Tue 14/11/2006 21:48
        > >To: thin@xxxxxxxxxxxxx 
        > >Subject: [THIN] PNAgent and Load Balacing
        > >
        > >
        > >
        > >Hi again
        > >
        > >Has anyone seen an issue where if a user opens an app from
Server 1,
        > >all subsequent apps are launched from server 1 even though it
may be 
        > >published on 15 servers.  The load balancer appears to be
working  in
        
        > >that the user load appears to be even across the farm but no
users
        > >use multiple servers (they always run different apps from the
1 
        host).
        > >
        > >We use PNAgent to connect to the farm (Presentation Server 4
R02).  I
        
        > >couldn't find any settings where you can say use the same
server for
        > >all apps.  Im concerned the load balancer is not working as
it 
        should.
        >
        > >I always thought, subsequent connections would go to the
least loaded
        
        > >server regardless of what Host provided the first
application.
        > >
        > >Thanks
        > >Ang 
        > >
        >
>_________________________________________________________________
        > >Win a $40K private Lear Jet experience with Flight Sim X!
        > >
http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=730
<http://ninemsn.com.au/share/redir/adTrack.asp?mode=click&clientID=730> 
        > >&r eferral=hotmailtagline&URL=http://games.ninemsn.com.au
        > >
        > >SBC SITES ONLY GOOGLE SEARCH: http://www.F1U.com
        > >************************************************
        > >For Archives, RSS, to Unsubscribe, Subscribe or set Digest or
        > >Vacation mode use the below link: 
        > >//www.freelists.org/list/thin
        > >************************************************
        > >
        > >
        > >
        >
>##################################################################### 
        > >## ############## This e-mail, including all attachments, may
be
        > >confidential or privileged.
        > >Confidentiality or privilege is not waived or lost because
this
        > >e-mail has been sent to you in error.  If you are not the
intended 
        > >recipient any use, disclosure or copying of this e-mail is
        > >prohibited.  If you have received it in error please notify
the
        > >sender immediately by reply
        >
        > >e-mail and destroy all copies of this e-mail and any
attachments. 
        > >All liability for direct and indirect loss arising from this
e-mail
        > >and any
        >
        > >attachments is hereby disclaimed to the extent permitted by
law.
        >
>##################################################################### 
        > >##
        > >##############
        >
        >
        > ><< winmail.dat >>
        >
        
>_________________________________________________________________
        >Advertisement: House hunt online now! 
        
>http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Erealestate%2E
        >c
        
>om%2Eau%2Fcgi%2Dbin%2Frsearch%3Fa%3Dbhp%26t%3Dres%26cu%3DMSN&_t=7588741

        >6
        >3&_r=HM_EndText_Nov06&_m=EXT
        >
        >SBC SITES ONLY GOOGLE SEARCH: http://www.F1U.com
        >************************************************
        >For Archives, RSS, to Unsubscribe, Subscribe or set Digest or
Vacation 
        >mode use the below link:
        >//www.freelists.org/list/thin
        >************************************************
        
>#######################################################################

        >############## This e-mail, including all attachments, may be
        >confidential or privileged.
        >Confidentiality or privilege is not waived or lost because this
e-mail
        >has been sent to you in error.  If you are not the intended
recipient 
        >any use, disclosure or copying of this e-mail is prohibited.
If you
        >have received it in error please notify the sender immediately
by reply
        
        >e-mail and destroy all copies of this e-mail and any
attachments.  All 
        >liability for direct and indirect loss arising from this e-mail
and any
        
        >attachments is hereby disclaimed to the extent permitted by
law.
        
>#######################################################################

        >############## SBC SITES ONLY GOOGLE SEARCH: http://www.F1U.com
        >************************************************
        >For Archives, RSS, to Unsubscribe, Subscribe or set Digest or
Vacation 
        >mode use the below link:
        >//www.freelists.org/list/thin
        >************************************************
        
        
_________________________________________________________________ 
        Advertisement: 110,000+ cars with the click of a mouse at
        carsales.com.au
        
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwi

        
de%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801577%2Fpi%5F100
        5244%2Fai%5F838593&_t=757768878&_r=endtext_110000&_m=EXT
        
        SBC SITES ONLY GOOGLE SEARCH: http://www.F1U.com 
        ************************************************
        For Archives, RSS, to Unsubscribe, Subscribe or set Digest or
Vacation
        mode use the below link:
        //www.freelists.org/list/thin 
        ************************************************
        SBC SITES ONLY GOOGLE SEARCH: http://www.F1U.com
        ************************************************
        For Archives, RSS, to Unsubscribe, Subscribe or set Digest or
Vacation 
        mode use the below link:
        //www.freelists.org/list/thin
        ************************************************
        SBC SITES ONLY GOOGLE SEARCH: http://www.F1U.com
        ************************************************
        For Archives, RSS, to Unsubscribe, Subscribe or set Digest or
Vacation
        mode use the below link:
        //www.freelists.org/list/thin
        ************************************************
        SBC SITES ONLY GOOGLE SEARCH: http://www.F1U.com
        ************************************************ 
        For Archives, RSS, to Unsubscribe, Subscribe or
        set Digest or Vacation mode use the below link:
        //www.freelists.org/list/thin
        ************************************************ 
        


Other related posts: